相关疑难解决方法(0)

OSX中的Bash管道有时会提示找不到命令

在OSX终端中:

du -h | sort -nr
-bash:  sort: command not found

which sort
/usr/bin/sort
Run Code Online (Sandbox Code Playgroud)

奇怪的是:我尝试重现错误,它似乎是完全随机的.我的PATH回应道:

/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/usr/texbin:/Users/sytycs/.rvm/bin
Run Code Online (Sandbox Code Playgroud)

这种情况只发生在管道与发生grep,more,less等任何想法是什么原因造成的?

bash pipe piping osx-lion

13
推荐指数
2
解决办法
4363
查看次数

标签 统计

bash ×1

osx-lion ×1

pipe ×1

piping ×1