[Top][All Lists]

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

Re: Broken makefile given Autoconf version mismatch

From: Paul Eggert
Subject: Re: Broken makefile given Autoconf version mismatch
Date: Fri, 14 Apr 2006 11:33:11 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Stepan Kasal <address@hidden> writes:

> --- lib/Automake/ 2006-04-14 09:25:00.000000000 +0200
> +++ lib/Automake/ 2006-04-14 09:45:44.000000000 +0200
> @@ -73,6 +73,9 @@
>    $optional = 1
>      if $file_name =~ s/\?$//;
> +  return "-"
> +    if $file_name eq "-";
> +
>    return File::Spec->canonpath ($file_name)
>      if -e $file_name;

I favor this change: it is simple, it restores old functionality,
and it supports useful behavior.

By the way, this general topic has been discussed recently by the Open
Group.  The question was whether standard commands like "od -" are
required to read a file named "-", or whether they are allowed to read
stdin instead.  The consensus was that POSIX does not specify the
behavior here, and that an implementation of "od -" is allowed to
either read a file named "-", or to read standard input.  While this
conclusion doesn't directly affect Automake (which isn't standardized
yet :) it does suggest that "-" should either refer to standard input,
or to a file named "-".  Personally I think the former is more
consistent, as it is the GNU style (used in coreutils).

For more about the Open Group discussion, please see
<> and
<> (AI-092).

reply via email to

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