Subject: Re: [PATCH 5/8] git-prompt: add some missing quotes

From: Junio C Hamano <[email-masked]>
Date: Tue, 23 Jul 2024 12:40:27 -0700

"Avi Halachmi (:avih) via GitGitGadget" <[email-masked]>
writes:

> From: "Avi Halachmi (:avih)" <[email-masked]>
>
> The issues which this commit fixes are unlikely to be broken
> in real life, but the fixes improve correctness, and would prevent
> bugs in some uncommon cases, such as weird IFS values.
>
> Listing some portability guideline here for future reference.
>
> I'm leaving it to someone else to decide whether to include
> it in the file itself, place is as a new file, or not.

Check Documentation/CodingGuidelines; I think we have something to
say about local var="val" construct to help dash.

We allowed liberal uses of bash-ism in this file, as it was
initially written for bash anyway.  If we were rewriting the prompt
scripts to be usable by other shells, great.  But then we'd want to
make sure it adheres to existing coding guidelines we have.