mirror of https://github.com/mirror/busybox.git
bc: fix a thinko: dc uses [] string delimiters, bot bc!
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>1_30_stable
parent
766f67250f
commit
335b4efd2f
|
@ -7076,9 +7076,9 @@ static BC_STATUS zbc_vm_stdin(void)
|
|||
char c = *string;
|
||||
if (string != buf.v && string[-1] != '\\') {
|
||||
// checking applet type is cheaper than accessing sbgn/send
|
||||
if (IS_DC) // dc: sbgn = send = '"'
|
||||
if (IS_BC) // bc: sbgn = send = '"'
|
||||
str ^= (c == '"');
|
||||
else { // bc: sbgn = '[', send = ']'
|
||||
else { // dc: sbgn = '[', send = ']'
|
||||
if (c == ']')
|
||||
str -= 1;
|
||||
else if (c == '[')
|
||||
|
|
Loading…
Reference in New Issue