Skip to content

ZSH special characters escaping broken #1207

Description

@tywtyw2002

Current Behavior

For special characters in ZSH completion desc should escaping with single /, but carapace passes it as double //.

$:/tmp/tests|
⇒  carapace --version                                                                                                  ✗ 3
carapace-bin 1.6.4
$:/tmp/tests|
⇒  carapace less zsh less ""
=(#b)(Test2&Testaaa.txt)([ ]## -- *)=0==2:=(#b)(Test2&Testaaa.txt)=0=:=(#b)(normal.c)([ ]## -- *)=0=38;5;111=2:=(#b)(normal.c)=0=38;5;111:=(#b)(spaceT TT.x)([ ]## -- *)=0==2:=(#b)(spaceT TT.x)=0=:=(#b)(test/)([ ]## -- *)=0=1;34=2:=(#b)(test/)=0=1;34:=(#b)(-- *)=0=2Test2&Testaaa.txt
normal.c
spaceT TT.x
test/Test2\\&Testaaa.txt
normal.c
spaceT\\ TT.x
test/
$:/tmp/tests|
⇒  carapace eza zsh eza ""
=(#b)(Test2&Testaaa.txt)([ ]## -- *)=0==2:=(#b)(Test2&Testaaa.txt)=0=:=(#b)(normal.c)([ ]## -- *)=0=38;5;111=2:=(#b)(normal.c)=0=38;5;111:=(#b)(spaceT TT.x)([ ]## -- *)=0==2:=(#b)(spaceT TT.x)=0=:=(#b)(test/)([ ]## -- *)=0=1;34=2:=(#b)(test/)=0=1;34:=(#b)(-- *)=0=2filesTest2&Testaaa.txt
normal.c
spaceT TT.x
test/Test2\\&Testaaa.txt
normal.c
spaceT\\ TT.x
test/
$:/tmp/tests|
⇒  ls
normal.c  'spaceT TT.x'  test  Test2&Testaaa.txt
Image Image

Expected Behavior

No response

Steps To Reproduce

No response

Version

No response

OS

  • Darwin
  • Linux
  • Termux
  • Windows

Shell

  • Bash
  • Cmd
  • Elvish
  • Fish
  • Nushell
  • Oil
  • Powershell
  • Xonsh
  • Zsh

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdarwinfundFundable with polar.shzsh

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions