Re: Infinite loop in mdate-sh

2005-06-29 Thread Alexandre Duret-Lutz
+# 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

Re: Infinite loop in mdate-sh

2005-06-28 Thread Stepan Kasal
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

Re: Infinite loop in mdate-sh

2005-06-08 Thread Alexandre Duret-Lutz
>>> "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

Re: Infinite loop in mdate-sh

2005-06-08 Thread James Youngman
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.

Re: Infinite loop in mdate-sh

2005-06-08 Thread Vincent Lefevre
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'

Re: Infinite loop in mdate-sh

2005-06-07 Thread James Youngman
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

Re: Infinite loop in mdate-sh

2005-06-07 Thread Vincent Lefevre
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

Re: Infinite loop in mdate-sh

2005-06-07 Thread James Youngman
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

Infinite loop in mdate-sh

2005-06-07 Thread Vincent Lefevre
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