summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3bb0d2a)
SCCS-vsn: usr.bin/rdist/gram.y 4.13
SCCS-vsn: usr.bin/rdist/expand.c 4.13
-static char *sccsid = "@(#)expand.c 4.12 (Berkeley) 85/02/04";
+static char *sccsid = "@(#)expand.c 4.13 (Berkeley) 85/04/03";
+ if (wh == 0) {
+ register char *cp;
+
+ for (nl = list; nl != NULL; nl = nl->n_next)
+ for (cp = nl->n_name; *cp; cp++)
+ *cp = *cp & TRIM;
which = wh;
path = tpathp = pathp = pathbuf;
which = wh;
path = tpathp = pathp = pathbuf;
if (pathp >= lastpathp)
yyerror("Pathname too long");
else {
if (pathp >= lastpathp)
yyerror("Pathname too long");
else {
-static char *sccsid = "@(#)gram.y 4.12 (Berkeley) 85/02/04";
+static char *sccsid = "@(#)gram.y 4.13 (Berkeley) 85/04/03";
for (nl = $2; nl != NULL; nl = nl->n_next)
if ((cp = re_comp(nl->n_name)) != NULL)
yyerror(cp);
for (nl = $2; nl != NULL; nl = nl->n_next)
if ((cp = re_comp(nl->n_name)) != NULL)
yyerror(cp);
+ $1->sc_args = expand($2, E_VARS);
$$ = $1;
}
| SPECIAL opt_namelist STRING SM = {
$$ = $1;
}
| SPECIAL opt_namelist STRING SM = {