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.sh
or 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 bash
say. If it's the same, there will be no difference. Or if you run/bin/bash myscript.sh
. – pLumo Apr 16 '19 at 08:52bash
which executes the commands in your script, provided the commandbash
in your shell starts/bin/bash
. – Stefan Hamcke Apr 16 '19 at 08:52