Skip to content

Commit

Permalink
fix(bash): ignore null byte in input
Browse files Browse the repository at this point in the history
resolves #1083
  • Loading branch information
JanDeDobbeleer committed Oct 19, 2021
1 parent 84bddd4 commit 7e9247b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init/omp.bash
Expand Up @@ -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
}
Expand Down

0 comments on commit 7e9247b

Please sign in to comment.