From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5884 invoked from network); 17 Sep 2001 15:40:13 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 17 Sep 2001 15:40:13 -0000 Received: (qmail 194 invoked by alias); 17 Sep 2001 15:39:18 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4231 Received: (qmail 160 invoked from network); 17 Sep 2001 15:39:16 -0000 To: zsh-users@sunsite.dk (Zsh users list) Subject: Re: retrieving invocation arguments In-reply-to: "Bart Schaefer"'s message of "Mon, 17 Sep 2001 15:17:30 -0000." <1010917151730.ZM5670@candle.brasslantern.com> Date: Mon, 17 Sep 2001 16:38:32 +0100 Message-ID: <28827.1000741112@csr.com> From: Peter Stephenson 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 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. **********************************************************************