Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if non-bash shell is executing script? #100

Open
gdevenyi opened this issue Jun 6, 2018 · 1 comment
Open

Check if non-bash shell is executing script? #100

gdevenyi opened this issue Jun 6, 2018 · 1 comment

Comments

@gdevenyi
Copy link
Contributor

gdevenyi commented Jun 6, 2018

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

@kvz
Copy link
Owner

kvz commented Jun 6, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants