Skip to content

Skip trailing-backslash input in the shellWords bash property - #402

Merged
ilovepixelart merged 1 commit into
mainfrom
test/shellwords-bash-version
Oct 12, 2026
Merged

ilovepixelart merged 1 commit into
mainfrom
test/shellwords-bash-version

Conversation

@ilovepixelart

Copy link
Copy Markdown
Owner

bash 3.2 (macOS /bin/bash) drops a trailing unquoted backslash where bash 5 keeps it, and the shellWords property takes whatever bash is on PATH as its oracle. With /bin/bash first on PATH it failed 5 of 5 runs, shrinking to a lone backslash. The property now skips input ending in a backslash and passes under both; the double-quote escape and empty-word mutants are still caught under each bash.

  • npm run check passes (Biome, strict tsc, Vitest)
  • Tests cover the change

bash 3.2 (macOS /bin/bash) drops a trailing unquoted backslash where bash 5 keeps it (a\ reads as a or a\), and the property takes whatever bash is on PATH as its oracle. With /bin/bash first on PATH it failed 5 of 5 runs, shrinking to a lone backslash; it now skips input ending in a backslash and passes on both. The double-quote escape and empty-word mutants are still caught under each bash.
@sonarqubecloud

Copy link
Copy Markdown

@ilovepixelart
ilovepixelart merged commit 1848faf into main Oct 12, 2026
13 checks passed
@ilovepixelart
ilovepixelart deleted the test/shellwords-bash-version branch October 12, 2026 07:20
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