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

sourcing library causes breakage in libui_sh_init if bash has set -e #2

Open
Dieterbe opened this issue Mar 17, 2011 · 0 comments
Open

Comments

@Dieterbe
Copy link
Owner

if you do something like:

#!/bin/bash -e
source libui.sh
echo $? # > 0

in libui_sh_init(), the shift 3 needs an || true and the end of the function needs a return 0 to be explicit.

we probably need all code to be made compatible with set -e shells, even though that would make the code a bit more convoluted.

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