mirror of
https://github.com/coreutils/coreutils.git
synced 2024-11-24 18:33:47 +08:00
Don't set _POSIX2_VERSION; no longer needed.
This commit is contained in:
parent
8b4811a61b
commit
87aed84ff4
@ -2,9 +2,6 @@ package Test;
|
||||
require 5.002;
|
||||
use strict;
|
||||
|
||||
# Tell head to accept old-style options like `-1'.
|
||||
$Test::env_default = ['_POSIX2_VERSION=199209'];
|
||||
|
||||
my @tv = (
|
||||
# test name, options, input, expected output, expected return code
|
||||
#
|
||||
|
@ -31,10 +31,10 @@ 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
|
||||
_POSIX2_VERSION=199209 split -1 in 2> /dev/null || fail=1
|
||||
split -1 in 2> /dev/null || fail=1
|
||||
|
||||
# Then make sure that -0 evokes a failure.
|
||||
_POSIX2_VERSION=199209 split -0 in 2> /dev/null && fail=1
|
||||
split -0 in 2> /dev/null && fail=1
|
||||
|
||||
# Ensure that split --lines=N and --bytes=N work for N=2^32,
|
||||
# assuming our host supports integers that wide.
|
||||
@ -51,7 +51,7 @@ fi
|
||||
#split --line-bytes=$_4gb 2> /dev/null in && fail=1
|
||||
|
||||
# Make sure that a huge obsolete option evokes the right failure.
|
||||
env -u _POSIX2_VERSION split -99999999999999999991 2> out && fail=1
|
||||
split -99999999999999999991 2> out && fail=1
|
||||
|
||||
# On losing systems (x86 Solaris 5.9 c89), we get a message like this:
|
||||
# split: line count option -9999999999... is too large
|
||||
|
@ -3,9 +3,6 @@ package Test;
|
||||
require 5.002;
|
||||
use strict;
|
||||
|
||||
# Tell pr to accept old-style options like operand-less `-S'.
|
||||
$Test::env_default = ['_POSIX2_VERSION=199209'];
|
||||
|
||||
my @tv = (
|
||||
|
||||
# -b option is no longer an official option. But it's still working to
|
||||
|
Loading…
Reference in New Issue
Block a user