Skip to content

Commit a44754f

Browse files
committed
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.
1 parent 9c1e17b commit a44754f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/bash-preexec.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ set_exit_code_and_run_precmd() {
277277
IFS=_
278278
name_with_underscores_2() { parts=(2_2); echo $parts; }
279279
precmd_functions+=(name_with_underscores_2)
280-
run '__bp_precmd_invoke_cmd'
280+
run set_exit_code_and_run_precmd
281281
[ $status -eq 0 ]
282282
[ "$output" == "2 2" ]
283283
}

0 commit comments

Comments
 (0)