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

github.mk syntax correction / environment: line 1: i*i: command not found #6241

Open
Wang-W-e-i opened this issue May 31, 2023 · 1 comment

Comments

@Wang-W-e-i
Copy link

Wang-W-e-i commented May 31, 2023

echo "Retrying after $$(i*i) seconds..."; \

sleep $$(i*i); \

There must be very difficult to spot a typo which manifests on a rare condition only:

environment: line 1: i*i: command not found
Retrying after  seconds...
environment: line 1: i*i: command not found
sleep: missing operand
Try 'sleep --help' for more information.

Shell variable i needs to be enclosed in round double brackets, like this:

			echo "Retrying after $$((i*i)) seconds..."; \
			sleep $$((i*i)); \
@md2119
Copy link
Contributor

md2119 commented Jun 1, 2023

@Wang-W-e-i addressing this thing would be a great contribution. We will put it on our roadmap.

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