Correct me if I'm wrong:
- "sh" script != "bash" script
- Linux script are written in Bash
- Bash script usually
#!/bin/sh
- In GNU/Linux,
/bin/sh
is Bash - In FreeBSD,
/bin/sh
is not bash, it's the truesh
So if I want to use a Linux script in FreeBSD, and I run ./script.sh
in the shell, it will run the Bash script in "sh" and not Bash, since /bin/sh
in FreeBSD is not Bash.
Is there a way I could run those Bash scripts, without modifying it? So no modification to the #!/bin/sh
statement in the script file to point somewhere else?
I would like to run Bash script trough Zsh, if possible. Don't want to install Bash, and since Zsh can run Bash scripts...
bash
script without installingbash
" is equivalent of saying "I want to run a Python script without installing Python". If it's abash
script, it should be executed using abash
interpreter.