This is a kind of "wtf?" question, so I'm sorry if I will disturb someone's vision of how things should be or if I will just annoy you with the "stupid" question.
I always get messed up when need to use cp
or mv
: "do I need -R
option when working with dir?" In GNU coreutils cp
does need -R
and mv
doesn't. I didn't check *BSD, Solaris, HPUX because I don't have any.
I just can not find any reason why cp
needs -R
option for copying dirs and mv
doesn't. I think that cp
ing dirs without -R
(but behaving recursively like there's -R
and like mv
does) wouldn't cause any problems except breaking someone's habits on using the tool.
Do you know any explanation? May be it had a reason long time ago?
Additional question: why don't coreutils developers make cp
copy dirs recursively by default?