Skip to content

fix zsh special character escaping - #1212

Open
darshan-Jahagirdar wants to merge 1 commit into
carapace-sh:masterfrom
darshan-Jahagirdar:codex/zsh-special-escaping
Open

darshan-Jahagirdar wants to merge 1 commit into
carapace-sh:masterfrom
darshan-Jahagirdar:codex/zsh-special-escaping

Conversation

@darshan-Jahagirdar

Copy link
Copy Markdown

Fixes #1207.

This keeps _describe's colon escaping, but stops re-escaping backslashes after zsh-special characters have already been escaped by quoteValue. Values such as Test2&Testaaa.txt and spaceT TT.x now reach the zsh _describe values array with a single escaping backslash instead of a doubled one.

Validation:

  • go test ./internal/shell/zsh
  • go test ./... was also run on Windows, but unrelated existing Windows/path and fixture expectation failures remain outside this change area (TestActionDirectories, TestActionFiles, generated shell snippet fixture executable names, TestContextAbs, pkg/uid/TestExecutable).

This branch has not been deployed

No deployments
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.

ZSH special characters escaping broken

1 participant