Skip to content

Require an explicit choice for commands involving shell operators - #993

Merged
sharkdp merged 1 commit into
masterfrom
codex/explicit-shell-syntax
Oct 7, 2026
Merged

sharkdp merged 1 commit into
masterfrom
codex/explicit-shell-syntax

Conversation

@sharkdp

@sharkdp sharkdp commented Oct 7, 2026 •

Copy link
Copy Markdown
Owner

With direct execution as the default, hyperfine 'rm -rf cache/ && ./my_command' runs rm with four literal arguments, i.e. this would remove ./my_command. We now reject unquoted, standalone shell operators unless the user explicitly chooses -S / --shell=default to interpret shell syntax or -N / --shell=none to execute directly.

@sharkdp sharkdp changed the title Require an explicit shell choice for shell operators Require an explicit choice for commands involving shell operators Oct 7, 2026
@sharkdp
sharkdp marked this pull request as ready for review October 7, 2026 10:15
@sharkdp
sharkdp enabled auto-merge (rebase) October 7, 2026 10:15
@sharkdp
sharkdp merged commit 6cb7bb0 into master Oct 7, 2026
17 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.

1 participant