]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
also check obsolete option -0
authorJim Meyering <jim@meyering.net>
Wed, 9 Apr 2003 12:21:13 +0000 (12:21 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 9 Apr 2003 12:21:13 +0000 (12:21 +0000)
tests/misc/split-fail

index 3927d99d79fb2bb30d4fe6d1cc71349033b29e77..2e3b77fb5a4447f4047137fc228fb49902579d3d 100755 (executable)
@@ -28,4 +28,10 @@ split -b 0 in 2> /dev/null && fail=1
 split -C 0 in 2> /dev/null && fail=1
 split -l 0 in 2> /dev/null && fail=1
 
+# Make sure that the obsolete -N notation still works
+env -u _POSIX2_VERSION split -1 in 2> /dev/null || fail=1
+
+# Then make sure that -0 evokes a failure.
+env -u _POSIX2_VERSION split -0 in 2> /dev/null && fail=1
+
 (exit $fail); exit $fail