Differences between revisions 5 and 6
Revision 5 as of 2012-03-31 07:32:01
Size: 402
Editor: Lhunath
Comment:
Revision 6 as of 2012-11-22 09:09:37
Size: 739
Editor: dsl-KK-static-231
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:

Q. The following suggestion can be harmful:
echo 'PATH="$HOME/bin:$PATH"' >> "$HOME/.bashrc"
If someone places a script named 'ls' in the bin directory of $HOME, you would be running it every time you typed 'ls', instead of running the builtin 'ls'. This can be harmful.
I suggest
echo 'PATH="$PATH:$HOME/bin"' >> "$HOME/.bashrc"

This page is for any feedback on the BashGuide. Feel free to ask any questions you want.

Q: I would like to cover bash in a course I will soon be teaching. May I use these materials for my course, provided the source is cited? Thanks for this excellent work, btw.

Absolutely. Perhaps we should consider putting a license on these documents. Creative commons something perhaps. - Lhunath

Q. The following suggestion can be harmful: echo 'PATH="$HOME/bin:$PATH"' >> "$HOME/.bashrc" If someone places a script named 'ls' in the bin directory of $HOME, you would be running it every time you typed 'ls', instead of running the builtin 'ls'. This can be harmful. I suggest echo 'PATH="$PATH:$HOME/bin"' >> "$HOME/.bashrc"

BashGuideFeedback (last edited 2013-12-18 02:56:25 by Chandra)