Up to [cvs.NetBSD.org] / pkgsrc / shells / bash-preexec
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
bash-preexec: update to 0.7.0. Changes:
- Use bats-core/bats-action to set up Bats
- Mention Ghostty
- Test against Bash 3.2, 4.4, 5.0, and 5.3 in CI
- Use a function substitution in $PS0 for preexec in Bash >= 5.3
- Re-adjust PROMPT_COMMAND when PROMPT_COMMAND is modified elsewhere
- fix: Allow __bp_precmd_invoke_cmd to be called from __bp_install
- fix: Properly check to see if we're already installed in PROMPT_COMMAND
- fix preexec for the first command
- Preserve $? and $_ on __bp_precmd_invoke_cmd early returns
- Remove the local declarations of {preexec,precmd}_functions
## What's Changed * Use POSIX syntax for Bash detection * Fix typo in README: our -> your * Update to remove shellcheck warnings * Check Bash version 3.1+ * Addtional fixes for `shellcheck` * Try to better handle external modification to `$PROMPT_COMMAND` * Support the array PROMPT_COMMAND (bash >= 5.1) * Fix the test for the Bash version for shellcheck * Don't load if old version already present * Fix false-negative test case for __bp_install * Exclude the `bind -x` commands from interactive commands * Fix indentation and remove trailing semicolons * Improve prior_trap processing * Remove dependency on sed(1) for history processing
Add bash-preexec: Preexec and precmd hook functions a la zsh preexec and precmd hook functions for Bash in the style of Zsh. They aim to emulate the behavior as described for Zsh.