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: auricgoldfinger on Nov 16, '05 12:02:52PM

Well, / is a delimiter to identify folder-files. So it actually isn't quite logical that you copy the directory under folder/ without copying the folder itself too.

And why you would do the cp -R folder/ thing?
mkdir temporary
cp -R tem<tab>

If you hit the tab then, bash will autocomplete to "temporary/"
Note the trailing slash?
That's why someone would like to add the /

[ Reply to This | # ]