-
Notifications
You must be signed in to change notification settings - Fork 3
Fail due to set -e when exec_in #71
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
Comments
isn't that a good thing? writing scripts without set -e is very dangerous (think of "cd non-existing-dir ; rm *") if something should be allowed to fail, why not use: |
IMO, it should be the responsibility of the user to add set -e in its script if he want to. Kameleon users should have the choice to use it or not (and set -e is not a default behaviour). |
I also think that |
I mean we use to have this behavior before and we changes because the silently failing instructions are really hard to catch, and the breakpoint that is triggered by it are really useful. |
@lnussbaum Some few commands return non-zero value even if all is OK. For example, puppet do that, if some files have changed during the puppet apply, the return code is 2. Like @jgaida, I think it's the responsability of the user to put -e. But if it's really the behaviour expected, this should be documented here : http://kameleon.imag.fr/commands.html?highlight=exec |
Upon verification, I already removed the Indeed, (As far as I'm concerned, I always use it for simple scripts that don't handle errors) I didn't encounter any bug with the git version, so I'll release a new version tonight (hopefully) :) |
So can it be closed ? |
Yep :) |
Step to reproduce :
exec_in: |
true
true
false
true
The last true isn't executed due to "set -e" added by kameleon to the script.
The text was updated successfully, but these errors were encountered: