bug-findutils
[Top][All Lists]
Advanced

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

[bug #38696] -exec didn't print error message if no '; ' delimiter found


From: Bernhard Voelker
Subject: [bug #38696] -exec didn't print error message if no '; ' delimiter found and redirection used
Date: Wed, 10 Apr 2013 07:01:45 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2

Follow-up Comment #1, bug #38696 (project findutils):

That is not a bug in find, but rather a misunderstanding on
your side of how the shell handles redirections, e.g. man bash,
section REDIRECTION:

  "The  following  redirection  operators  may  precede  or
   appear anywhere within a simple command or may follow a
   command."

I.e., the following commands are identical:

  $ find . -exec echo test > somefile ; 
  $ find . -exec echo test ; > somefile
  $ > somefile find . -exec echo test ;

In all of the above cases, find will see the same arguments
while stdout is redirected to 'somefile'.

It is just common habit to place redirections at the end of
the command line.

Have a nice day,
Berny

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?38696>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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