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:
Ryan Caloras 2022-11-16 12:01:49 -05:00
parent 9c1e17b698
commit a44754f5c3

View file

@ -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" ]
}