home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / linux / 6740 < prev    next >
Encoding:
Internet Message Format  |  1992-07-26  |  1.5 KB

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