Commands like git
, hg
, and apt-get
all have sub-commands (is there a better name?), and they are all case-sensitive:
hg log # not hg Log
git status # not git Status
sudo apt-get install nano # not sudo apt-get Install nano
Obviously a lot of things in Unix need to be case-sensitive, because that's kind of how Unix is.
But in this case, there's no potential ambiguity. Those arguments can only be command names and can't be anything else (can they?). git
's error message suggests that this is the case:
> git Status
git: 'Status' is not a git command. See 'git --help'.
Did you mean this?
status
Besides adding just a little more frustration for beginners and conforming to Unix culture, is there any reason to be case-sensitive?
git status
then it's pretty obvious that you should type that. The lack of specifying things explicitly has more to do with laziness IMO. The mindset of "case doesn't matter" has more to do with growing up in a Windows culture. – slm Mar 26 '14 at 01:39