Re: [RFC/PATCH] git-completion.bash: remove bashism to fix ZSH compatibility

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [RFC/PATCH] git-completion.bash: remove bashism to fix ZSH compatibility

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:56:21

Matthieu Moy [off-list ref] writes:
Junio C Hamano [off-list ref] writes:
quoted
So here is an updated based on your patch.
Perfect, thanks.
quoted
The correct thing to do in the longer term may be to stop dot-sourcing
the source meant for bash into zsh, but this patch should suffice as
a band-aid in the meantime.
I disagree with this particular part though. I think using the same code
for bash and zsh makes sense, and it implies restricting to the common
subset.
Having to restrict to the common subset means that whenever bash
adds new and useful features that this script could take advantage
of to improve the user experience, they cannot be employed until zsh
catches up (and worse yet, it is outside the control of this script
if zsh may ever catch up in the specific feature).

Re: [RFC/PATCH] git-completion.bash: remove bashism to fix ZSH compatibility

From: Manlio Perillo <hidden>
Date: 2016-06-15 22:56:21

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Il 11/03/2013 18:01, Junio C Hamano ha scritto:
[...]
Having to restrict to the common subset means that whenever bash
adds new and useful features that this script could take advantage
of to improve the user experience, they cannot be employed until zsh
catches up (and worse yet, it is outside the control of this script
if zsh may ever catch up in the specific feature).
Maybe, to avoid this problem and code duplication (the main reason bash
script is sourced, as far as I can tell), it may be useful to add
additional reusable git commands, for use in shell completion?

E.g:
	git suggest <cmd> *args

returns a line separed list of filenames affected by cmd.



Regards  Manlio
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlE+EJkACgkQscQJ24LbaURjNwCfdW73fET/n4FRGftKcSJPsK7M
nu4An1CC0dspGxLe5zqR9BdXBBDHWl/Y
=11j7
-----END PGP SIGNATURE-----
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help