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: owsla on Nov 16, '05 07:11:51AM

Indeed, the GNU version of cp does not have this behavior. Quite strange.

Anothe reason this "feature" is evil is because bash tab-completion puts the trailing / on the directory name for you. Instead of being able to hit space and move on to the next directory, you have to remove the / when typing out cp commands with lots of directories. I've definitely been tripped-up by that when I'm not paying attention.



[ Reply to This | # ]
Watch for undocumented behavior of cp -R
Authored by: the1truestripes on Nov 16, '05 10:00:18AM

FYI the tab completion in zsh strips the trailing / back off if you hit space or return just after the completion.

[ Reply to This | # ]