]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Get year as last rather than 6th field in output of date.
authorJim Meyering <jim@meyering.net>
Thu, 25 Apr 1996 04:28:22 +0000 (04:28 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 25 Apr 1996 04:28:22 +0000 (04:28 +0000)
Otherwise, people with 2-word TZ (like `MET DST') lost.

doc/mdate-sh

index 4f3820e995c0fe22a6c63d1b5a08b7e2f5bc3577..9249f163ef33efafc37e6a6dc1164aa56ae2899e 100755 (executable)
@@ -63,7 +63,7 @@ day=$2
 # Here we have to deal with the problem that the ls output gives either
 # the time of day or the year.
 case $3 in
-  *:*) set `date`; year=$6
+  *:*) set `date`; eval year=\$$#
        case $2 in
         Jan) nummonthtod=1;;
         Feb) nummonthtod=2;;