Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 SMI; site sun.uucp Path: utzoo!linus!philabs!prls!amdimage!amdcad!decwrl!sun!guy From: guy@sun.uucp (Guy Harris) Newsgroups: net.unix-wizards Subject: Re: .profile not being read from $HOME Message-ID: <2510@sun.uucp> Date: Sun, 28-Jul-85 00:46:57 EDT Article-I.D.: sun.2510 Posted: Sun Jul 28 00:46:57 1985 Date-Received: Tue, 30-Jul-85 04:52:08 EDT References: <254@SCIRTP.UUCP> Distribution: net Organization: Sun Microsystems, Inc. Lines: 15 > We run IN/ix, Interactive Systems' port of System III. When a program > exec()s /bin/sh with argument 0 set to -sh, .profile is being read from > ./.profile instead of $HOME/.profile as documented in every Unix user's > manual that I've looked at. Is this a documentation problem or a bug? It's a documentation problem. "sh" is supposed to read .profile from the current directory. This doesn't cause a problem, because you aren't supposed to run login shells (i.e., shells with argv[0] equal to "-sh") unless you're in the user's home directory. > Do other Unix systems have the same problem? What is the correct behavior? All other UNIX systems behave the same way. Guy Harris