bug-sh-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sh-utils-2.0.tar.gz, date (GNU sh-utils) 2.0


From: Bruce M Beach
Subject: sh-utils-2.0.tar.gz, date (GNU sh-utils) 2.0
Date: Sun, 7 Jul 2002 19:07:05 +0000 (UTC)

  Hello All

 When I run a script containing

   touch -d "Dec 03 2001" which-2.28.tar.gz
   touch -d "Nov 13 2002" which-2.29.tar.gz
   touch -d "Apr 23 2002" which-2.33.tar.gz   #<------------
   touch -d "Jan 13 2002" which-2.34.tar.gz   #<------------
   touch -d "Dec 23 2002" which-2.35.tar.gz

   on a blank directory, I get

sh-2.05a# ls -l
-rw-r--r--    1 root     root    0 Nov 13  2002 which-2.29.tar.gz
-rw-r--r--    1 root     root    0 Apr 23 00:00 which-2.33.tar.gz <-----
-rw-r--r--    1 root     root    0 Jan 13 00:00 which-2.34.tar.gz <-----
-rw-r--r--    1 root     root    0 Dec 23  2002 which-2.35.tar.gz

    i.e the year is wrong. I started thinking about this from the
    gnu ftp site ftp.gnu.org where entries like

cd /gnu/autoconfig
ls
 ...         ...    ..        ...             ...
-rw-r--r--    1 0    0      526934 Aug 23  2001 automake-1.5.tar.gz
-rw-r--r--    1 0    0      467744 Apr 11 09:42 automake-1.6.1.tar.bz2 <----
 ...         ...    ..        ...             ...

    appear which just looks like inconsitent entries, but I began
    to wonder about them because of other anomalies.

sh-2.05a# date --date='Apr 09  2001' +%s
1018382460
sh-2.05a#  date --date='Apr 09  1984' +%s
1018383840

     The 1984 date is bigger than the 2001 date. If I switch
     the order to day month year I get a completely different
     number.

sh-2.05a# date --date='09 Apr 1984' +%s
450316800

  If I can be of any help let me know. Here is some information
  Linux 2.4.18
  i686
  gcc-3.0.4
  glibc-2.2.5






reply via email to

[Prev in Thread] Current Thread [Next in Thread]