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
77be5b1e10
commit
5a904f991e
@ -674,7 +674,7 @@ c_exec(OPTION *option, char ***argvp)
|
||||
for (ap = argv = *argvp;; ++ap) {
|
||||
if (!*ap)
|
||||
errx(1,
|
||||
"%s: no terminating \";\"", option->name);
|
||||
"%s: no terminating \";\" or \"+\"", option->name);
|
||||
if (**ap == ';')
|
||||
break;
|
||||
if (**ap == '+' && ap != argv && strcmp(*(ap - 1), "{}") == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user