[NTG-context] updating context on Ubuntu 6.06

Taco Hoekwater taco at elvenkind.com
Wed Jul 26 22:34:07 CEST 2006


Sanjoy Mahajan wrote:
> 
> It was hard to find a machine not running bash, a measure of the
> success of free software.  But I eventually found a nearby Solaris
> machine running 'sh' (couldn't tell which version), but it's man entry
> says the same:
> 
>      if $@ is within a pair of double quotes, the positional
>      parameters are substituted and quoted, separated by unquoted
>      spaces ("$1""$2" ... )
> 
> So I think it's safe, and increases robustness, to change $@ -> "$@"
> in all the stub scripts.

Many thanks for looking that up.

> 
> One question: How safe is it that the ctxtools.rb script is
> overwritten by the unzip in the middle of running the script?  Will
> ruby execute half from the old script and half from the new script?

That is safe. Modern scripting languages normally byte-compile the
entire file before running it (the main advantage is that this
captures syntrax errors before any real harm is done).

Taco


More information about the ntg-context mailing list