From c2924d79b96d2e0e83c6de897ecbd170e1c31547 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 26 Sep 2019 21:04:18 +0300 Subject: [PATCH] more comments " --- pfetch | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pfetch b/pfetch index 3753592..50eba38 100755 --- a/pfetch +++ b/pfetch @@ -535,6 +535,13 @@ get_ascii() { PF_COL1=${PF_COL1:-${1:-7}} PF_COL3=${PF_COL3:-$((${1:-7}%8+1))} + # POSIX sh has no 'var+=' so 'var=${var}append' is used. What's + # interesting is that 'var+=' _is_ supported inside '$(())' + # (arithmetic) though there's no support for 'var++/var--'. + # + # There is also no $'\n' to add a "literal"(?) newline to the + # string. The simplest workaround being to break the line inside + # the string (though this has the caveat of breaking indentation). while IFS= read -r line; do ascii="$ascii$line "