+# This setting, when honored by GNU ls, used to cause an infinite loop
+# in mdate-sh.
+TIME_STYLE="+%Y-%m-%d %H:%M:%S"
+export TIME_STYLE
+
echo AC_OUTPUT >> configure.in
cat > Makefile.am << 'END'
--
Alexandre Duret-Lutz
Hello,
replying to an older thread:
On Wed, Jun 08, 2005 at 10:50:07PM +0100, James Youngman wrote:
> if unset TIME_STYLE 2>/dev/null ...
> else
> TIME_STYLE=posix-"$TIME_STYLE"
I think this is too complicated.
The documentation says the default is posix-long-iso, and
>>> "James" == James Youngman <[EMAIL PROTECTED]> writes:
James> +# GNU ls unserstands $TIME_STYLE. Leaving it set at "+%Y-%m-%d
%H:%M:%S" for
James> +# example will cause this script to go into an infinite loop.
James> +unset TIME_STYLE
unset is not portable.
Can we override TIME_STYLE w
On Wed, Jun 08, 2005 at 08:41:21PM +0200, Alexandre Duret-Lutz wrote:
> >>> "James" == James Youngman <[EMAIL PROTECTED]> writes:
>
> James> +# GNU ls unserstands $TIME_STYLE. Leaving it set at "+%Y-%m-%d
> %H:%M:%S" for
> James> +# example will cause this script to go into an infinite loop.
On 2005-06-08 20:41:21 +0200, Alexandre Duret-Lutz wrote:
> unset is not portable.
> Can we override TIME_STYLE with some safe value? Which one?
> What happens when this is set to the empty string?
An empty string is incorrect:
ay:~> TIME_STYLE= ls -l
ls: ambiguous argument `' for `time style'
On Tue, Jun 07, 2005 at 09:57:26PM +0200, Vincent Lefevre wrote:
> I now remember that I also have TIME_STYLE="+%Y-%m-%d %H:%M:%S",
> which is used by ls (from the coreutils).
Some values of TIME_STYLE can cause an infinite loop in mdate-sh if
"ls" is from GNU coreutil
On 2005-06-07 13:49:40 +0100, James Youngman wrote:
> I can't explain that. The mdate-sh command contains no loops (at
> least at the Bource shell source level).
Yes, there is the "until" loop (really strange!).
> Can you reproduce the problem? Can you preproduce it wile using thr
> "-x" option
On Tue, Jun 07, 2005 at 01:32:57PM +0200, Vincent Lefevre wrote:
> make[2]: Entering directory `/home/vlefevre/software/findutils/doc'
>
> ps says in particular:
>
> vlefevre 21409 21408 99 13:30 pts/10 00:00:46 /bin/sh ./mdate-sh ./find.texi
>
> This process takes 100% CPU time.
I can't expl
I tried to compile the findutils from the CVS tree (checked out a few
minutes ago). But make stalls here:
[...]
Making all in doc
make[2]: Entering directory `/home/vlefevre/software/findutils/doc'
ps says in particular:
vlefevre 21409 21408 99 13:30 pts/10 00:00:46 /bin/sh ./mdate-sh ./find.t