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

Re[2]: svn completion under Cygwin

On Tue, 16 Sep 2008 10:42:40 +0100 Peter Stephenson <pws@xxxxxxx> wrote:

PS> On Mon, 15 Sep 2008 18:33:25 +0200
PS> Vadim Zeitlin <vz-zsh@xxxxxxxxxxxx> wrote:
PS> >  My Cygwin zsh 4.3.2 doesn't complete any file names for "svn ci" (and
PS> > other svn subcommands) and the problem persists even when using the latest
PS> > completion file version from
PS> > 
PS> > http://zsh.cvs.sourceforge.net/*checkout*/zsh/zsh/Completion/Unix/Command/_subversion?revision=1.25
PS> > 
PS> > I couldn't really understand where exactly does the problem come from to be
PS> > honest but, as this works under Unix I was almost sure that it was due to
PS> > either "\r\n" line terminators or backslashes instead of slashes in the
PS> > output of Win32 svn version. It turned out to be the latter and so the
PS> > following trivial patch makes the completion work as expected:
PS> I think if you open a file the right way in Cygwin it will do this kind of
PS> substitution for you.  We had a related discussion not so long ago.

 Sorry, I couldn't find anything about it at 


and I also have no idea how to make Cygwin to translate the Windows-style
filenames to POSIX ones automatically (and to be honest would be rather
surprised if it were possible). Could you have meant using cygpath to do
the conversion instead of a simple tr? If so, this could be done, of
course, but then it would need to be only done under Cygwin and I'm not
sure what would be the best way to have a Cygwin-only part of a completion
function, are there already any examples of doing this? I only found
similar sort of a hack (but this one dealing with "\r\n" and not
backslashes) in _ant completion and it does it unconditionally, just as my


Attachment: pgpard5hHlgSF.pgp
Description: PGP signature

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