1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 03:12:48 +02:00

"touch 0101000000" now operates as POSIX 1002.1-2001 requires.

This commit is contained in:
Paul Eggert
2005-11-01 23:43:38 +00:00
parent 473a0d6209
commit 4b15886f93
3 changed files with 14 additions and 1 deletions

View File

@@ -1,13 +1,18 @@
2005-11-01 Paul Eggert <eggert@cs.ucla.edu>
* NEWS:
* Version 6.0-cvs.
* NEWS: tail -c 2 FILE now operates as POSIX 1002.1-2001 requires.
* NEWS: "tail -c 2 FILE" and "touch 0101000000" now operate as
POSIX 1002.1-2001 requires.
* src/tail.c (parse_obsolete_option): Implement this.
Problem reported by Vincent Lefevre.
* src/touch.c (main): Pass PDS_PRE_2000 to posixtime.
* tests/tail/Test.pm (c-2, c-2-minus, c2, c2-minus): New tests.
(test_vector): Add special cases for _POSIX2_VERSION, and
regularize the old ones a bit.
* tests/touch/obsolescent: Add y2000 test.
2005-10-31 Paul Eggert <eggert@cs.ucla.edu>

View File

@@ -2,6 +2,7 @@
* coreutils.texi (tail invocation): Describe obsolete usages
like "tail -2" more precisely.
(touch invocation): The old usage works only for 1969-1999 now.
2005-08-28 David Madore <david.madore@ens.fr>

View File

@@ -1,3 +1,10 @@
2005-11-01 Paul Eggert <eggert@cs.ucla.edu>
* posixtm.h (PDS_PRE_2000): New macro.
* posixtm.c (year): Arg is now syntax_bits rather than allow_century.
All usages changed. Reject dates outside the range 1969-1999 if
PDS_PRE_2000 is used.
2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
Fix porting problems reported by Theodoros V. Kalamatianos.