home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!mucs!mccuts!zlsiial
- From: zlsiial@uts.mcc.ac.uk (A. V. Le Blanc)
- Newsgroups: comp.os.linux
- Subject: Re: Minor problems with Linux
- Message-ID: <5442@mccuts.uts.mcc.ac.uk>
- Date: 26 Jul 92 09:57:37 GMT
- References: <711857605.F00038@remote.halcyon.com>
- Reply-To: LeBlanc@mcc.ac.uk
- Organization: Computing Centre, University of Manchester
- Lines: 23
-
- In article <711857605.F00038@remote.halcyon.com> Rob.Levin@f217.n3802.z1.fidonet.org (Rob Levin) writes:
- >
- > CM> Speaking of .profiles, what is the name of the ".login" that bash
- >executes
- > CM> just before coming up? I would like to set my PATH variable
- > CM> to inclue "."...
- >
- >It seems to vary from root disk to root disk. Try ".bash_profile" on
- >Jim Winstead's root, though you may have to change your shell name in
- >/etc/passwd to "bash" instead of "sh". On MCC, I'm not sure.
-
- The problem is that bash works differently depending on whether it is
- named as /bin/sh or as /bin/bash. I very much doubt if anyone's changing
- defaults for this. As /bin/sh it looks for ~/.profile, and as /bin/bash
- for ~/.bash_profile first and ~/.profile second (I think it's actually a
- little more complex, but haven't got the references to hand). For this
- reason the three login-able user names for the MCC interim versions have
- ~/.profile files. Moreover, the default PATH variables for all user names
- in that distribution already, as I recall, include '.' in the PATH;
- that is, for all user names except 'root' and perhaps 'bin'.
-
- -- Owen
- LeBlanc@mcc.ac.uk
-