[Top][All Lists]

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

[bug #15235] Leading directories are misparsed as expressions

From: Eric Blake
Subject: [bug #15235] Leading directories are misparsed as expressions
Date: Sat, 17 Dec 2005 21:59:07 -0700
User-agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.5) Gecko/20051012 Netscape/8.0.4


                 Summary: Leading directories are misparsed as expressions
                 Project: findutils
            Submitted by: ericb
            Submitted on: Sat 12/17/05 at 21:59
                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



Per POSIX, http://www.opengroup.org/onlinepubs/009695399/utilities/find.html,
"The first argument that starts with a '-', or is a '!' or a '(', and all
subsequent arguments shall be interpreted as an expression made up of the
following primaries and operators."

Therefore, the following invocations must treat their argument as a directory
name, rather than an expression (or portion thereof).

$ mkdir \(1 \!2 \)
$ touch \(1/a \!2/b \)/c

Buggy behavior:
$ find \)
find: invalid expression: you have too many ')'
$ find \!1
find: invalid predicate `!1'
$ find \(2
find: invalid predicate `(2'

Expected behavior:
$ find \(1 \!2 \)

As a side note, the errors are inconsistent in their use of '' vs. `'


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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