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

hang in brace expansion



Doing {^@..a} will hang indefinitely (where ^@ is a literal null
character). The problem is in xpandbraces in glob.c,
        for (; cend >= cstart; cend--) {
cend and cstart are unsigned types and cstart is 0. I'm a bit tired at
the moment so I can't figure out a nice way to write this loop that
always works. The value cend is used inside the loop, cstart isn't. I
suppose we could just add if (cend == 0) break; at the last line of
the loop?

-- 
Mikael Magnusson



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