ossp-pkg/shtool/sh.mdate 1.15 -> 1.16
--- sh.mdate 2005/06/15 08:14:35 1.15
+++ sh.mdate 2005/10/02 14:23:12 1.16
@@ -51,6 +51,14 @@
LC_ALL=C; export LC_ALL
LC_TIME=C; export LC_TIME
+# GNU ls changes its time format in response to the TIME_STYLE
+# variable. Since we cannot assume "unset" works, revert this
+# variable to its documented default.
+if [ ".$TIME_STYLE" != . ]; then
+ TIME_STYLE=posix-long-iso
+ export TIME_STYLE
+fi
+
# get the extended ls output of the file or directory.
if /bin/ls -L /dev/null >/dev/null 2>&1; then
set - x`/bin/ls -L -l -d $fod`
|
|