Differences between revisions 1 and 8 (spanning 7 versions)
Revision 1 as of 2010-07-10 20:44:25
Size: 91
Editor: GreyCat
Comment:
Revision 8 as of 2013-09-29 21:18:52
Size: 1350
Editor: host86-181-145-229
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:

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"

It is not harmful. Anyone with write access to ~/bin will generally have write access to ~/.bashrc, so there is no additional loss of security here. The original proposal also allows the user to wrap standard utilities, which yours cannot (in fact, that exactly why you proposed it). I believe being able to wrap utilities can be very useful. - [[Lhunath]]

Feedback: I could not understand the HereDocument page (found another source that helped) and I think the page could do with working examples and a more thorough explantion. Rest of course is wonderful though, I learn so much today, thanks :)

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"

It is not harmful. Anyone with write access to ~/bin will generally have write access to ~/.bashrc, so there is no additional loss of security here. The original proposal also allows the user to wrap standard utilities, which yours cannot (in fact, that exactly why you proposed it). I believe being able to wrap utilities can be very useful. - Lhunath

Feedback: I could not understand the HereDocument page (found another source that helped) and I think the page could do with working examples and a more thorough explantion. Rest of course is wonderful though, I learn so much today, thanks :)

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