To view parent comment, click here.
To read all comments associated with this story, please click here.
I like the fact that there are different shells, compilers, make utilities, editors, etc. etc. These are not all equivalent or even compatible. But it's good to do things different ways, as long as it all hangs together in the end.
This bazaar-like system will produce the kind of inconsistencies you point out, but it's no biggie if it produces better software in the end.
I find it's often important to understand the "why" of a thing be it computers or other topics.
For chmod "-r" means "remove read permissions" so it can't also mean "do this recursively" hence, you have the only other available option "-R".
Granted, there are other examples like things that only recognize "--help" rather than providing a "-h" quick help display.
Still haven't found an OS that does remain truly consistent though either.




Member since:
2005-07-06
I do not understand how inconsistency would be fun or flexible.
Here's a quiz - which one will operate recursively on directories:
'ls -r' or 'ls -R'? 'rm -r' or 'rm -R'? 'chmod -r' or 'chmod -R'?
The only reason I can come up with for this inconsistency is that there is no reason. There wasn't any thought put into it when those commands were written, and we've stuck with it for decades.