bug-coreutils
[Top][All Lists]
Advanced

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

Re: ptx default ignore file


From: Jim Meyering
Subject: Re: ptx default ignore file
Date: Tue, 18 Apr 2006 01:21:01 +0200

address@hidden (Eric Blake) wrote:
> According to "info '(coreutils)Input processing in ptx'", if -i is not 
> specified,
> the file /usr/local/lib/eign is typically used.  However, looking at the 
> source,
> the default for -i is determined by the definition of DEFAULT_IGNORE_FILE,
> which is not defined, nor mentioned anywhere outside of ptx.c.  Does it
> still make sense to document a default file if we don't compile one in?

Thanks.
That code has never been used, so I've just removed it and
the associated documentation:

2006-04-18  Jim Meyering  <address@hidden>

        * src/ptx.c (main) [DEFAULT_IGNORE_FILE]: Remove code to use a default
        ignore file.  This has never been enabled.  Reported by Eric Blake.


doc
2006-04-18  Jim Meyering  <address@hidden>

        * coreutils.texi (Input processing in ptx): Remove mention of the
        default --ignore file, /usr/local/lib/eign.  That file has never
        been used.  Reported by Eric Blake.

Index: src/ptx.c
===================================================================
RCS file: /fetish/cu/src/ptx.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -p -u -r1.54 -r1.55
--- src/ptx.c   11 Apr 2006 00:51:42 -0000      1.54
+++ src/ptx.c   17 Apr 2006 23:17:11 -0000      1.55
@@ -2094,13 +2094,6 @@ the --copyright option is deprecated; us
        }
     }
 
-  /* Change the default Ignore file if one is defined.  */
-
-#ifdef DEFAULT_IGNORE_FILE
-  if (!ignore_file)
-    ignore_file = DEFAULT_IGNORE_FILE;
-#endif
-
   /* Process remaining arguments.  If GNU extensions are enabled, process
      all arguments as input parameters.  If disabled, accept at most two
      arguments, the second of which is an output parameter.  */
Index: doc/coreutils.texi
===================================================================
RCS file: /fetish/cu/doc/coreutils.texi,v
retrieving revision 1.323
retrieving revision 1.324
diff -u -p -u -r1.323 -r1.324
--- doc/coreutils.texi  13 Apr 2006 04:01:47 -0000      1.323
+++ doc/coreutils.texi  17 Apr 2006 23:14:45 -0000      1.324
@@ -4278,11 +4278,6 @@ never be taken as keywords in concordanc
 end of line separation of words is not subject to the value of the
 @option{-S} option.
 
-There is a default Ignore file used by @command{ptx} when this option is
-not specified, usually found in @file{/usr/local/lib/eign} if this has
-not been changed at installation time.  If you want to deactivate the
-default Ignore file, specify @code{/dev/null} instead.
-
 @item -o @var{file}
 @itemx address@hidden
 




reply via email to

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