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

Re: retrieving invocation arguments



On Sat, Sep 15, 2001 at 05:34:27PM +0000, Bart Schaefer wrote:
> On Sep 14,  9:42pm, Adam Spiers wrote:
> }
> } What's the best way of retrieving the arguments with which zsh was
> } invoked?
> 
> By examining $0, $-, and $*.  This is imperfect; $- doesn't tell you
> what options were turned off.
	Why can't you just parse the output of setopt?  I think
you and I had a thread about how to do that easily a couple of years
ago; it should be in the archives, and it wouldn't be hard to modify.

	-- Sweth.

-- 
Sweth Chandramouli ; <svc@xxxxxxxxx>
President, Idiopathic Systems Consulting

Attachment: pgpL8lHuWfJIW.pgp
Description: PGP signature



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