From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3325 invoked from network); 17 Sep 2001 10:03:33 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 17 Sep 2001 10:03:33 -0000 Received: (qmail 27078 invoked by alias); 17 Sep 2001 10:03:18 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4228 Received: (qmail 27067 invoked from network); 17 Sep 2001 10:03:17 -0000 Date: Mon, 17 Sep 2001 06:02:15 -0400 From: Sweth Chandramouli To: zsh-users@sunsite.dk Subject: Re: retrieving invocation arguments Message-ID: <20010917060215.A16077@astaroth.sweth.net> Mail-Followup-To: zsh-users@sunsite.dk References: <20010914214218.A23939@thelonious.new.ox.ac.uk> <1010915173427.ZM1780@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="T4sUOijqQbZv57TR" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <1010915173427.ZM1780@candle.brasslantern.com> --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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? >=20 > 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. --=20 Sweth Chandramouli ; President, Idiopathic Systems Consulting --T4sUOijqQbZv57TR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (SunOS) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjulyiYACgkQDm6vx6GSHlnuvwCg7orfh/biX254yieUj6887Mrv YpwAn1up1iUGfD3A6fl6yOAXMO8RHf+L =3Q/k -----END PGP SIGNATURE----- --T4sUOijqQbZv57TR--