--- parse.y +++ parse.y 2009-03-04 13:05:43.128904662 +0000 @@ -3420,6 +3420,11 @@ eof_error: RESIZE_MALLOCED_BUFFER (ret, retind, 2, retsize, 64); if MBTEST(ch == CTLESC || ch == CTLNUL) ret[retind++] = CTLESC; + else if MBTEST(ch == close && (tflags & LEX_INCASE) == 0) +{ + count--; +/*itrace("parse_comsub:%d: found close: count = %d", line_number, count);*/ +} ret[retind++] = ch; continue; }