Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Switching shell safely and efficiently
- X-seq: zsh-workers 15750
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Adam Spiers <adam@xxxxxxxxxx>, zsh-workers@xxxxxxxxxx
- Subject: Re: Switching shell safely and efficiently
- Date: Fri, 7 Sep 2001 15:28:46 -0700
- In-reply-to: <20010907234517.A6901@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20010907193550.A5678@xxxxxxxxxxxxxxxxxxxxxxx> <1010907190526.ZM17902@xxxxxxxxxxxxxxxxxxxxxxx> <20010907234517.A6901@xxxxxxxxxxxxxxxxxxxxxxx>
On Sep 7, 11:45pm, Adam Spiers wrote:
> Subject: Re: Switching shell safely and efficiently
> Bart Schaefer (schaefer@xxxxxxxxxxxxxxxx) wrote:
> > run_shell=`$myshell -c "echo exec $myshell" || echo :`
> > eval $run_shell '"$@"'
Now that I think about it, that could be just:
eval `$myshell -c "echo exec $myshell" || echo :` '"$@"'
> more stylish than my attempt, it's not quite as efficient through
> having to fork the shell before running it properly. To this end, a
> slight improvement might be skipping start-up files
I knew you were going to say that.
I chose to omit the -f in case the contents of the startup files are what
causes the shell to fail. You did want safety ...
Messages sorted by:
Reverse Date,
Date,
Thread,
Author