bugfindutils - Bugs: bug #56142, Incoherence between info and man...


bug #56142: Incoherence between info and man about the effect of -print on the default action

Submitted by:  Francesco Sanesi <frasan>
Submitted on:  Tue 16 Apr 2019 03:24:02 PM UTC  
Category:  documentation Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  James Youngman <jay>
Originator Name:  Open/Closed:  Closed
Release:  4.6.0 Fixed Release:  4.7.0

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sat 04 May 2019 01:48:37 PM UTC, comment #2: 

More than fixed, I would say. I wouldn't have thought about "-quit".

Thank you.

Francesco Sanesi <frasan>
Fri 03 May 2019 11:47:57 PM UTC, comment #1: 

I think the attached patch should fix the problem.

(file #46864)

James Youngman <jay>
Project AdministratorIn charge of this item.
Tue 16 Apr 2019 03:24:02 PM UTC, original submission:  

$ find --version
find (GNU findutils) 4.6.0
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS(FTS_CWDFD) CBO(level=2)

Section 1.3 "'find' Expressions" of the Texinfo documentation (doc/find.texi) states:

If the expression contains no actions other than '-prune', '-print' is performed on all files for which the entire expression is true

The manual page (find/find.1), section "EXPRESSION", states:

If the whole expression contains no actions other than -prune or -print, -print is performed on all files for which the whole expression is true

The latter seems to imply that a -print somewhere in the expression would not suppress the default action. It appears to be inaccurate:

$ mkdir test && cd $_
$ mkdir a
$ touch f1 a/f2
$ find . -path "*/a/*" -prune -o -type f -print
$ find . -path "*/a/*" -prune -o -type f

Apparently, find/find.1 should be aligned to doc/find.texi, i.e. "no actions other than -prune or -print" should be "no actions other than -prune".

Francesco Sanesi <frasan>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by berny (Updated the item)
  • -email is unavailable- added by jay (Updated the item)
  • -email is unavailable- added by frasan (Submitted the item)
  • -email is unavailable- added by frasan

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-08-29 jay Open/ClosedOpen => Closed
    2019-08-29 berny Fixed ReleaseNone => 4.7.0
    2019-05-03 jay StatusNone => Fixed
    2019-05-03 jay Attached File- => Added 0001-doc-fix-bug-56142-by-specifying-which-actions-inhibi.patch, #46864
    2019-05-03 jay Assigned toNone => jay
    2019-04-16 frasan Carbon-Copy- => Added francesco.sanesi@gmail.com

    Back to the top

    Powered by Savane 3.5