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

Allow %x and %? to be used in errorcmd. #135

Merged
merged 1 commit into from
Mar 28, 2024
Merged

Conversation

ltratt
Copy link
Member

@ltratt ltratt commented Mar 27, 2024

When cmd fails, the only clue as to why can be its exit code. Previously, snare had no way of transmitting this information to the user: this commit allows using %x and %? (the latter borrowing the similarly named variable from the shell) to in errorcmd to access this information.

When `cmd` fails, the only clue as to why can be its exit code.
Previously, snare had no way of transmitting this information to the
user: this commit allows using `%x` and `%?` (the latter borrowing the
similarly named variable from the shell) to in `errorcmd` to access this
information.
@vext01 vext01 added this pull request to the merge queue Mar 28, 2024
Merged via the queue into softdevteam:master with commit dd4996d Mar 28, 2024
2 checks passed
@ltratt ltratt deleted the exit_code branch April 2, 2024 10:59
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.

2 participants