WindmillWWindmill
Powered by
장지수장
Windmill•11mo 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,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 5d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Delay in catching docker exit code in bash script
badsequelBbadsequel / help
2y 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