Don't set _POSIX2_VERSION; no longer needed.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 29 Apr 2005 23:49:47 +0000 (23:49 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 29 Apr 2005 23:49:47 +0000 (23:49 +0000)
tests/head/Test.pm
tests/misc/split-fail
tests/pr/Test.pm

index 370a409..1eb1677 100644 (file)
@@ -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
 #
index 462c780..79bda94 100755 (executable)
@@ -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
index fd76957..7aba45d 100644 (file)
@@ -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