|
- shell - Difference between sh and Bash - Stack Overflow
Bash is superset of sh Bash supports sh POSIX is a set of standards defining how POSIX-compliant systems should work Bash is not actually a POSIX compliant shell In a scripting language we denote the interpreter as #! bin bash Analogy: Shell is like an interface or specifications or API sh is a class which implements the Shell interface
- How do I execute a bash script in Terminal? - Stack Overflow
It can work if sh is a symlink to bash, or if the script does not use any Bash-specific construct In the former case, using bash instead of sh is the only correct, portable solution; in the latter case, it's not the correct answer to this particular question, because the OP asked about advice for a Bash script specifically Perpetrating the
- linux - Whats a . sh file? - Stack Overflow
sh files are unix (linux) shell executables files, they are the equivalent (but much more powerful) of bat files on windows So you need to run it from a linux console, just typing its name the same you do with bat files on windows
- What is the difference between using `sh` and `source`?
The main difference is that they are executed in a different process So if you source a file foo which does a cd, the sourcing shell (e g your interactive shell in the terminal) is affected (and its current directory will change)
- WIN10下如何在powershell或者cmd中运行. sh文件? - 知乎
zhouzhou:【git】Windows下运行 sh文件 安装git,在系统环境中增加git的bin路径。 然后你会发现 在cmd中,sh还是执行不了,但bash可以(win10 用bash代替sh)。 linux 中 sh script sh win10中 bash script sh
- linux - What does $@ mean in a shell script? - Stack Overflow
and then inside someScript sh reference: umbrella_corp_options "$@" this will be passed to umbrella_corp_options with each individual parameter enclosed in double quotes, allowing to take parameters with blank space from the caller and pass them on
- linux - What exactly is the sh command? - Super User
sh is the bourne shell There are several shells, of which bourne is the old standard, installed on all unix systems, and generally the one you can guarantee will exist The shell is the command interpreter that takes your input, provides output back to the screen, to the correct files, etc, and provides all the basic built-in commands you need
- Linux跑脚本用sh和. 有什么区别? - 知乎
回到你的问题,你是写了一个shell脚本,想问 a sh和sh a sh区别,这个要看你系统默认shell和脚本了,如果你写的是一个sh ( Bourne shell )脚本而且第一行申明了解释器为sh,那么没区别,但是如果你写的是一个bash(Bourne Again SHell) 脚本,那结果就可能有区别了,因为bash
|
|
|