Skip to content
Tcl Source Code History Of Ticket 523595ffffffffff
Login

History Of Ticket 523595ffffffffff

Artifacts Associated With Ticket 523595ffffffffff

  1. Ticket change [89aaad1ded] (rid 127267) by hemanglavana on 2002-02-27 21:09:45:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      http://www.tcl.tk/man/tcl8.4/UserCmd/tclsh.htm recommends 
      the following 3-lines for startup scripts:
      
      #!/bin/sh
      # the 
      next line restarts using tclsh \
      exec tclsh "$0" 
      "$@"
      
      However, as mentioned on 
      http://mini.net/tcl/812.html, it would be more approriate to use 
      ${1+"$@"}
      
      The man page for wish 
      (http://www.tcl.tk/man/tcl8.4/UserCmd/wish.htm) also needs 
      to be fixed in this respect.
      
      Hemang.
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "hemanglavana"
    9. subsystem initialized to: "None"
    10. title initialized to: "update doc for 3-liner startup scripts"
    11. type initialized to: "Bug"
  2. Ticket change [50ba76d535] (rid 126020) by dgp on 2002-02-28 07:57:08:

    1. assignee changed to: "dgp"
    2. foundin changed to: "obsolete: 8.4a4"
    3. subsystem changed to: "50. Embedding Support"
  3. Ticket change [72c76905f2] (rid 104919) by jenglish on 2002-03-15 23:56:37:

    1. icomment:
      Logged In: YES 
      user_id=68433
      
      I think the ${1+"$@"} form is just a cargo-cult idiom.  AFAIK, the "some versions of sh (with) a bug" mentioned on the Wiki was actually just *one* vendors /bin/sh (I forget which, but it was probably HP-UX), which has long since been fixed.
      
      Unless someone can locate an actual broken /bin/sh in the wild that has this bug, it's probably best to leave the documentation as it is.
      
      
      
    2. login: "jenglish"
    3. mimetype: "text/plain"
    4. username: "jenglish"
  4. Ticket change [a110b08ced] (rid 109656) by dgp on 2002-04-22 21:42:15:

    1. closedate changed to: "2002-04-22T14:42:15"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      I agree with jenglish.  The proposal is more an example
      of how to work around bugs in other people's software,
      rather than documenting proper usage of our own.  Good
      information to have available (Wiki), but not the best
      default documentation.
      
      Moved to pending; will close automatically unless a
      more compelling case is made.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Rejected"
    7. status changed to: "Closed"
    8. username: "dgp"