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

Unquoted "-" tokenization broke glob_complete



Commit f3f8537cfa05414ad14494e809d9ebfeef86ebbc [1] broke autocompletion
when a directory name contains a hyphen and glob_complete is active.

Simple repro:

    mkdir -p foo-/bar

    unsetopt glob_complete
    # This works
    echo foo-/b<TAB>

    setopt glob_complete
    # This fails
    echo foo-/b<TAB>
  
1: https://sourceforge.net/p/zsh/code/ci/f3f8537cfa05414ad14494e809d9ebfeef86ebbc/

-- 
Sam.



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