autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mdate-sh


From: Andreas Buening
Subject: mdate-sh
Date: Fri, 20 Dec 2002 00:06:26 +0100

Hello!

I have a question concerning config/mdate-sh.
It contains the following code:

----------------------
# Get the extended ls output of the file or directory.
# On HPUX /bin/sh, "set" interprets "-rw-r--r--" as options, so the "x"
below.
if ls -L /dev/null 1>/dev/null 2>&1; then
  set - x`ls -L -l -d $1`
else
  set - x`ls -l -d $1`
fi
# The month is at least the fourth argument
# (3 shifts here, the next inside the loop).
shift
shift
shift
----------------------

The problem is that "ls -l" on OS/2 delivers the month in the
third column. Would it be possible to a) either remove
two of the "shift" commands or b) use "ls -n -l" (provided
that "-n" is standardized)?

Thanks.

Andreas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]