Question about join command

From: clarissa (tlan_bach_at_yahoo.ca)
Date: 10/21/04

  • Next message: Stephen Huntley: "Tcl for Novell/NLM?"
    Date: Thu, 21 Oct 2004 14:40:35 -0400
    
    

    The join command act differently in my scripts.
    1st script:
    >set a "a b c"
    >set b [join $a ""]
    >puts $b
    the end of 1st script I got "abc" print out
    2nd script:
    >set a "a b c"
    >set b [join $a ""]
    >set i [expr 0x$b]
    >puts $b
    >puts $i
    the end of 2nd script I got
    a0b0c
    658188
    I use expect 5.21 for windows XP that includes tcl and tk 8.0
    Why the join command stuff 0 in my 2nd script?
    Thanks in advance for your answers


  • Next message: Stephen Huntley: "Tcl for Novell/NLM?"

    Relevant Pages

    • Script Error - Maybe Group Policy?
      ... Dim wshNetwork, ADSysInfo, CurrentUser, objUser ... I get an error on the last line with the Join command. ... to the XP SP1 computer the script runs without issue. ...
      (microsoft.public.scripting.vbscript)
    • join not joining more then 9 lines
      ... I am writing a script that is using the join command. ...
      (AIX-L)
    • Re: Nets in bidding war over J.J. Abrams-backed spy script
      ... A bidding war is raging over a drama spec script backed by J.J. ... ABC, CBS and NBC are in pursuit of the hot script by writer Josh Reims ...
      (rec.arts.tv)
    • More ABC, CBS pilots
      ... ABC continues to load up on comedy pilots, ... Cedric the Entertainer will star and has co-written the script with ... Charles Segars is also exec ... drama centering on a complicated family of doctors. ...
      (rec.arts.tv)
    • Re: More ABC, CBS pilots
      ... ABC continues to load up on comedy pilots, ... Alphabet's untitled Kelsey Grammer comedy, ... Cedric the Entertainer will star and has co-written the script with ... Charles Segars is also exec ...
      (rec.arts.tv)