From 7e9247b56e27e19a38575e59cfc2e33ce1ca5811 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Tue, 19 Oct 2021 21:04:16 +0200 Subject: [PATCH] fix(bash): ignore null byte in input resolves #1083 --- src/init/omp.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init/omp.bash b/src/init/omp.bash index ae46c46c6155..e4446d45e7e2 100644 --- a/src/init/omp.bash +++ b/src/init/omp.bash @@ -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 }