Re: [PATCH] tcsh-completion re-using git-completion.bash
- From
SZEDER Gábor <szeder@ira.uka.de>
- Date
- Nov 16, 2012, 20:40 UTC
- Message-ID
- <20121116204017.GX12052@goldbirke>
- In-Reply-To
- <CAMP44s3S4c7ciJNurxGdS2o_TDJJDkGK73dtCGji+C1NoV+Jvw@mail.gmail.com>
On Fri, Nov 16, 2012 at 09:04:06PM +0100, Felipe Contreras wrote:
Show 9 quoted lines
> > I agree, and this is why I made the proposed > > __git_complete_with_output () generic. That way it could be > > used by other shells or programs. But at this time, only tcsh > > would make use of it. > > > > If you think having __git_complete_with_output () could > > be useful for others, I think we should go with solution (A). > > If you don't think so, or if it is better to wait until a need > > arises first, then solution (C) will work fine.
I think it would be useful.
> I don't see how it could be useful to others, and if we find out that > it could, we can always move the code.
For zsh, perhaps?
As I understand the main issues with using the completion script with zsh are the various little incompatibilities between the two shells and bugs in zsh's emulation of Bash's completion-related builtins. Running the completion script under Bash and using its results in zsh would solve these issues at the root. And would allow as to remove some if [[ -n ${ZSH_VERSION-} ]] code.