[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #15194] bad parse on ( option )
From: |
Eric Blake |
Subject: |
[bug #15194] bad parse on ( option ) |
Date: |
Mon, 12 Dec 2005 06:58:51 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5 |
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 #15194] bad parse on ( option ),
Eric Blake <=