Skip to content

Preserve script exit status#8

Open
jackdroido wants to merge 1 commit intolouigi600:masterfrom
jackdroido:preserve-script-exit-status
Open

Preserve script exit status#8
jackdroido wants to merge 1 commit intolouigi600:masterfrom
jackdroido:preserve-script-exit-status

Conversation

@jackdroido
Copy link
Copy Markdown

The binary generated by obash should try to preserve exit status of the script instead of blindly returning always 0

Use W* macros to check exit cause and return the corresponding exit code.

NOTE: in case of signal termination almost all shells return 128+(signum). There may be corner cases, but it should be a pretty compatible tradeoff.

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

Successfully merging this pull request may close these issues.

1 participant