sh与csh中的算符优先顺序
第一个脚本(1.sh):
#!/bin/sh
echo test
exit 1测试命令:./1
csh:
./1.sh | grep test && echo e
testsh:
./1.sh | grep test && echo e
test
e共1篇文章。
第一个脚本(1.sh):
#!/bin/sh
echo test
exit 1测试命令:./1
csh:
./1.sh | grep test && echo e
testsh:
./1.sh | grep test && echo e
test
e