Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

zsh 4.2.5 segfaults when substituting on $match



    Hi all :)

    zsh segfaults with this:

    $ zsh -f
    $ emulate -L zsh
    $ setopt extendedglob
    $ file="a"
    $ print ${file//(#b)(*)/${match//a/}}

    But not with this:

    $ zsh -f
    $ emulate -L zsh
    $ setopt extendedglob
    $ file="a"
    $ print ${file//(#b)(*)/${match/a/}}

    Both gdb and valgrind says it crashes in a memcpy call, maybe due
to an initialized pointer :? Happens on my 4.2.5 (self compiled), AND
in an old 4.0.9 I have around here (self compiled too).

    If anyone wants me to carry any additional tests, just tell ;)

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...



Messages sorted by: Reverse Date, Date, Thread, Author