From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2063 invoked from network); 9 Aug 1998 22:15:06 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 9 Aug 1998 22:15:06 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id SAA02926; Sun, 9 Aug 1998 18:02:38 -0400 (EDT) Resent-Date: Sun, 9 Aug 1998 18:02:27 -0400 (EDT) From: "Bart Schaefer" Message-Id: <980809150442.ZM21544@candle.brasslantern.com> Date: Sun, 9 Aug 1998 15:04:41 -0700 In-Reply-To: <19980809150805.47993@astaroth.nit.gwu.edu> Comments: In reply to Sweth Chandramouli "init files" (Aug 9, 3:08pm) References: <19980809150805.47993@astaroth.nit.gwu.edu> X-Mailer: Z-Mail (4.0b.820 20aug96) To: Sweth Chandramouli , ZSH Users Subject: Re: init files MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"-7K2R1.0.8j.onXpr"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1714 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Aug 9, 3:08pm, Sweth Chandramouli wrote: } Subject: init files } } there was a thread about this maybe a year ago, wherein bart (i } think) had said that the NO_RCS option was checked before the } sourcing of /etc/zshrc and $ZDOTDIR/.zshrc Yes, I did say that, but Greg Badros pointed out that I should have said that INTERACTIVE was tested, not NO_RCS. He included a pointer to a flow chart: http://www.cs.washington.edu/homes/gjb/ToolsTalks/unix-shell/img009.GIF } also, i'm not perfectly clear on what tests } are done to determine whether or not a shell is a login shell The only test done is whether the LOGIN option is set. This option may be set (or unset) explicitly with setopt (unsetopt) or -l (+l), and is otherwise set only if the first character of argv[0] is '-'. } and/or an interactive one. INTERACTIVE is set when isatty(0) is true, and is unset again if the -c option or the name of a script file is provided, unless -i is also given. Of course, it's also unset by the +i option. } at the very least, the man } pages state that INTERACTIVE can be set to a different value, } whereas whenever i try to do so, i get an error back Where do you find that in the man page? My "man zshoptions" under INTERACTIVE says, "The value of this option cannot be changed anywhere other than the command line." } the tests given in the STARTUP FILES section of the manpage } for a login shell (-l or -zsh) aren't true for any of my login } shells How are you determining this? What does "echo $0" at a PS1 prompt show? -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com