Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Watch for undocumented behavior of cp -R' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Watch for undocumented behavior of cp -R
Authored by: allanj37 on Nov 16, '05 07:47:36AM

Yes, this behavior is logical if you think about it, but the point is that it is still easy to accidently do the wrong one, especially with tab-completion.



[ Reply to This | # ]
Watch for undocumented behavior of cp -R
Authored by: adrianm on Nov 16, '05 08:06:01AM

If you use zsh instead of bash, the trailing slash is removed after tab completion if you don't do anything else with it.

Reason to use zsh #472



[ Reply to This | # ]
more dangerous
Authored by: melvinwalker on Nov 16, '05 10:56:49AM

Which is exactly why command lines are considered more dangerous than a GUI.

If someone wants to experiment with the command line, do it in a user account that has a lot of restrictions first. That's not always possible, but it's safer than using your administrator account.



[ Reply to This | # ]