Re: Question: For each instance of a shell, which do I modify to get permiamnt results??.profile,bash.profile?

From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 10/30/03

  • Next message: Harry: "Re: skip printer folder name if empty"
    Date: Thu, 30 Oct 2003 05:29:03 GMT
    
    

    On Thu, 30 Oct 2003 04:50:07 GMT, Sputz Yadoo <Sputz@Daytona.com> wrote:
    >
    >
    > Each time my shell starts an instance, I thought it uses a copy of
    > bash.profile in the users home directory and rename it " .profile"
    > this is where I make all alias's permanant, set additional paths like
    > % PATH="$PATH:" /BLAW/BLAW/BLAW.
    > Thanks for the help!!
    > trudy

    On my box, the ~/.bash_profile has this script:

    if [ -f ~/.bashrc ]; then
        source ~/.bashrc
    fi

    Only the umask and command to bring up screen (the 'window' manager)
    are there.

    It's for the login shell.

    Everything else is in ~/.bashrc, including all the environmental variables
    I want for every instance and subshell.

    export Mail=/var/spool/mail/me

    and so forth.

    There is also /etc/profile, /etc/bash.bashrc, and /etc/login.defs for
    global stuff, which is usually overridden by local rc files.

    -- 
    Alan C    this post ends with    w
                                     q
    

  • Next message: Harry: "Re: skip printer folder name if empty"

    Relevant Pages

    • Re: Executing a command in sub-shell
      ... > script and only 1 line of output, ... which is expanded by the shell where it has not been set. ... > expand it dynamically in the subshell, it needs to be quoted in the here ... > its parent shell, so you're out of luck there. ...
      (comp.unix.shell)
    • Re: how to set timeout for read command
      ... > The shell is asked to do a number of things. ... This could take a very long time if the remote machine is not ... > Line 7 kills off the background subshell, ... forward quote before (sleep.... ...
      (comp.unix.shell)
    • Re: alias to the sub shell
      ... :>: A script without a shebang is a new process, not a subshell. ... The shell then is allowed to determine how to process it. ...
      (comp.unix.shell)
    • Re: Where are timezones set on most unix systems?
      ... changing the TZ variable changes your local session timezone, ... for your process shell that you started. ... Environmental variables ... starts up in the process that launches all of that stuff.. ...
      (comp.unix.misc)
    • Re: alias to the sub shell
      ... :>: A script without a shebang is a new process, not a subshell. ... The shell then is allowed to determine how to process it. ...
      (comp.unix.shell)