Skip to content

Commit 7e9247b

Browse files
fix(bash): ignore null byte in input
resolves #1083
1 parent 84bddd4 commit 7e9247b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/init/omp.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function _omp_hook() {
2222
omp_elapsed=$((omp_now-omp_start_time))
2323
rm -f "$TIMER_START"
2424
fi
25-
PS1="$(::OMP:: --config="$POSH_THEME" --shell=bash --error="$ret" --execution-time="$omp_elapsed" --stack-count="$omp_stack_count")"
25+
PS1="$(::OMP:: --config="$POSH_THEME" --shell=bash --error="$ret" --execution-time="$omp_elapsed" --stack-count="$omp_stack_count" | tr -d '\0')"
2626

2727
return $ret
2828
}

0 commit comments

Comments
 (0)