[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: |
Aleks M. |
Subject: |
[bug #38696] -exec didn't print error message if no '; ' delimiter found and redirection used |
Date: |
Wed, 10 Apr 2013 04:11:33 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:23.0) Gecko/20130408 Firefox/23.0 |
URL:
<http://savannah.gnu.org/bugs/?38696>
Summary: -exec didn't print error message if no ';' delimiter
found and redirection used
Project: findutils
Submitted by: aleksm
Submitted on: Wed 10 Apr 2013 04:11:32 AM GMT
Category: find
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.4.2
Fixed Release: None
_______________________________________________________
Details:
Behavior of two following commands differs:
find . -exec echo test
Prints error:
find: missing argument to `-exec'
find . -exec echo test > somefile \;
Prints no error messages, executes echo command and redirects _whole_ find
output to somefile. But according to manpage:
"All following arguments to find are taken to be arguments to the command
until an argument consisting of `;' is encountered."
In second command ';' delimiter is placed _after_ redirection and find must
print same error as first command and exit (or manpage must be fixed).
Best regards,
Aleksandr.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38696>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #38696] -exec didn't print error message if no '; ' delimiter found and redirection used,
Aleks M. <=