Blame SOURCES/patch-2.7.6-fix-korn-shell-incompatibility.patch

0a6a4f
commit 074e2395f81d0ecaa66b71a6c228c70b49db72e5
0a6a4f
Author: Andreas Gruenbacher <agruen@gnu.org>
0a6a4f
Date:   Wed Feb 7 17:05:00 2018 +0100
0a6a4f
0a6a4f
    Test suite: fix Korn shell incompatibility
0a6a4f
    
0a6a4f
    tests/merge: In a Korn shell, shift apparently fails when $# is 0.
0a6a4f
0a6a4f
diff --git a/tests/merge b/tests/merge
0a6a4f
index b628891..e950b92 100644
0a6a4f
--- a/tests/merge
0a6a4f
+++ b/tests/merge
0a6a4f
@@ -32,7 +32,7 @@ x2() {
0a6a4f
 	shift
0a6a4f
     done > b.sed
0a6a4f
     echo "$body" | sed -f b.sed > b
0a6a4f
-    shift
0a6a4f
+    test $# -eq 0 || shift
0a6a4f
     while test $# -gt 0 ; do
0a6a4f
 	echo "$1"
0a6a4f
 	shift