mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Larry McVoy <lm@bitmover.com>
Cc: Marcelo Tosatti <marcelo@conectiva.com.br>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH for 2.4] fix find to not stumble over BK
Date: 17 Jul 2002 02:40:33 +0100	[thread overview]
Message-ID: <1026870033.1688.116.camel@irongate.swansea.linux.org.uk> (raw)
In-Reply-To: <20020716170821.A8462@work.bitmover.com>

On Wed, 2002-07-17 at 01:08, Larry McVoy wrote:

> Note that common usage
> 
> 	find . -name '*.[chS]' | whatever
> 
> becomes
> 
> 	find . -name SCCS -prune -o -name BitKeeper -prune -o \
> 		-name '*.[chS]' -print | whatever
> 		                ^^^^^^
> 
> The -print is needed or find will produce nothing, it's now multiple clauses.

The -print is not needed. See IEEE Std 1003.1-2001

If no expression is present, -print shall be used as the expression.
Otherwise, if the given expression does not contain any of the primaries
-exec, -ok, or -print, the given expression shall be effectively
replaced by:

( given_expression ) -print

Alan the pedantic


  reply	other threads:[~2002-07-17  0:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-17  0:08 Larry McVoy
2002-07-17  1:40 ` Alan Cox [this message]
2002-07-17  2:05   ` [OT] -print argument to find (was [PATCH for 2.4] fix find to not stumble over BK) Chris Wedgwood
2002-07-17 15:41     ` jlnance

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1026870033.1688.116.camel@irongate.swansea.linux.org.uk \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lm@bitmover.com \
    --cc=marcelo@conectiva.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®