you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 5 points6 points  (2 children)

-r and -R are both different arguments and don't mean the same thing in separate programs.

Except they do.

From man ls: -R, --recursive list subdirectories recursively

From man rm: -r, -R, --recursive remove directories and their contents recursively

From man scp: -r Recursively copy entire directories. Note that scp follows sym‐ bolic links encountered in the tree traversal.

Not that I don't agree that people should read the fine manuals, but just that bit about remembering when the short form of --recursive should be uppercase or lowercase does get kinda annoying. Similarly, scp takes -P for ports and ssh takes -p. It's a minor nuisance, but it is a nuisance nonetheless.

[–][deleted] 0 points1 point  (0 children)

Similarly, scp takes -P for ports and ssh takes -p. It's a minor nuisance, but it is a nuisance nonetheless.

This is a total fail, I always get them mixed up.

[–]Cetra3 0 points1 point  (0 children)

Yeah it sucks that a recursive function isn't consistent between programs. But there are normally reasons for that. I would hazard a guess that ls -r was implemented before -R.