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

bash_unit won't work with bash 3 #34

Open
pgrange opened this issue Jan 16, 2017 · 1 comment
Open

bash_unit won't work with bash 3 #34

pgrange opened this issue Jan 16, 2017 · 1 comment

Comments

@pgrange
Copy link
Owner

pgrange commented Jan 16, 2017

A user reporting:

I recently ran into some compatibility issues when trying to apply bash_unit on a system that only runs Bash 3 (on a SuSE 11 SP 4). I found the tagged revision v1.1.0 (without the Unicode stuff with \u prints, not supported before Bash 4) a good starting point. The behaviour of ‘set -e’ was changed to Bash 4, causing tests to abruptly die on Bash 3 if a subshell exited with non-zero. I added a check for Bash version before using ‘set -e', and with this change bash_unit seems to run without problems also on Bash 3.

We could at least document that bash_unit currently only have support for >= Bash 4.

@pgrange
Copy link
Owner Author

pgrange commented Jan 27, 2017

Created this docker image to have bash 3-2 beta to test against. I can reproduce the issue with it.

https://hub.docker.com/r/pgrange/docker-bash-3/

pgrange added a commit that referenced this issue Jan 27, 2017
to use another bash command than this one. For instance when testing
bash_unit against bash 3 for issue #34.
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

1 participant