diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2024-08-20 03:48:25 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-20 17:28:17 +0200 |
commit | f037e607a875790dcadbba3f7a8fc185e2877792 (patch) | |
tree | df262c881731d29049e07c0ea8900d70ec4c79da /commit-slab.h | |
parent | Git 2.46 (diff) | |
download | git-f037e607a875790dcadbba3f7a8fc185e2877792.tar.xz git-f037e607a875790dcadbba3f7a8fc185e2877792.zip |
git-prompt: use here-doc instead of here-string
Here-documend is standard, and works in all shells.
Both here-string and here-doc add final newline, which is important
in this case, because $output is without final newline, but we do
want "read" to succeed on the last line as well.
Shells which support here-string:
- bash, zsh, mksh, ksh93, yash (non-posix-mode).
shells which don't, and got fixed:
- ash-derivatives (dash, free/net bsd sh, busybox-ash).
- pdksh, openbsd sh.
- All Schily Bourne shell variants.
Signed-off-by: Avi Halachmi (:avih) <avihpit@yahoo.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-slab.h')
0 files changed, 0 insertions, 0 deletions