autoconf-patches
[Top][All Lists]
Advanced

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

Re: make check hangs on test 93 under Sun Solaris 9


From: Ralf Menzel
Subject: Re: make check hangs on test 93 under Sun Solaris 9
Date: Wed, 07 Feb 2007 15:10:27 +0100
User-agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.19 (usg-unix-v)

Hi,

Ralf Wildenhues <address@hidden> writes:
> Thanks for the report and patch.  I applied it; due to the ^M, your
> message contained a mangled patch, but I assume that all you added was
>   </dev/null

Yes, that right. I was concerned that the patch might get mangled and
considered sending it as an attachment. But then I thought that my
mail client would appropriately quote the carriage return. Looks I was
wrong there.

> Hmm, apparently I overlooked at the time that this is documented in the
> gawk manual (Using BEGIN/END):
>
> | If an `awk' program has only a `BEGIN' rule and no other rules, then
> | the program exits after the `BEGIN' rule is run.(1)
> [...]
> | (1) The original version of `awk' used to keep reading and ignoring
> | input until the end of the file was seen.

Ah, good. I would have liked to send a similar reference with my bug
report but couldn't find anything good. Only examples of use like in
lineĀ 349 of lib/autoconf/status.m4 or in the Section "Limitations of
Usual Tools" of the autoconf manual (but there for an awk program that
consists of only an END rule).

Do you think it would be a good idea to add something like the
following to the autoconf manual:

--- snip -- 
Newer versions of Awk, e.g., @acronym{GNU} Awk, don't read their input
when they execute a program that solely consists of @code{BEGIN} rules
(that contain no @code{getline} function). In contrast, older versions
of Awk do read their input until they encounter end of file. To cater
for old and new versions, you should redirect @file{/dev/null} to
standard input for such programs like in the following example:

@example
$ @kbd{awk 'BEGIN @{ print 1 @}' </dev/null}
@end example
--- snip ---

Bye,
Ralf Menzel




reply via email to

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