movdump-keygen icon indicating copy to clipboard operation
movdump-keygen copied to clipboard

bash version fails with "value too great for base"

Open mircea-vutcovici opened this issue 5 years ago • 1 comments

Issue:

mot@boo:~$ echo "$((13333 + (`date +%H` * 7113) + (`date +%M` * 77)))"
bash: 13333 + (09: value too great for base (error token is "09")
1 mot@boo:~$

Fixed version (note the underscore in %_H and %_M:

mot@boo:~$ echo "$((13333 + (`date +%_H` * 7113) + (`date +%_M` * 77)))"
78274
mot@boo:~$

mircea-vutcovici avatar Dec 27 '19 14:12 mircea-vutcovici

I believe it only happens at hours less than 10, windows version fails at that times too btw

Cinerar avatar Aug 02 '20 06:08 Cinerar