Ravi Sir's Cards › AWS
./run.sh vs bash run.sh
This comparison card contrasts./run.sh and bash run.sh./run.sh Uses the shebang. bash run.sh is described as ignores the shebang. The card pairs./run.sh with normal use, and bash run.sh with quick test, debug with -x.
Read card text
What this card says
Run
./run.sh
Uses the shebang.
bash run.sh
Ignores the shebang.
Key points
Needs chmod +x.
No execute bit needed.
Example
./run.sh
Use when
Normal use.
Quick test, debug with -x.