2005-06-28 Stepan Kasal * lib/mdate-sh: Avoid infinite loop with GNU ls when TIME_STYLE is set. Diagnosis by Vincent Lefevre, reported by James Youngman. Index: lib/mdate-sh =================================================================== RCS file: /cvs/automake/automake/lib/mdate-sh,v retrieving revision 1.17 diff -u -r1.17 mdate-sh --- lib/mdate-sh 14 May 2005 20:28:50 -0000 1.17 +++ lib/mdate-sh 28 Jun 2005 12:16:12 -0000 @@ -59,6 +59,12 @@ LC_TIME=C export LC_TIME +# GNU ls changes its time format in response to the TIME_STYLE variable, but +# we cannot unset it since the V7 shell did not have an "unset" command. +# The documentation says that the default is "posix-long-iso". +# +test "${TIME_STYLE+set}" = set && TIME_STYLE=posix-long-iso + save_arg1="$1" # Find out how to get the extended ls output of a file or directory.