Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bash version fails with "value too great for base" #4

Open
mircea-vutcovici opened this issue Dec 27, 2019 · 1 comment
Open

bash version fails with "value too great for base" #4

mircea-vutcovici opened this issue Dec 27, 2019 · 1 comment

Comments

@mircea-vutcovici
Copy link

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:~$
@Cinerar
Copy link

Cinerar commented Aug 2, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants