The attached patch (against devscripts master) fixes this bug:
the 'command' option check no longer treats a bare "--" as an
option token. Only the exact end-of-options marker is exempted;
bad options still fire, before or after it (e.g.
"command -p -a test", "command -a -- foo").

Two regression lines are added to test/bashisms/command.sh:
"command -v -- test" and "command -- test" now stay silent.
Verified: the full test/test_checkbashisms suite passes with the
patch; the added lines fail without it.

Disclosure, encouraged by Debian GR 2026-002: this patch was
prepared with AI assistance; it was verified by me against the
reproducers and the devscripts test suite.

Attachment: fp5-command-dashdash.patch
Description: Binary data

Reply via email to