carapace-sh/carapace

`Action.Split()` does not work on second level

Opened this issue · 0 comments

Current Behavior

Trying to complete -ldflags whithin -shell which is also a Split() fails.

cargo-watch --shell 'go build -ldflags -<TAB>
# cargo-watch --shell 'go build -ldflags -w '

Expected Behavior

-ldflags argument should be quoted.

Steps To Reproduce

No response

Version

No response

OS

  • Linux
  • OSX
  • Windows

Shell

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

Anything else?

No response