Skip to content

docs: close quote in plugin-selection example - #1012

Open
i1rr wants to merge 1 commit into
Yelp:masterfrom
i1rr:docs-close-plugin-example-quote
Open

i1rr wants to merge 1 commit into
Yelp:masterfrom
i1rr:docs-close-plugin-example-quote

Conversation

@i1rr

@i1rr i1rr commented Nov 7, 2026

Copy link
Copy Markdown

The plugin guide's sed command has an unclosed double quote, so the complete
pipeline fails to parse. Add the closing quote to match the existing README
example. Only docs/plugins.md changes.

From the upstream repository root, this reproduction checks the guide with both
shells without executing the pipeline or running a scanner:

python3 - <<'PY'
from pathlib import Path
import subprocess

text = Path('docs/plugins.md').read_text()
start = text.index('$ detect-secrets scan --list-all-plugins |')
example = text[start + 2:text.index('```', start)]
for shell in ('/bin/bash', '/bin/dash'):
    result = subprocess.run([shell, '-n'], input=example,
                            text=True, capture_output=True)
    print(shell, result.returncode)
PY

Before: both exit 2 (unclosed quote). After: both exit 0.

Also checked with a harmless command double: all 6 checks passed on Bash 5.2.21
and Dash 0.5.12, including exact list/scan arguments and failure behavior. The
patch applied/reversed with zero fuzz against complete docs/plugins.md at
5e141933554a0b74e7341841f318be21e895339c, rechecked November 7.
Application pytest/tox and a docs build were not run. CI is not yet checked.
Existing pipeline error handling and substring matching are unchanged.

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