summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-04-25 04:28:22 +0000
committerJim Meyering <jim@meyering.net>1996-04-25 04:28:22 +0000
commit1c4ecd2a955ec5b11d88ea653ce001e63f20bd26 (patch)
treed2164b79f2a9f6637c3e2613925a3ea3d2cf4d3a /doc
parent56d10407e78278bc36a142694d0dfda5e63bb4e8 (diff)
downloadcoreutils-1c4ecd2a955ec5b11d88ea653ce001e63f20bd26.tar.xz
Get year as last rather than 6th field in output of date.
Otherwise, people with 2-word TZ (like `MET DST') lost.
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/mdate-sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/mdate-sh b/doc/mdate-sh
index 4f3820e99..9249f163e 100755
--- a/doc/mdate-sh
+++ b/doc/mdate-sh
@@ -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;;