Re: [PATCH] Handle path completion and colon for tcsh script

2013-02-03 Thread Junio C Hamano
Thanks for a detailed explanation. The two examples illustrating different interpretation of the same word were really good. Will replace and requeue. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at ht

RE: [PATCH] Handle path completion and colon for tcsh script

2013-02-03 Thread Marc Khouzam
> > The problem is, if the directory name *already* has a slash, Bash adds > > another slash! > > So bash users do see the trailing slash because bash adds one to > what we compute and return, which we do strip the trailing slash > exactly because we know bash will add one. The problem is sligh

Re: [PATCH] Handle path completion and colon for tcsh script

2013-02-03 Thread Junio C Hamano
Manlio Perillo writes: > 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 sl

Re: [PATCH] Handle path completion and colon for tcsh script

2013-02-03 Thread Manlio Perillo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 02/02/2013 21:10, Junio C Hamano ha scritto: > Marc Khouzam 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 r

Re: [PATCH] Handle path completion and colon for tcsh script

2013-02-02 Thread Junio C Hamano
Marc Khouzam 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

[PATCH] Handle path completion and colon for tcsh script

2013-02-02 Thread Marc Khouzam
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. However, the '/' is needed by tcsh, so we must tell the bash script to append it by using a compatibility met