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

Re: MH command completion problems



John Harres wrote:
> I tried the ^D, and you are right, it did list the subfolders correctly.
> Subsequently hitting <tab> still only inserts more /'s.

I think it must be a shell bug.  See if you get the problem with:

tstfn() { reply=("${1%/*}/foo" "${1%/*}/bar") }
compctl -K tstfn -S / -q tstfn
tstfn foo/<TAB>

This certainly gives me the double / (you can't get any more because
of the way tstfn is defined), but autolist does work for me.

-- 
Peter Stephenson <pws@xxxxxx>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77413
Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.



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