mirror of
https://github.com/rcaloras/bash-preexec.git
synced 2026-11-03 14:39:43 -09:00
Fix failing test due to bats not preserving ret value
- Related to #121. Didn't notice this was failing until upgrading to bats 1.8.2 and the related IFS issue was fixed.
This commit is contained in:
parent
9c1e17b698
commit
a44754f5c3
1 changed files with 1 additions and 1 deletions
|
|
@ -277,7 +277,7 @@ set_exit_code_and_run_precmd() {
|
|||
IFS=_
|
||||
name_with_underscores_2() { parts=(2_2); echo $parts; }
|
||||
precmd_functions+=(name_with_underscores_2)
|
||||
run '__bp_precmd_invoke_cmd'
|
||||
run set_exit_code_and_run_precmd
|
||||
[ $status -eq 0 ]
|
||||
[ "$output" == "2 2" ]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue