Skip to content

Add warning run multiple arguments#252

Merged
florentsfl merged 1 commit into
masterfrom
fallard/add-warning-run-multiple-arguments
Apr 23, 2026
Merged

Add warning run multiple arguments#252
florentsfl merged 1 commit into
masterfrom
fallard/add-warning-run-multiple-arguments

Conversation

@florentsfl

Copy link
Copy Markdown
Contributor

The command 'run' is ambiguous.

This adds a warning if the command is run with multiple arguments telling to use either 'exec' or 'shell', depending if the arguments is simple command or a list of commands.

See 344969c.

@florentsfl
florentsfl force-pushed the fallard/add-warning-run-multiple-arguments branch from 6bd1988 to b300ba4 Compare January 20, 2026 21:37
@florentsfl

Copy link
Copy Markdown
Contributor Author

maybe show the error message only if there is an argument containing a whitespace -> this is the tricky part

@florentsfl
florentsfl force-pushed the fallard/add-warning-run-multiple-arguments branch 3 times, most recently from 4d681ee to 1c18a05 Compare April 13, 2026 20:28
Comment thread tests/05-cqfd_run_command.bats Outdated
@florentsfl
florentsfl force-pushed the fallard/add-warning-run-multiple-arguments branch 2 times, most recently from 791c56f to 7aaebed Compare April 14, 2026 14:33
@florentsfl
florentsfl requested a review from deribaucourt April 20, 2026 20:28
The command 'run' is ambiguous.

This adds a warning if the command is run with multiple arguments
telling to use either 'exec' or 'shell'.

The warning is only printed when there is an argument containing a
whitespace, which is the tricky case.

See 344969c.
@florentsfl
florentsfl force-pushed the fallard/add-warning-run-multiple-arguments branch from 7aaebed to d207c0f Compare April 23, 2026 13:56
@florentsfl
florentsfl merged commit 2e11414 into master Apr 23, 2026
2 checks passed
@florentsfl
florentsfl deleted the fallard/add-warning-run-multiple-arguments branch April 23, 2026 13:59
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.

3 participants