[Bug 747] 1.15.2 regression from 1.15.1 in ash parameter expansion
bugzilla at busybox.net
bugzilla at busybox.net
Sat Nov 28 17:35:46 UTC 2009
https://bugs.busybox.net/show_bug.cgi?id=747
--- Comment #5 from Denys Vlasenko <vda.linux at googlemail.com> 2009-11-28 17:35:45 UTC ---
I added two prints near that place (in 1.15.2):
end:
bb_error_msg("p:'%s'", p);
if (subtype != VSNORMAL) { /* skip to end of alternative */
int nesting = 1;
for (;;) {
char c = *p++;
bb_error_msg("c:%u '%c'", c, c);
if (c == CTLESC)
p++;
else if (c == CTLBACKQ || c == (CTLBACKQ|CTLQUOTE)) {
if (varlen >= 0)
argbackq = argbackq->next;
} else if (c == CTLVAR) {
if ((*p++ & VSTYPE) != VSNORMAL)
nesting++;
} else if (c == CTLENDVAR) {
if (--nesting == 0)
break;
}
}
}
return p;
}
and I see this:
# arg='boot=cdrom'
# BOOT="${arg#boot=}"
ash: p:'boot='
ash: c:98 'b'
ash: c:111 'o'
ash: c:111 'o'
ash: c:116 't'
ash: c:129 ''
ash: c:131 ''
#
What do you see?
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list