mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-13 22:31:13 +01:00
34322: bug with interface to parsestr() etc.
Was showing up in places like ${(e)...} where command substitution
could reallocate the token string, but actually there was never any
guarantee that the lexer wouldn't do that, so this was always
a bit iffy.
This commit is contained in:
parent
6856ab39e3
commit
c6c9f5daf2
11 changed files with 59 additions and 26 deletions
|
|
@ -1515,7 +1515,7 @@ checkmailpath(char **s)
|
|||
setunderscore(*s);
|
||||
|
||||
u = dupstring(u);
|
||||
if (! parsestr(u)) {
|
||||
if (!parsestr(&u)) {
|
||||
singsub(&u);
|
||||
zputs(u, shout);
|
||||
fputc('\n', shout);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue