1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-01 06:20:55 +01:00

zsh-3.1.5-pws-1

This commit is contained in:
Tanaka Akira 1999-04-15 18:06:33 +00:00
parent 32c2ebbaa5
commit a61dc2074a
44 changed files with 4986 additions and 1444 deletions

View file

@ -2627,14 +2627,14 @@ bin_getopts(char *name, char **argv, char *ops, int func)
if(opch == ':' || !(p = memchr(optstr, opch, lenoptstr))) {
p = "?";
err:
zsfree(zoptarg);
zsfree(zoptarg);
if(quiet) {
setsparam(var, ztrdup(p));
zoptarg = metafy(optbuf, lenoptbuf, META_DUP);
} else {
zerr(*p == '?' ? "bad option: -%c" :
"argument expected after -%c option", NULL, opch);
zoptarg=ztrdup("");
zoptarg=ztrdup("");
errflag = 0;
}
return 0;