changes for backslashes in glob patterns and single-quoted strings; brace expansion knows '${...}' expansions; read returns status 2 if trying to assign to a readonly variable

This commit is contained in:
Chet Ramey
2023-10-17 11:09:23 -04:00
parent 7a698806d1
commit 1e1a0342a4
8 changed files with 73 additions and 37 deletions
+1 -3
View File
@@ -3834,9 +3834,7 @@ parse_matched_pair (int qc, int open, int close, size_t *lenp, int flags)
continue;
}
RESIZE_MALLOCED_BUFFER (ret, retind, 2, retsize, 64);
if MBTEST(ch == CTLESC)
ret[retind++] = CTLESC;
RESIZE_MALLOCED_BUFFER (ret, retind, 1, retsize, 64);
ret[retind++] = ch;
continue;
}