[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ~.bashrc
> Is there an easier way to force the Bash shell to re-scan ~.bashrc
> than logging out and logging back in?
1. ". ~/.bashrc" (sources in that file)
2. "bash" (gets a new shell, which reads ~/.bashrc).
You should only have things like aliases that have no side effects in .bashrc.
You can see the problems of doing something like appending to PATH if .bashrc
gets run every time you fork off a subshell. Like in a pipeline command,
for example.
man bash for more info.
Mike/
---------------------------------------------
http://www.valuenet.net
-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.