Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Brace list completion errors when pre-brace word contains escaped characters



Consider the following code:

    cd /tmp
    touch foo\ bar\'baz\ test
    mkdir foo\ bar\'baz\ tset
    zsh -f
    % autoload compinit
    % compinit
    % echo foo\ bar\'baz\ t{<Tab>

This will turn last line into

    % echo foo\ bar\'baz{\ t

which is obviously not what user expects. Second `<Tab>` produces

    % echo foo\ bar\'b{az\ t

. Third

    % echo foo\ bar\{'baz\ t

. Since brace now appeared to be escaped fourth `<Tab>` does nothing.

zsh version is 5.2.



Messages sorted by: Reverse Date, Date, Thread, Author