diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-06-28 15:53:08 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-06-28 15:53:09 -0700 |
| commit | 079323dc6d53a2d202393606d03328094eeb41f1 (patch) | |
| tree | 7303449f719c829ea4297f218ad77a61bd3b9367 /t | |
| parent | 1b1b4d490df72cf3e36ace38d561b25843f7ed76 (diff) | |
| parent | fedd5c79ff855a4e3859e5c3fa5784942185436b (diff) | |
| download | git-079323dc6d53a2d202393606d03328094eeb41f1.tar.gz | |
Merge branch 'bc/zsh-compatibility' into maint-2.45
zsh can pretend to be a normal shell pretty well except for some
glitches that we tickle in some of our scripts. Work them around
so that "vimdiff" and our test suite works well enough with it.
* bc/zsh-compatibility:
vimdiff: make script and tests work with zsh
t4046: avoid continue in &&-chain for zsh
Diffstat (limited to 't')
| -rwxr-xr-x | t/t4046-diff-unmerged.sh | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/t/t4046-diff-unmerged.sh b/t/t4046-diff-unmerged.sh index ffaf69335f..fb8c51746e 100755 --- a/t/t4046-diff-unmerged.sh +++ b/t/t4046-diff-unmerged.sh @@ -20,13 +20,15 @@ test_expect_success setup ' for t in o x do path="$b$o$t" && - case "$path" in ooo) continue ;; esac && - paths="$paths$path " && - p=" $path" && - case "$b" in x) echo "$m1$p" ;; esac && - case "$o" in x) echo "$m2$p" ;; esac && - case "$t" in x) echo "$m3$p" ;; esac || - return 1 + if test "$path" != ooo + then + paths="$paths$path " && + p=" $path" && + case "$b" in x) echo "$m1$p" ;; esac && + case "$o" in x) echo "$m2$p" ;; esac && + case "$t" in x) echo "$m3$p" ;; esac || + return 1 + fi done done done >ls-files-s.expect && |
