From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17556 invoked from network); 17 Sep 2001 20:26:30 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 17 Sep 2001 20:26:30 -0000 Received: (qmail 23227 invoked by alias); 17 Sep 2001 20:26:11 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4235 Received: (qmail 23214 invoked from network); 17 Sep 2001 20:26:10 -0000 Date: Mon, 17 Sep 2001 16:25:08 -0400 From: Sweth Chandramouli To: Zsh users list Subject: Re: retrieving invocation arguments Message-ID: <20010917162508.A19038@astaroth.sweth.net> Mail-Followup-To: Zsh users list References: <1010917151730.ZM5670@candle.brasslantern.com> <28827.1000741112@csr.com> <20010917215915.A6902@thelonious.new.ox.ac.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="tThc/1wpZn/ma/RB" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010917215915.A6902@thelonious.new.ox.ac.uk> --tThc/1wpZn/ma/RB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 17, 2001 at 09:59:15PM +0100, Adam Spiers wrote: > To give some context to this, some machines I use have RedHat > brokenness in /etc/zshrc, which I avoid by invoking zsh with -d from > my .switch_shell. If I then tweak something in my .zshrc for > instance, or cvs update and reinstall a new zsh, I want to be able to > just type `restart' to get a fresh new shell, hence the need for > restart preserving the -d option. Umm... if you know what the flag in question is, why not just hardcode it into your restart function, or have your restart function call you switch_shell routine, or one of a million other ways to not have to parse the entire shell option list just to see if an option that you know you want to set happens to be set? -- Sweth. --=20 Sweth Chandramouli ; President, Idiopathic Systems Consulting --tThc/1wpZn/ma/RB 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 iEYEARECAAYFAjumXCMACgkQDm6vx6GSHllieACfSfuFWbKgPYqKc07Wax/3+RJS 7OYAoNekUKgBkCW3NyewKN4FUPfq37fo =CeUi -----END PGP SIGNATURE----- --tThc/1wpZn/ma/RB--