-
-
Notifications
You must be signed in to change notification settings - Fork 96
Description
Bashly is not compatible with older Bash versions, which is totally fine. I'm wondering if it would make sense to fail with a helpful error message if $BASH_VERSION is too old? As it is now, it just causes a syntax error.
I have a lot of users on OSX, which (of course 🙄) ships with a very old version of Bash, and even if I specify in the instructions that a newer version is needed, it still catches people off guard. I'd love to have a way to have the script itself tell the user what they need to do.
I suppose an alternative would be to have a pre-command function that can run at startup for every single command, so people can autonomously implement checks like this, but it would need to run before anything is done that requires a newer Bash version.
What are your thoughts?