Re: Infinite loop in mdate-sh

2005-06-30 Thread Stepan Kasal
Hello, On Thu, Jun 30, 2005 at 03:09:12PM +0200, Alexandre Duret-Lutz wrote: > Stepan> I see no reason for the `export' here. ... > Alas, many shells, such as Solaris 2.5, IRIX 6.3, IRIX 5.2, AIX > 4.1.5, and Digital UNIX 4.0, forget to `export' the environment > variables they r

Re: Infinite loop in mdate-sh

2005-06-30 Thread Alexandre Duret-Lutz
>>> "Stepan" == Stepan Kasal <[EMAIL PROTECTED]> writes: Stepan> Two tiny comments: >> +Vincent LefevreVincent Lefevre <[EMAIL PROTECTED]> Oops, thanks! Stepan> It seems this is the first time when you repeat the full name in the email. >> +if test "${TIME_STYLE+set}" = set; t

Re: Infinite loop in mdate-sh

2005-06-30 Thread Stepan Kasal
Hello, On Wed, Jun 29, 2005 at 10:29:11PM +0200, Alexandre Duret-Lutz wrote: > I'm installing the following on HEAD and branch-1-9. thank you. > (I think any justification of why unset must not be used really > belongs to the Autoconf manual.) Yes, of course. I sent a question to the autoconf

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 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-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-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