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

Re: Truncate $functions



On Feb 15,  8:31pm, Sebastian Gniazdowski wrote:
}
} Side note, unset functions[...] has
} problems with entries like ops+[, but unfunction doesn't.

That's because unfunction doesn't have to parse the function name as an
array subscript.

Git commit 95663e9 should have taken care of the issue with unset.  You
just have to use

    x='ops+['
    unset "functions[${(b)x}]"



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