Skip to content

utils: Quote empty arguments in command displays - #2533

Merged
cgwalters merged 1 commit into
bootc-dev:mainfrom
ddy314:fix/quote-empty-command-arguments
Oct 3, 2026
Merged

cgwalters merged 1 commit into
bootc-dev:mainfrom
ddy314:fix/quote-empty-command-arguments

Conversation

@ddy314

@ddy314 ddy314 commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Empty string arguments disappear from the shell-style command display. Quote them as '' so copying a displayed command preserves its argument list. This affects display only; command execution already passes the original arguments.

Validation: cargo fmt --all -- --check, cargo test -p bootc-internal-utils --locked (21 passed), and cargo clippy -p bootc-internal-utils --all-targets --locked -- -D warnings. The empty-string regression failed before the fix; the tests check exact output and shell-token round trips.

@bootc-bot
bootc-bot Bot requested a review from jeckersb October 3, 2026 06:29
Empty arguments currently disappear from the shell-style command display. Quote them so copying the displayed command preserves its argument list.

Signed-off-by: Natsu <139412824+ddy314@users.noreply.github.com>
@ddy314
ddy314 force-pushed the fix/quote-empty-command-arguments branch from fee840b to 3d1dc62 Compare October 3, 2026 06:31
@ddy314
ddy314 marked this pull request as ready for review October 3, 2026 06:31
@cgwalters
cgwalters merged commit 66d4e4d into bootc-dev:main Oct 3, 2026
54 checks passed
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