diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2024-08-20 03:48:30 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-20 17:28:18 +0200 |
commit | 29bcec82a67ebeec0c3eaf865a06e52cde8c589b (patch) | |
tree | c51f31f0f10bde034331d82a3dbc976c6577a7f6 /fsmonitor--daemon.h | |
parent | git-prompt: add some missing quotes (diff) | |
download | git-29bcec82a67ebeec0c3eaf865a06e52cde8c589b.tar.xz git-29bcec82a67ebeec0c3eaf865a06e52cde8c589b.zip |
git-prompt: don't use shell $'...'
$'...' is new in POSIX (2024), and some shells support it in recent
versions, while others have had it for decades (bash, zsh, ksh93).
However, there are still enough shells which don't support it, and
it's cheap to use an alternative form which works in all shells,
so let's do that instead of dismissing it as "it's compliant".
It was agreed to use one form rather than $'...' where supported and
fallback otherwise.
shells where $'...' works:
- bash, zsh, ksh93, mksh, busybox-ash, dash master, free/net bsd sh.
shells where it doesn't work, but the new fallback works:
- all dash releases (up to 0.5.12), older versions of free/net bsd sh,
openbsd sh, pdksh, all Schily Bourne sh variants, yash.
Signed-off-by: Avi Halachmi (:avih) <avihpit@yahoo.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fsmonitor--daemon.h')
0 files changed, 0 insertions, 0 deletions