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

Request about unhash / unfunction / unset



I would like to humbly request that if zsh is asked to unhash an entry that is not in the hash table, it silently does nothing if the entry was not previously there. (Instead of generating an error message.)

I think in the vast majority of use cases, the user just wants to ensure an element is not in the hash table. I don't think they care if it was or wasn't in the table before the call to unhash. And the operation is idempotent, so there's even less motivation to warn based on the initial state.

Same request for unfunction and unalias.

Thanks for your consideration!



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