From: Jim Meyering Date: Thu, 25 Apr 1996 04:28:22 +0000 (+0000) Subject: Get year as last rather than 6th field in output of date. X-Git-Tag: TEXTUTILS-1_14c~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c4ecd2a955ec5b11d88ea653ce001e63f20bd26;p=thirdparty%2Fcoreutils.git Get year as last rather than 6th field in output of date. Otherwise, people with 2-word TZ (like `MET DST') lost. --- diff --git a/doc/mdate-sh b/doc/mdate-sh index 4f3820e995..9249f163ef 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;;