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

Re: retrieving invocation arguments



On Sep 17,  4:38pm, Peter Stephenson wrote:
} Subject: Re: retrieving invocation arguments
}
} Bart Schaefer wrote:
} >   ## begin saveopts
} >   emulate -L zsh	# This takes care of ksharrays et al.
} 
} It also screws everything up completely, appearing at that point.  That's
} why I tried to do the minimum, saving the options to an ordinary array,
} first.

Right, sorry, I noticed that just after I'd sent the message.

I think actually that the "emulate" could just be discarded entirely from
my version.  All the joins and splits are explicit so shwordsplit doesn't
matter, pattern matching with (...|...) works even with kshglob, and there
are no ordinary arrays to be affected by ksharrays.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



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