summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-12-17 05:23:44 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-12-17 05:23:44 +0000
commit9528eb9e73de29c210f9ccfeda0a8b93dd06e9e5 (patch)
tree5b59efdb2ac4fd2fb0da483f5749123abfda7cf6
parentc12d53f5cb7bfd1377293c3f9a1dac3d9f4b2567 (diff)
downloadcoreutils-9528eb9e73de29c210f9ccfeda0a8b93dd06e9e5.tar.xz
Sync mdate-sh from gnulib.
-rw-r--r--config/ChangeLog4
-rwxr-xr-xconfig/mdate-sh8
2 files changed, 8 insertions, 4 deletions
diff --git a/config/ChangeLog b/config/ChangeLog
index 211d9071b..00d82c340 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,7 @@
+2004-12-16 Paul Eggert <eggert@cs.ucla.edu>
+
+ * mdate-sh: Sync from gnulib.
+
2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
* config.sub, texinfo.tex: Sync from gnulib.
diff --git a/config/mdate-sh b/config/mdate-sh
index 05e828b08..881782eb5 100755
--- a/config/mdate-sh
+++ b/config/mdate-sh
@@ -1,9 +1,9 @@
#!/bin/sh
# Get modification time of a file or directory and pretty-print it.
-scriptversion=2003-11-09.00
+scriptversion=2004-12-08.12
-# Copyright (C) 1995, 1996, 1997, 2003 Free Software Foundation, Inc.
+# Copyright (C) 1995, 1996, 1997, 2003, 2004 Free Software Foundation, Inc.
# written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995
#
# This program is free software; you can redistribute it and/or modify
@@ -80,7 +80,7 @@ fi
# words should be skipped to get the date.
# On HPUX /bin/sh, "set" interprets "-rw-r--r--" as options, so the "x" below.
-set - x`$ls_command /`
+set x`ls -l -d /`
# Find which argument is the month.
month=
@@ -107,7 +107,7 @@ do
done
# Get the extended ls output of the file or directory.
-set - x`eval "$ls_command \"\$save_arg1\""`
+set x`eval "$ls_command \"\$save_arg1\""`
# Remove all preceding arguments
eval $command