From: Paul Hänsch Date: Fri, 6 Sep 2024 11:14:23 +0000 (+0200) Subject: bugfix, portability: initialize variable ws when declaring local (dash keeps global... X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=c8483d5cc850f6c76cf173aaa70248624dbe1daf;p=shellwiki bugfix, portability: initialize variable ws when declaring local (dash keeps global value, but other shells don't) --- diff --git a/macros/calendar b/macros/calendar index 9372816..e680cf0 100755 --- a/macros/calendar +++ b/macros/calendar @@ -263,7 +263,7 @@ cal_list() { } cal_month() { - local ws events calmonth + local ws="$ws" events calmonth local iday idow mname dcnt dow dcal start end title link n calmonth="$(GET calmonth || printf %i "$((DY * 12 + DM))")"