fix for adding here-documents to history; change to checking for custom LS_COLORS prefix

This commit is contained in:
Chet Ramey
2021-12-09 15:31:21 -05:00
parent 71a11dbeb4
commit e93bed95a8
5 changed files with 24 additions and 33 deletions
+7 -4
View File
@@ -4064,10 +4064,13 @@ parse_comsub (qc, open, close, lenp, flags)
/* Posix interp 217 says arithmetic expressions have precedence, so
assume $(( introduces arithmetic expansion and parse accordingly. */
peekc = shell_getc (0);
shell_ungetc (peekc);
if (peekc == '(')
return (parse_matched_pair (qc, open, close, lenp, 0));
if (open == '(') /*)*/
{
peekc = shell_getc (0);
shell_ungetc (peekc);
if (peekc == '(') /*)*/
return (parse_matched_pair (qc, open, close, lenp, 0));
}
/*itrace("parse_comsub: qc = `%c' open = %c close = %c", qc, open, close);*/