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/