Commit e7a3f5cb authored by Muhammad Herdiansyah's avatar Muhammad Herdiansyah

trim: Remove additional space during trimming

I noticed this when I'm testing with -v enabled. Looks like the trim function replaces any spaces with a space. This fixes the problem where terminal program cannot be displayed because of an additional space in PPID variable.
parent 4d129b50
......@@ -3931,7 +3931,7 @@ trim() {
set -f
# shellcheck disable=2048,2086
set -- $*
printf '%s\n' "${*//[[:space:]]/ }"
printf '%s\n' "${*//[[:space:]]/}"
set +f
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment