home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / linux / 6785 < prev    next >
Encoding:
Text File  |  1992-07-27  |  2.1 KB  |  70 lines

  1. Nntp-Posting-Host: maud.ifi.uio.no
  2. Newsgroups: comp.os.linux
  3. Path: sparky!uunet!mcsun!sunic!aun.uninett.no!nuug!ifi.uio.no!janl
  4. From: janl@ifi.uio.no (Jan Nicolai Langfeldt)
  5. Subject: .login, .profile bash and stuff (some answers) (Was: Minor problems with Linux)
  6. Message-ID: <1992Jul27.172918.27961@ifi.uio.no>
  7. Sender: janl@ifi.uio.no (Nicolai Langfeldt)
  8. Organization: Folkeaksjonen for (tungt) eple cider p} Inf. stua
  9. References: <711857605.F00038@remote.halcyon.com> <5442@mccuts.uts.mcc.ac.uk>
  10. Date: Mon, 27 Jul 1992 17:29:18 GMT
  11. Lines: 56
  12. Originator: janl@maud.ifi.uio.no
  13.  
  14.  
  15. This is actuall pieces of the bash man page:
  16.  
  17. Nicolai
  18.  
  19. -- 
  20. Nicolai Langfeldt, "Bugs made while you wait"             
  21. Internet: janl@ifi.uio.no
  22.  
  23. --------------------
  24. INVOCATION
  25.      A login shell is one whose first character of argument  zero
  26.      is a - , or one started with the -login flag.
  27.  
  28.      An interactive shell is one whose standard input and  output
  29.      are   both   connected   to   terminals  (as  determined  by
  30.      isatty(3)), or one started with the -i flag.  PS1 is set and
  31.      $- includes i if bash is interactive, allowing a way to test
  32.      this state from a shell script or a startup file.
  33.  
  34.      Login shells:
  35.        On login:
  36.              if /etc/profile exists, source it.
  37.  
  38.              if ~/.bash_profile exists, source it,
  39.                else if ~/.bash_login exists, source it,
  40.                  else if ~/.profile exists, source it.
  41.        On logout:
  42.              if ~/.bash_logout exists, source it.
  43.  
  44.      Non-login interactive shells:
  45.        On startup:
  46.              if ~/.bashrc exists, source it.
  47.  
  48.      Non-interactive shells:
  49.        On startup:
  50.              if the environment variable ENV is non-null, expand
  51.           it and source the file it names.
  52.  
  53.  
  54.  
  55. FILES
  56.      /bin/bash
  57.           The bash executable
  58.      /etc/profile
  59.           The systemwide initialization file, executed for  login
  60.           shells
  61.      ~/.bash_profile
  62.           The personal initialization file,  executed  for  login
  63.           shells
  64.      ~/.bashrc
  65.           The individual per-interactive-shell startup file
  66.      ~/.inputrc
  67.           Individual Readline initialization file
  68.  
  69.  
  70.