Skip to content

fix: tokenize first word on pipe/semicolon/ampersand in full persist mode#7

Open
eddydee123 wants to merge 1 commit into
ZStud:mainfrom
eddydee123:fix/tokenize-pipe-in-persist-full
Open

fix: tokenize first word on pipe/semicolon/ampersand in full persist mode#7
eddydee123 wants to merge 1 commit into
ZStud:mainfrom
eddydee123:fix/tokenize-pipe-in-persist-full

Conversation

@eddydee123
Copy link
Copy Markdown

@eddydee123 eddydee123 commented Apr 19, 2026

env|sort (no space around pipe) was routed to the bash coprocess in full persist mode because string split -m1 ' ' treated the whole string as one token, failing the type -q check. Use a regex that stops at shell operators so the actual command name is extracted regardless of whitespace.

Let me know if you need me to create an Issue first.

Made with AI assistance (Claude)

…mode

`env|sort` (no space around pipe) was routed to the bash coprocess
because `string split -m1 ' '` treated the whole string as one token,
failing the `type -q` check. Use a regex that stops at shell operators
so the actual command name is extracted regardless of whitespace.

With help from AI
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