]> git.plutz.net Git - shellwiki/commitdiff
fix in number parsing (faulty octal interpretation)
authorPaul Hänsch <paul@plutz.net>
Tue, 27 Aug 2024 13:27:33 +0000 (15:27 +0200)
committerPaul Hänsch <paul@plutz.net>
Tue, 27 Aug 2024 13:27:33 +0000 (15:27 +0200)
macros/calendar

index 66dcf1f5664fffc0cd629bf09542ab5248e7a89f..93728166fbf7a6e42b1ad46208a841aa6c6caded 100755 (executable)
@@ -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;;