Path: utzoo!attcan!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.wizards Subject: Re: What is a good way to do general execs? Message-ID: <3459@auspex.auspex.com> Date: 13 Jun 90 18:21:20 GMT References: <347@exodus.Eng.Sun.COM> <3449@auspex.auspex.com> <805@ehviea.ine.philips.nl> Organization: Auspex Systems, Santa Clara Lines: 16 >|The Bourne shell sources ".profile" *only* for login shells (just as the >|C shell sources ".login" only for login shells - the "-f" in >|"#! /bin/csh -bf" is there to prevent it from sourcing your ".cshrc"). > >Nope. For the man page for 'sh': > > Invocation. > If the first character of argument zero is -, commands are > read from $HOME/.profile, if such a file exists. I consider "login shell" basically short for "shell with the first character of argument zero a '-'" (which means that any shell fired up by "login" is a login shell, but so are shells fired up by e.g. "su" when run with the appropriate flag). I considered the more detailed explanation unnecessary and extraneous in this case....