fix(bash): ignore null byte in input

resolves #1083
This commit is contained in:
Jan De Dobbeleer 2021-10-19 21:04:16 +02:00 committed by Jan De Dobbeleer
parent 84bddd4b99
commit 7e9247b56e

View file

@ -22,7 +22,7 @@ function _omp_hook() {
omp_elapsed=$((omp_now-omp_start_time))
rm -f "$TIMER_START"
fi
PS1="$(::OMP:: --config="$POSH_THEME" --shell=bash --error="$ret" --execution-time="$omp_elapsed" --stack-count="$omp_stack_count")"
PS1="$(::OMP:: --config="$POSH_THEME" --shell=bash --error="$ret" --execution-time="$omp_elapsed" --stack-count="$omp_stack_count" | tr -d '\0')"
return $ret
}