Change the 'no terminating ";"' error message to 'no terminating ";" or "+"'
since + is also a valid way to terminate -exec.
This commit is contained in:
parent
cc4165333c
commit
e22bb9db9a
@ -674,7 +674,7 @@ c_exec(OPTION *option, char ***argvp)
|
|||||||
for (ap = argv = *argvp;; ++ap) {
|
for (ap = argv = *argvp;; ++ap) {
|
||||||
if (!*ap)
|
if (!*ap)
|
||||||
errx(1,
|
errx(1,
|
||||||
"%s: no terminating \";\"", option->name);
|
"%s: no terminating \";\" or \"+\"", option->name);
|
||||||
if (**ap == ';')
|
if (**ap == ';')
|
||||||
break;
|
break;
|
||||||
if (**ap == '+' && ap != argv && strcmp(*(ap - 1), "{}") == 0) {
|
if (**ap == '+' && ap != argv && strcmp(*(ap - 1), "{}") == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user