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

build(foreach): handle arguments robustly #78

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

benknoble
Copy link
Contributor

Fix some shellcheck warnings and, more importantly, handle the arguments more robustly by not word-splitting arguments. An invocation like

foreach F "a b" c

would have run F a; F b; F c. Make it run F "a b"; F c as expected.

Fix some shellcheck warnings and, more importantly, handle the arguments
more robustly by not word-splitting arguments. An invocation like
    foreach F "a b" c
would have run `F a; F b; F c`. Make it run `F "a b"; F c` as expected.
@benknoble
Copy link
Contributor Author

I see that @jackfirth did something similar in #63; I elected to keep the separate arg extraction for readability (I usually write local, though).

Copy link
Collaborator

@Bogdanp Bogdanp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Bogdanp Bogdanp merged commit 6647924 into racket:master Jun 3, 2024
4 checks passed
@benknoble benknoble deleted the build-script branch June 4, 2024 13:50
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

Successfully merging this pull request may close these issues.

2 participants