bug-findutils
[Top][All Lists]
Advanced

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

[bug #26217] argument parsing bug with -regex .... \; without preceding


From: James Youngman
Subject: [bug #26217] argument parsing bug with -regex .... \; without preceding -exec
Date: Fri, 17 Apr 2009 22:43:55 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.7) Gecko/2009032813 Iceweasel/3.0.6 (Debian-3.0.6-1)

Update of bug #26217 (project findutils):

                  Status:                    None => Invalid                
                 Summary: argument parsing bug with -regex => argument
parsing bug with -regex .... ; without preceding -exec

    _______________________________________________________

Follow-up Comment #1:

Thanks for the detailed bug report.  However, many of the options you used
make no difference to the problem.  You can reduce it to this case:

$ find /home/mysql/olddbroots     -ls ';'
find: paths must precede expression: ;
Usage: find [-H] [-L] [-P] [-Olevel] [-D
help|tree|search|stat|rates|opt|exec] [path...] [expression]

The problem is that the directory/file start points need to be specified
before the tests on the command line.  Since ";" does not begin with "-" it is
assumed to be a start point rather than a test, but start points don't belong
at that position in the command line.   In other words, just remove the ;. 
The only reason you need to use ; in the -exec case is that the ; marks the
end of the arguments to -exec.


    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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