Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: retrieving invocation arguments
- X-seq: zsh-users 4236
- From: Adam Spiers <adam@xxxxxxxxxx>
- To: Zsh users list <zsh-users@xxxxxxxxxx>
- Subject: Re: retrieving invocation arguments
- Date: Tue, 18 Sep 2001 11:53:42 +0100
- In-reply-to: <20010917162508.A19038@xxxxxxxxxxxxxxxxxx>; from svc@xxxxxxxxx on Mon, Sep 17, 2001 at 04:25:08PM -0400
- Mail-followup-to: Zsh users list <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <1010917151730.ZM5670@xxxxxxxxxxxxxxxxxxxxxxx> <28827.1000741112@xxxxxxx> <20010917215915.A6902@xxxxxxxxxxxxxxxxxxxxxxx> <20010917162508.A19038@xxxxxxxxxxxxxxxxxx>
- Reply-to: Adam Spiers <adam@xxxxxxxxxx>
Sweth Chandramouli (svc@xxxxxxxxx) wrote:
> 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?
I'm already using a work-around. I merely wanted to know if there was
a clean and totally generalised way to do it, because I don't use the
same options on all machines I use, and I'd rather not have to code a
different restart function for each one.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author