From: Paul Hänsch Date: Tue, 27 Aug 2024 13:27:33 +0000 (+0200) Subject: fix in number parsing (faulty octal interpretation) X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=9f7e2b0a6f7b7dd79dfd29e19a27649cd1600721;p=shellwiki fix in number parsing (faulty octal interpretation) --- diff --git a/macros/calendar b/macros/calendar index 66dcf1f..9372816 100755 --- a/macros/calendar +++ b/macros/calendar @@ -52,6 +52,7 @@ read DY DM DD <<-EOF || date -u +"%Y %m %d" ) EOF +DM=${DM#0}; DD="${DD#0}"; DY="${DY#0}" case $ws in 0|[sS]*) ws=0;;