shell 之 bash 与sh 区别
来源:互联网 发布:红色警戒mac迅雷下载 编辑:程序博客网 时间:2024/06/01 21:35
在文件的第一行
#!/bin/sh #!/bin/bash 还是有区别的,如果是sh就认 let的指令,并且会打印出错
chen@chen-ThinkPad-T420:~/rtl8188$ ./test8188.sh
0x001122334455
9
./test8188.sh: 15: ./test8188.sh: let: not found
9
./test8188.sh: 27: [: unexpected operator
is different
./test8188.sh: 27: [: unexpected operator
is different
./test8188.sh: 27: [: unexpected operator
is different
如果是这个开头
#!/bin/bash
正确打印
chen@chen-ThinkPad-T420:~/rtl8188$ ./test8188.sh
0x001122334455
9
10
is different
is different
is different
is different
is different
0 0
- shell 之 bash 与sh 区别
- 【shell】bash与sh的区别
- 【shell】bash与sh的区别
- sh与bash的区别
- bash与sh的区别
- bash与sh的区别
- bash与sh的区别【Difference between sh and bash】
- Shell: sh,bash,csh,tcsh等shell的区别
- Shell: sh,bash,csh,tcsh等shell的区别
- Linux shell脚本中#! /bin/bash 与 #! /bin/sh 的区别
- 深入了解bash与sh的区别
- #!/bin/sh与#!/bin/bash的区别
- /bin/sh 与 /bin/bash 的区别
- #!/bin/sh与#!/bin/bash的区别
- #! /bin/sh 与 #! /bin/bash 的区别
- #!/bin/sh与#!/bin/bash的区别
- #!/bin/bash与 #!/bin/sh的区别
- Linux中bash与sh的区别
- Intent 全面理解
- 朴素贝叶斯分类
- 置位比特位置查找
- bzoj 2049: [Sdoi2008]Cave 洞穴勘测(LCT模板)
- Java多线程Runnable接口与Thread类,以及synchronied关键字
- shell 之 bash 与sh 区别
- java集合(一)
- BestCoder Round #74
- 错误与断言
- 2016校招阿里电面题【实习】
- java虚拟机 内存模型
- dfs模板
- Linux学习笔记7
- RT3070驱动移植及测试