From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3886 invoked by alias); 23 Jan 2013 12:24:10 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17606 Received: (qmail 26323 invoked from network); 23 Jan 2013 12:24:08 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at samsung.com does not designate permitted sender hosts) X-AuditID: cbfec7f4-b7f6d6d000001620-a2-50ffd409dbb9 Date: Wed, 23 Jan 2013 12:14:00 +0000 From: Peter Stephenson To: zsh-users@zsh.org Subject: Re: Silent setopt Message-id: <20130123121400.5239671d@pwslap01u.europe.root.pri> In-reply-to: <20130123113254.3d65278c@pwslap01u.europe.root.pri> References: <20130123113254.3d65278c@pwslap01u.europe.root.pri> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: quoted-printable X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphluLIzCtJLcpLzFFi42I5/e/4VV3OK/8DDG7tNLXYcXIlowOjx6qD H5gCGKO4bFJSczLLUov07RK4Mt6/Fyn4wF5xd/sOtgbG+WxdjBwcEgImErO7JLoYOYFMMYkL 99YDhbk4hASWMkqs37+MCcphkri3/gUTSBWLgKrEzebLjCA2m4ChxNRNs8FsEQFRieUrNrOD 2MICUhK9j5axgNi8AvYS57/cB+vlFHCQ2PD5DyvE0A5GiT8z3zGDJPgF9CWu/v3EBHGGvcTM K2cYIZoFJX5Mvgc2iFlAXWLSvEXMELa2xJN3F1gnMArMQlI2C0nZLCRlCxiZVzGKppYmFxQn peca6hUn5haX5qXrJefnbmKEhOCXHYyLj1kdYhTgYFTi4eV48i9AiDWxrLgy9xCjBAezkgiv ytr/AUK8KYmVValF+fFFpTmpxYcYmTg4pRoYi8yTi1qULRpV1wkvPCgimSvNEFsuVnWjesJx /6ebJ92T4DEVKHb+szjtwbklIbWxFWKR7Ff3nzw2O5JbxVFuu2/Mgi3Cl/pZ4300o65P+Nh+ 8PPG52KTvzFGzGKwNbyx7oKZsEPb9aUfv2pOOOrZsfrrhLP5E96cd7Jw19qulv7E+ERbab+J EktxRqKhFnNRcSIA6MZeDh8CAAA= On Wed, 23 Jan 2013 11:32:54 +0000 Peter Stephenson wrote: > On Wed, 23 Jan 2013 11:21:38 +0100 > =C4=B0smail D=C3=B6nmez wrote: > > I am using the same zsh config across a lot of machine which have all k= inds > > of versions of zsh and when I ssh into an old zsh machine I get > >=20 > > setopt:47: no such option: COMBININGCHARS > > setopt:48: no such option: HASH_EXECUTABLESONLY > >=20 > > Which is expected but gets boring after some time. So I wonder if there= is > > a way to silence setopt for unsupported options? >=20 > It should be as simple as >=20 > setopt COMBININGCHARS HASHEXECUTABLESONLY 2>/dev/null Ooh, I've noted a slightly more sophisticated (but slower) way in my .zshrc. zmodload -i zsh/parameter for opt in incappendhistory histexpiredupsfirst typesetsilent; do [[ -n ${options[$opt]} ]] && setopt $opt done This relies on the special options associative array, also used by completion. pws