We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45e911c commit d3a329eCopy full SHA for d3a329e
commonsh/10_alias
@@ -41,7 +41,7 @@ case `uname -s` in
41
alias ls="gls -h --color=auto"
42
else
43
# you have a GNU ls, surprise...
44
- case `ls --version 2>/dev/null | head -1` in
+ case `ls --version 2>/dev/null | head -n 1` in
45
*fileutils*|*coreutils*)
46
alias ls="ls -h --color=auto"
47
;;
@@ -55,7 +55,7 @@ case `uname -s` in
55
alias grep='ggrep -d skip --color=auto'
56
57
# woah, you have a GNU grep...
58
- case `grep --version 2>/dev/null | head -1` in
+ case `grep --version 2>/dev/null | head -n 1` in
59
*GNU*)
60
alias grep='grep -d skip --color=auto'
61
0 commit comments