pacak / bpaf

Command line parser with applicative interface
336 stars 17 forks source link

fix(complete shell): remove quotes for zsh/bash raw, remove duplicated quotes in bash file and dir #372

Closed ozwaldorf closed 1 month ago

ozwaldorf commented 1 month ago

Summary

When debugging issue #371 , I noticed the Raw shell completion mode was pretty much unusable due to adding extra quotes around the input, causing zsh and bash to interpret the entire raw input as a single command, which would always fail due to not found. Currently it is only possible to use a single command with no args in raw mode. I also noticed an extra set of quotes are being added to file and dirs for bash, already handled by the Shell wrapper, which could be causing issues.

What's changed