bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH 21/21] bootstrap: fix 'find: missing argument to `-exec''


From: Bruno Haible
Subject: Re: [PATCH 21/21] bootstrap: fix 'find: missing argument to `-exec''
Date: Mon, 01 Dec 2014 01:12:55 +0100
User-agent: KMail/4.8.5 (Linux/3.2.0-64-generic; KDE/4.8.5; x86_64; ; )

> -    && ! find "$local_gl_dir" -name '*.diff' -exec false {} +; then
> +    && ! find "$local_gl_dir" -name '*.diff' -exec false {} + ';'; then

Sorry, this does not look right. According to POSIX [1] the '+' argument
terminates the primary expression "-exec false {} +". So what you are doing
here is to add a stray ';', which leads to a syntax error:

$ find . -name foo -exec false {} + ';'
find: paths must precede expression: ;
Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] 
[path...] [expression]

Bruno

[1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/find.html




reply via email to

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