From: Jim Meyering Date: Wed, 9 Apr 2003 12:21:13 +0000 (+0000) Subject: also check obsolete option -0 X-Git-Tag: v5.0.1~784 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=60334e21a886c164217f66e48c3df23057e0dc42;p=thirdparty%2Fcoreutils.git also check obsolete option -0 --- diff --git a/tests/misc/split-fail b/tests/misc/split-fail index 3927d99d79..2e3b77fb5a 100755 --- a/tests/misc/split-fail +++ b/tests/misc/split-fail @@ -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