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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132815
@ -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