Thread (1 message) 1 message, 1 author, 2025-11-16

Re: [PATCH 0/3] git-prompt: add quiet upstream indicator option

From: Junio C Hamano <hidden>
Date: 2025-11-16 16:55:47

Kiril Ivanov [off-list ref] writes:
Junio C Hamano [off-list ref] wrote:
quoted
... (this is a reaction to seeing
some bash-isms in these patches.  No complaints here, as the test
script is all about the command line prompt feature to be used with
bash and nothing else).
Actually, this got me reconsidering.  The prompt feature claims at least
to support zsh in addition to bash, and it has had modifications to make
it more compliant:

[ref]
quoted
After this patchset, the following shells work: bash, zsh, dash (since at
least 0.5.8), free/net bsd sh, busybox-ash, mksh, openbsd sh, pdksh(!),
Schily extended Bourne sh (bosh), yash.
And the test seems to run successfully under 'sh' in master with:
-. ./lib-bash.sh
+. ./test-lib.sh
(Passes normally, and fails when the 'expected' strings are clobbered.)
Ah, good finding.  So the inclusion of lib-bash.sh there is wrong,
and we shouldn't expect that we'd always run under bash.
... Which is all to say that the bash-isms may be undesirable even here.
You're right.  Thanks for correcting me.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help