"Avi Halachmi (:avih) via GitGitGadget" <gitgitgadget@xxxxxxxxx> writes: > From: "Avi Halachmi (:avih)" <avihpit@xxxxxxxxx> > > 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.