zsh-users
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@brasslantern.com>
To: Sweth Chandramouli <sweth@astaroth.nit.gwu.edu>,
	ZSH Users <zsh-users@math.gatech.edu>
Subject: Re: init files
Date: Sun, 9 Aug 1998 15:04:41 -0700	[thread overview]
Message-ID: <980809150442.ZM21544@candle.brasslantern.com> (raw)
In-Reply-To: <19980809150805.47993@astaroth.nit.gwu.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 <gjb@cs.washington.edu> 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


  reply	other threads:[~1998-08-09 22:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-09 19:08 Sweth Chandramouli
1998-08-09 22:04 ` Bart Schaefer [this message]
1998-08-10  1:02   ` Sweth Chandramouli
1998-08-10  3:51     ` Bart Schaefer
1998-08-15 17:24       ` Bart Schaefer
1998-08-10  9:13     ` Zefram

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=980809150442.ZM21544@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=sweth@astaroth.nit.gwu.edu \
    --cc=zsh-users@math.gatech.edu \
    /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).