Change the 'no terminating ";"' error message to 'no terminating ";" or "+"'

since + is also a valid way to terminate -exec.
This commit is contained in:
tjr 2004-07-29 03:33:55 +00:00
parent 77be5b1e10
commit 5a904f991e

View File

@ -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) {