-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Il 02/02/2013 21:10, Junio C Hamano ha scritto: > Marc Khouzam <marc.khouzam@xxxxxxxxxxxx> writes: > >> Recent enhancements to git-completion.bash provide >> intelligent path completion for git commands. Such >> completions do not add the '/' at the end of directories >> for recent versions of bash. >> ... >> Here is the update for tcsh completion which is needed to handle >> the cool new path completion feature just pushed to 'next'. >> > [...] > But I have to wonder if this is sweeping a problem under the rug. > Shouldn't the completion for bash users end completed directory name > with '/', even if we didn't have to worry about tcsh? > The problem is that when using the "new" `compopt -o filenames` command, Bash assumes COMPREPLY contains a list of filenames, and when it detects a directory name, it adds a slash. The problem is, if the directory name *already* has a slash, Bash adds another slash! I don't know if this can be considered a bug or a feature. Regards Manlio -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlEOwaQACgkQscQJ24LbaUSjwgCfbgb1id5DcNG0Q75FWwgNPCqb qkUAnAmMzCahB745/BWeDJTHbJFXucxs =vf+P -----END PGP SIGNATURE----- -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html