On Thu, 3 Oct 2002, Robert Monical wrote:

> I also have some functions defined in that same .bash_profile ( shell
> functions are new to me).

Functions should be defined in .bashrc, not .bash_profile, since the 
latter is only invoked during logins, while the former is onvoked whenever 
you launch a new subshell.

Most profiles start with:

        # Get the aliases and functions
        if [ -f ~/.bashrc ]; then
                . ~/.bashrc
        fi

in order to source the aliases and functions during the initial profile
startup, but thereafter only .bashrc is invoked.

Your account should have received working copies of both files from 
/etc/skel when created. If not, take a look in /etc/skel to see how the 
two files relate to each other.

-- 
"The only thing that helps me maintain my slender grip on reality is the
friendship I share with my collection of singing potatoes."

                        - Holly, JMC Vessel *Red Dwarf*



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to