Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: retrieving invocation arguments
- X-seq: zsh-users 4231
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx (Zsh users list)
- Subject: Re: retrieving invocation arguments
- Date: Mon, 17 Sep 2001 16:38:32 +0100
- In-reply-to: "Bart Schaefer"'s message of "Mon, 17 Sep 2001 15:17:30 -0000." <1010917151730.ZM5670@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Bart Schaefer wrote:
> ## begin saveopts
> emulate -L zsh # This takes care of ksharrays et al.
It also screws everything up completely, appearing at that point. That's
why I tried to do the minimum, saving the options to an ordinary array,
first.
> # I'm not sure what PWS was doing with zmodload -e ...
I can't spell `-i'.
> Of course none of this answers the original question, because by the time
> the user gets to execute any shell code the options may have been changed
> by /etc/zshenv.
OK, I missed the point that Adam wants to restart the shell as it was
invoked, rather than as it now is. You can argue which is more useful.
If you don't use -f, you can at least arrange to restart it as it was after
the startup scripts finished the last time, which is equivalent if you want
to prepare a given environment. With -f you're more stuck.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK Tel: +44 (0)1223 392070
**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential
and/or privileged material.
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is
prohibited.
If you received this in error, please contact the sender and
delete the material from any computer.
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author