mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-09-28 15:01:21 +02:00
23051: ${(Q)...} of RCQUOTE expression failed with DEBUG active
This commit is contained in:
parent
b8108d295f
commit
f50dfd61f6
@ -1,3 +1,8 @@
|
||||
2006-12-13 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 23051: Src/lex.c: using ${(Q)...} on an expression with
|
||||
RCQUOTE handling failed when DEBUG was defined.
|
||||
|
||||
2006-12-12 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* users/11079: Doc/Zsh/expn.yo: point out that 1(2##) may not
|
||||
|
@ -1536,9 +1536,13 @@ parse_subst_string(char *s)
|
||||
return 1;
|
||||
}
|
||||
#ifdef DEBUG
|
||||
if (c != STRING || olen != l || errflag) {
|
||||
/*
|
||||
* Historical note: we used to check here for olen == l, but
|
||||
* that's not necessarily the case if we stripped an RCQUOTE.
|
||||
*/
|
||||
if (c != STRING || errflag) {
|
||||
fprintf(stderr, "Oops. Bug in parse_subst_string: %s\n",
|
||||
olen < l ? "len < l" : errflag ? "errflag" : "c != STRING");
|
||||
errflag ? "errflag" : "c != STRING");
|
||||
fflush(stderr);
|
||||
untokenize(s);
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user