URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=15194>
Summary: bad parse on ( option ) Project: findutils Submitted by: ericb Submitted on: Mon 12/12/05 at 06:58 Category: find Severity: 3 - Normal Item Group: Wrong result Status: None Privacy: Public Assigned to: None Originator Name: Eric Blake Originator Email: Open/Closed: Open Release: 4.2.27 Fixed Release: None _______________________________________________________ Details: This should succeed (albeit with the warning) rather than fail, since -depth is a valid expression. Likewise to all the other expression options, if \( and \) are separated by any valid expression, even if it is not a test, find should correctly parse the command line. Buggy: $ find \( -depth \) find/find: warning: you have specified the -depth option after a non-option argument (, but options are not positional (-depth affects tests specified before it as well as those specified after it). Please specify options before other arguments. find/find: invalid expression; you have too many ')' Expected: $ find -depth \( -true \) ./Entries ./Entries.Log ./Repository ./Root ./Template . $ find -depth \( -depth \) find/find: warning: you have specified the -depth option after a non-option argument (, but options are not positional (-depth affects tests specified before it as well as those specified after it). Please specify options before other arguments. ./Entries ./Entries.Log ./Repository ./Root ./Template . _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=15194> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-findutils mailing list Bug-findutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-findutils