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

Re: completion in quotes - " vs ' - no suffix added



On May 8,  2:39pm, Sven Wischnowsky wrote:
} Subject: RE: completion in quotes - " vs ' - no suffix added
}
} 
} Borsenkow Andrej wrote:
} 
} > ...
} > 
} > It does not for me. It is the same ` vs " thing:
} > 
} > bor@itsrm2% zsh -c "cd ./a\\ b
} > Completing directory
} > a\\ b      c\\ d      uudecode/


} So it does for you, too.


Sven, what you're missing is that although the result is correct after
you execute the command, the completion is not correct while the command
line is being built.  That is, if the completion system is going to turn
the file name `a\ b' into the string `"a\\ b"' when it inserts it on the
line, then `compset -q' should also UNDO the backslash-doubling again
when the quote character is a double-quote, so that it's possible to
correctly complete the file path on the second and subsequent calls to
the completion system.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



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