WindmillWWindmill
Powered by
장지수장
Windmill•12mo ago•
3 replies
장지수

Can’t Use More Than 9 Positional Parameters in Bash Script Step?

Hi team, I really like your product and we use it very well for our infra automation

I'm running into an issue with Bash variable declarations in a script step.

When I define variables like this:

bash
복사
편집
VAR1="$1"
VAR2="$2"
...
LOG_PROCESSING_RULE="$10"
ShellCheck complains that for positional parameters over 9, I need to wrap them in braces — e.g. ${10} instead of $10. That's fine, but when I use ${10}, the value doesn't show up in the step input UI, so I can't pass any input there.

If I leave it as just $10, the script seems to receive some default or unexpected value like 2000 or 3000, unrelated to the actual inputs.

So my questions are:

Is this a bug?

Or is there a proper way to handle more than 9 positional arguments in this kind of setup?

Any guidance would be appreciated!
image.png
WindmillJoin
3,388Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

We're live here https://discord.com/channels/930051556043276338/1278977038430240813

henri-c · 6d ago

rubenf

Infrastructure as code

rubenf · 4w ago

rubenf

As we're preparing for a new Windmill sandbox SDK, we took the opportunity **to open-source NSJAIL sandboxing** and make it available in CE and easier to set. In 1.634.0, just set nsjail to benefit from the tightest security and isolation per job. It's constraining so no need to use it unless you need but now you won't be restricted in security for CE if you need to.

rubenf · 4w ago

Similar Threads

Delay in catching docker exit code in bash script
badsequelBbadsequel / help
3y ago
Getting Empty Output from Bash Script
Trevor SullivanTTrevor Sullivan / help
3y ago
Set Windmill App State From Bash Script
Trevor SullivanTTrevor Sullivan / help
3y ago
How do I consume a Resource from a Bash Script?
Trevor SullivanTTrevor Sullivan / help
3y ago