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

since + is also a valid way to terminate -exec.
This commit is contained in:
Tim J. Robbins 2004-07-29 03:33:55 +00:00
parent cc4165333c
commit e22bb9db9a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132815

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