Year is 6th field, not 7th.
authorJim Meyering <jim@meyering.net>
Sat, 20 Jan 1996 12:18:50 +0000 (12:18 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 20 Jan 1996 12:18:50 +0000 (12:18 +0000)
doc/mdate-sh

index 4d38433..4f3820e 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=$7
+  *:*) set `date`; year=$6
        case $2 in
         Jan) nummonthtod=1;;
         Feb) nummonthtod=2;;