sh

共 1 篇文章。

sh与csh中的算符优先顺序

• Cheatsheets

第一个脚本(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

阅读全文… ( 本文约 170 字,阅读大致需要 1 分钟 )