Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh portable script



On Tue, 13 Jul 2010 17:08:42 -0400 (EDT)
"Benjamin R. Haskell" <zsh@xxxxxxxxxx> wrote:
> > % cat execme 
> > #!zsh -f
> > print I am running under $ZSH_VERSION
> > % PATH=/bin ./execme
> > I am running under 4.3.10
> > % PATH=/usr/local/bin ./execme
> > I am running under 4.3.10-dev-1
> 
> I don't quite understand... what does this improve?  Doesn't the
> script already have to be running under Zsh for this to have any
> effect?

Yes, the script has to be started from an instance of zsh, that's exactly
why this has a limited effect.

-- 
Peter Stephenson <pws@xxxxxxx>            Software Engineer
Tel: +44 (0)1223 692070                   Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK


Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom



Messages sorted by: Reverse Date, Date, Thread, Author