diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/misc/split-fail | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/misc/split-fail b/tests/misc/split-fail index 3927d99d7..2e3b77fb5 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 |