欢迎您访问365答案网,请分享给你的朋友!
生活常识 学习资料

bash和sh的区别

时间:2023-06-13

1.bash and sh are two different shells、Basically bash is sh, with more features and better syntax、Most commands work the same, but they are different.2.Having said that, you should realize /bin/sh on most systems will be a symbolic link and will not invoke sh.3.In Ubuntu /bin/sh used to link to bash, typical behavior on Linux distributions、but now has changed to linking to another shell called dash.suggest:I would use bash, as that is pretty much the standard (or at least most common, from my experience).可能遇到的问题:In fact, problems arise when a bash script will use #!/bin/sh because the script-maker assumes the link is to bash when it doesn't have to be.

Copyright © 2016-2020 www.365daan.com All Rights Reserved. 365答案网 版权所有 备案号:

部分内容来自互联网,版权归原作者所有,如有冒犯请联系我们,我们将在三个工作时内妥善处理。