QDX 5.6 (hcitcl issues with command line switches)

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf QDX 5.6 (hcitcl issues with command line switches)

  • Creator
    Topic
  • #50118
    Russ Ross
    Participant

      There has been mention of the issue that hcitcl in QDX 5.6 will no longer honor the use of command line switches.

      With QDX 5.6 it now seems to mostly dictate you do:

          hcitcl   $fileNameOfStandAloneTCLscript

      This is a problem that I had to figure out a work around for because the technique of running TCL commands using “hcitcl -c $TCL_command” from within K-shell scripts is prevalant.

      Personally I always thought it was a cool technique and would expect a bit more stability to the command line args to work into the future.

      Here is an examples of one such K-shell command to illustrate what works in QDX 5.2 but breaks in QDX 5.6:

      Code:

      STATS=$(hcitcl -c “echo [oth_get_stats $thread]”)

      Here is the replacement work around I decided to go with:

      Code:

      STATS=$(
         hcitcl <<- !    echo [oth_get_stats $thread]    exit    ! )

      Another approach would be to create a standalone TCL script that wraps around the TCL commands in a way they can be run from your K-shell.

      My co-worker (Jim Kosloskey) and I decided against that for now when we added up the pros and cons.

      Here is a usefull command I used to help me locate all instances of “hcitcl -c”

      Code:

      find . -exec grep -l ‘hcitcl -c’ {} ;

      Russ Ross
      RussRoss318@gmail.com

    Viewing 0 reply threads
    • Author
      Replies
      • #64939
        Rob Abbott
        Keymaster

          Russ, this was a change made by the Tcl community for Tcl 8.4.  It’s not something we did on purpose.  

          You can probably find out why on http://www.tcl.tk

          Rob Abbott
          Cloverleaf Emeritus

      Viewing 0 reply threads
      • The forum ‘Cloverleaf’ is closed to new topics and replies.