Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: broken parsing with $((`:`))
On Apr 15, 10:03am, Peter Stephenson wrote:
}
} Yes, indeed --- there's a funny internal special case for empty strings
} that I never quite get my head around.
}
} - if (!*s) {
} + if (!*s || *s == Nularg) {
I wonder if (a) there are other overlooked cases like this and (b) if it
would be useful to have a #define macro for (c == '\0' || c == Nularg).
A quick grep doesn't find existing cases of that test other than this
new one, but of course if the Nularg part were forgotten, it wouldn't.
I suspect it just isn't that common because Nularg goes away after the
parsing pass.
} (Please, God, make the problems with command and math substitution
} parsing stop now.)
Indeed ... at what point should we consider 5.0.8 to get all these little
edge-case fixes out into the field?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author