Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
@StefanHamcke so there is no difference between making it executable and run by ./myscript.sh or run it explicitly by calling bash ./myscript.sh, right?
./myscript.sh
or run it explicitly by callingbash ./myscript.sh
, right?#!/bin/bash
type bash
say. If it's the same, there will be no difference. Or if you run/bin/bash myscript.sh
.