bash3boilerplate icon indicating copy to clipboard operation
bash3boilerplate copied to clipboard

Check if non-bash shell is executing script?

Open gdevenyi opened this issue 7 years ago • 1 comments

We use lots of bashisms, for good reason.

Perhaps we should check and bail out if a non-bash shell is running the script?

One way to check: https://askubuntu.com/questions/97522/how-can-my-script-determine-whether-its-being-run-by-bash-or-dash

gdevenyi avatar Jun 06 '18 13:06 gdevenyi

Yes I like it! And if people want to force it, they can just run with BASH_VERSION=force or similar

kvz avatar Jun 06 '18 13:06 kvz