From e7a3f5cba29419ed2b678b5ab0e9824b8de80085 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Sat, 25 Aug 2018 18:44:41 +0700 Subject: [PATCH] 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. --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 94c612aa..449c84a3 100755 --- a/neofetch +++ b/neofetch @@ -3931,7 +3931,7 @@ trim() { set -f # shellcheck disable=2048,2086 set -- $* - printf '%s\n' "${*//[[:space:]]/ }" + printf '%s\n' "${*//[[:space:]]/}" set +f }