我不明白为什么使用别名会提示错误,但使用没有别名的相同语法不会......
alias grep='egrep -iIs '
19:47:24 ~
cat /etc/services | \grep ssh
ssh 22/tcp # SSH Remote Login Protocol
19:47:26 ~
cat /etc/services | grep ssh
grep: option requires an argument -- 'X'
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
19:47:33 ~
cat /etc/services | egrep -iIs ssh
ssh 22/tcp # SSH Remote Login Protocol
Run Code Online (Sandbox Code Playgroud)
你能解释一下吗?