Bob Perry wrote:

Hello,

My environment variables indicate SHELL=/usr/local/bin/bash and
ENV=/home/rperry/.shrc.  My understanding is that bash reads
~/.bashrc for interactive shells and $ENV for non-interactive shells.
I don't have the ~/.bashrc file.  Neither do I have a ~/.bash_profile,
or a ~/.bash_login file.

I also see where the startup files for bash are .profile and .bashrc.
One of the settings in my .profile indicates that ENV=$HOME/.shrc;
export ENV.

I've read where bash will read other files (e.g., .shrc, etc.) when it's own
initialization files are not present but I'd like to set up the appropriate
bash files anyway. I've seen examples of the .bashrc file in some text
but was looking for something from within FreeBSD. I found some
/src/share/skel/dot.* files but none for bash. Can anyone tell me if such
sample files exists and where I might find them? Do I need really need
them?


Thank you.
Bob Perry

man bash:

When bash is invoked as an interactive login shell, or as a non-inter-
active shell with the --login option, it first reads and executes com-
mands from the file /etc/profile, if that file exists. After reading
that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile,
in that order, and reads and executes commands from the first one that
exists and is readable. The --noprofile option may be used when the
shell is started to inhibit this behavior.



So the skel/dot.profile is used by bash.


PWR.

_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to