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