-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Syntax Errors #3
Comments
For what it's worth, CentOS 5.5 (2.6.18-194) and CentOS 5.4 (2.6.18-164) don't have this issue. |
I was able to reproduce this issue (and an additional error) on CentOS 5.0 (i686).
|
Thanks guys. Yeah, these are probably due to older Bash versions are lacking some particular feature (associative arrays, and probably =~ operator). Not sure how to handle it elegantly - I'm reluctant to support ancient bash versions. In cases like this the simplest workaround would be to take
|
That's not a terrible workaround and is already reflective in the README.md. I agree you should not need to support ancient bash versions especially since you are likely running this script on an owned machine you have a shell on. I'll go ahead and close this issue as I agree with your usage of Cheers |
To avoid these kind of errors I've added bash version checking on script's startup. 4.0 is needed for associative arrays, |
Don't have time to debug, but this occurs on Kernel 2.6.18-53 with CentOS 5
The text was updated successfully, but these errors were encountered: