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

Re: Silent setopt



On Wed, 23 Jan 2013 11:21:38 +0100
İsmail Dönmez <ismail@xxxxxxxxx> wrote:
> I am using the same zsh config across a lot of machine which have all kinds
> of versions of zsh and when I ssh into an old zsh machine I get
> 
> setopt:47: no such option: COMBININGCHARS
> setopt:48: no such option: HASH_EXECUTABLESONLY
> 
> Which is expected but gets boring after some time. So I wonder if there is
> a way to silence setopt for unsupported options?

It should be as simple as

setopt COMBININGCHARS HASHEXECUTABLESONLY 2>/dev/null

I wonder why setopt always returns status 0, no matter what happens?

pws



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