bug-autoconf
[Top][All Lists]
Advanced

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

Re: Autoconf 2.57 - ifnames details


From: Paul Eggert
Subject: Re: Autoconf 2.57 - ifnames details
Date: 10 Dec 2003 17:09:08 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

François Pinard <address@hidden> writes:

> I was expecting `ifnames' to block reading
> From the terminal, as the `--help' output says that standard input is
> read when no arguments are given.

This is a case where the documentation is probably wrong.  A proposed
patch is enclosed below.

> Also, a newline is missing at the end of output for `ifnames --help' and
> `ifnames --version'.

That bug is fixed in Autoconf 2.59, at least in my copy.

Thanks for reporting the problems.


2003-12-10  Paul Eggert  <address@hidden>

        * bin/ifnames.in: Don't claim that no args means stdin.
        * doc/autoconf.texi (ifnames Invocation): Likewise.

--- bin/ifnames.in.~1.31.~      Fri Oct 10 22:25:16 2003
+++ bin/ifnames.in      Wed Dec 10 17:04:20 2003
@@ -50,11 +50,12 @@ use Autom4te::XFile;
 # -----
 $help = "Usage: $0 [OPTION] ...  [FILE] ...
 
-Scan all of the C source FILES (or the standard input, if none are
-given) and write to the standard output a sorted list of all the
-identifiers that appear in those files in `#if', `#elif', `#ifdef', or
-`#ifndef' directives.  Print each identifier on a line, followed by a
-space-separated list of the files in which that identifier occurs.
+Scan all of the C source FILES and write to the standard output a
+sorted list of all the identifiers that appear in those files in
+`#if', `#elif', `#ifdef', or `#ifndef' directives.  Print each
+identifier on a line, followed by a space-separated list of the files
+in which that identifier occurs.  A FILE of `-' stands for standard
+input.
 
   -h, --help      print this help, then exit
   -V, --version   print version number, then exit
--- doc/autoconf.texi.~1.782.~  Mon Dec  1 12:09:12 2003
+++ doc/autoconf.texi   Wed Dec 10 17:05:36 2003
@@ -1224,11 +1224,12 @@ some portability, @command{ifnames} can 
 Invocation}).
 
 @command{ifnames} scans all of the C source files named on the command line
-(or the standard input, if none are given) and writes to the standard
+and writes to the standard
 output a sorted list of all the identifiers that appear in those files
 in @code{#if}, @code{#elif}, @code{#ifdef}, or @code{#ifndef}
 directives.  It prints each identifier on a line, followed by a
 space-separated list of the files in which that identifier occurs.
+The file name @file{-} stands for standard input.
 
 @noindent
 @command{ifnames} accepts the following options:




reply via email to

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