From: Adam Spiers <adam@spiers.net>
To: Zsh users list <zsh-users@sunsite.dk>
Subject: Re: retrieving invocation arguments
Date: Tue, 18 Sep 2001 11:53:42 +0100 [thread overview]
Message-ID: <20010918115342.B6902@thelonious.new.ox.ac.uk> (raw)
In-Reply-To: <20010917162508.A19038@astaroth.sweth.net>; from svc@sweth.net on Mon, Sep 17, 2001 at 04:25:08PM -0400
Sweth Chandramouli (svc@sweth.net) 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.
next prev parent reply other threads:[~2001-09-18 10:10 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-14 20:42 Adam Spiers
2001-09-15 17:34 ` Bart Schaefer
2001-09-17 10:02 ` Sweth Chandramouli
2001-09-17 11:07 ` Peter Stephenson
2001-09-17 15:17 ` Bart Schaefer
2001-09-17 15:38 ` Peter Stephenson
2001-09-17 16:06 ` Bart Schaefer
2001-09-17 20:59 ` Adam Spiers
2001-09-17 20:25 ` Sweth Chandramouli
2001-09-18 10:53 ` Adam Spiers [this message]
2001-09-17 10:23 ` Adam Spiers
2001-09-17 16:13 ` Bart Schaefer
2001-09-18 11:39 ` Adam Spiers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010918115342.B6902@thelonious.new.ox.ac.uk \
--to=adam@spiers.net \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).