Re: Broken makefile given Autoconf version mismatch

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

 



Stepan Kasal <kasal@xxxxxx> writes:

> --- lib/Automake/FileUtils.pm	2006-04-14 09:25:00.000000000 +0200
> +++ lib/Automake/FileUtils.pm	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
<http://www.opengroup.org/austin/mailarchives/ag/msg09343.html> and
<http://www.opengroup.org/austin/mailarchives/ag/msg09421.html> (AI-092).


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux