Re: ncsim stop in Tcl proc problem?



Donald Arseneau wrote:
"Davy" <zhushenli@xxxxxxxxx> writes:

stop ... -exec [join $cmds ";\n"]

stop ... -exec { [join $cmds ";\n"] }
,but it cannot find $cmds, why?

Didn't we just go through this with $base?

(By the way, no need for *both* ; and \n. Either would suffice.)

True. It is a belt and suspenders approach. I added the \n in my earlier example simply for the case where a human wants to look at the generated output. Why I didn't *just* use \n remains a mystery even to me :-)
.



Relevant Pages

  • Re: Decimals
    ... transatlantic translation of the English "belt and braces".' ... the big news is optional air-and-steel rear ... In the USA 'belt and suspenders' is used with just the same meaning. ...
    (alt.usage.english)
  • Re: Foreigner(s)
    ... course, "suspenders", the preferred term in AmE. ... Is there the expression "belt and suspenders"? ... Ah, the Betty Page era. ... she said she was still wearing nylons in 1964. ...
    (alt.usage.english)
  • Re: Bespoke
    ... > I don't wear suspenders, but - if I did - I would also wear a belt. ... Coop, do you not understand that a belt is a *substitute* ...
    (alt.usage.english)
  • Re: stocking/stockinged feet
    ... Does anyone wear both suspenders and shirt stays? ... Or is that too belt ... held together by his collar and his Y-fronts. ...
    (alt.usage.english)
  • Re: Time waisting
    ... I'm gonna belt you the next time I see you. ... Until you buckle. ... The suspenders are killing me. ...
    (talk.origins)