evalvar(): If subtype is VSASSIGN (or VSQUESTION), argstr() already rolled
forward the backquote queue. If VSQUESTION it doesn't matter because we already exited with an error.
This commit is contained in:
parent
1b483c4f71
commit
718ac53f6f
@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
/*static char sccsid[] = "from: @(#)expand.c 5.1 (Berkeley) 3/7/91";*/
|
/*static char sccsid[] = "from: @(#)expand.c 5.1 (Berkeley) 3/7/91";*/
|
||||||
static char rcsid[] = "$Id: expand.c,v 1.5 1993/08/01 18:58:16 mycroft Exp $";
|
static char rcsid[] = "$Id: expand.c,v 1.6 1993/10/22 13:20:02 mycroft Exp $";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -403,7 +403,7 @@ again: /* jump here after setting a variable with ${var=text} */
|
|||||||
if ((c = *p++) == CTLESC)
|
if ((c = *p++) == CTLESC)
|
||||||
p++;
|
p++;
|
||||||
else if (c == CTLBACKQ || c == (CTLBACKQ|CTLQUOTE)) {
|
else if (c == CTLBACKQ || c == (CTLBACKQ|CTLQUOTE)) {
|
||||||
if (set)
|
if (set && subtype != VSASSIGN)
|
||||||
argbackq = argbackq->next;
|
argbackq = argbackq->next;
|
||||||
} else if (c == CTLVAR) {
|
} else if (c == CTLVAR) {
|
||||||
if ((*p++ & VSTYPE) != VSNORMAL)
|
if ((*p++ & VSTYPE) != VSNORMAL)
|
||||||
|
Loading…
Reference in New Issue
Block a user