I mean if I just use bash to run the file like bash ./myscript.sh will it be enough or there are some pitfalls?
Asked
Active
Viewed 235 times
0
through.a.haze
- 101
./myscript.shor run it explicitly by callingbash ./myscript.sh, right? – through.a.haze Apr 16 '19 at 08:45#!/bin/bash– through.a.haze Apr 16 '19 at 08:51type bashsay. If it's the same, there will be no difference. Or if you run/bin/bash myscript.sh. – pLumo Apr 16 '19 at 08:52bashwhich executes the commands in your script, provided the commandbashin your shell starts/bin/bash. – Stefan Hamcke Apr 16 '19 at 08:52