-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return original value from
__bp_precmd_invoke_cmd
(#131)
* Return original value from `__bp_precmd_invoke_cmd` WIthout this change, `__bp_precmd_invoke_cmd` may not restore `$?` to its original value after being run. Since `__bp_precmd_invoke_cmd` get installed as the first thing in `PROMPT_COMMAND`, this will cause problems if there is an existing `PROMPT_COMMAND` (which is perhaps not aware of `bash-preexec`) that wants to do something with the exit status of the command that was just run. * Updating tests to allow preserving original exist status for other commands in PROMPT_COMMAND Co-authored-by: Ryan Caloras <rcaloras@alumni.cmu.edu>
- Loading branch information
Showing
2 changed files
with
18 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters