From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26359 invoked by alias); 23 Jan 2013 12:56:19 -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: 17607 Received: (qmail 9909 invoked from network); 23 Jan 2013 12:56:17 -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=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, HTML_MESSAGE,RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.220.179 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=donmez.ws; s=www; h=x-received:mime-version:x-originating-ip:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=I+bBxc27UNYnt9x58ILDH2FmeE7It33EQyvmqu0d+nQ=; b=K9LOJ2Gc1J06dFziJrDFH1OBcd32ivK79jMDWSrjBwuFS01Gq+RHJ3CA4bzEsDMZBj HDUD9ErR7WVhnIg60xBKqqBqWcBlHwck/uxZtZBjD1yrB62iuZ1o9A1zn+r2ZK2ks929 tFzjE2f78F/q2Y9Ty8gC7Jf7HcyYzlQBAB/mI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-originating-ip:in-reply-to:references :from:date:message-id:subject:to:cc:content-type:x-gm-message-state; bh=I+bBxc27UNYnt9x58ILDH2FmeE7It33EQyvmqu0d+nQ=; b=kbDhBl6GJ0ad3k+DG6EMrhy3Bgp54tuwbYwoMIm80osASIkaiaMWN0+qVpF687Idz1 wA3+N7BTINrSf7vcnHe1HF2TUytHZiw3iAJNnbZsJjRNlbGqibpqyQx2yPFYaOt39uVc xk+kNZH+I5evKQgv+Q1sQbokpNbd6iI4r0Y9vPa7buPFwVo7tzd2DokRgkTe8pGfbU0K xhDbT+Cvm8Cq7GEFrgCj40+SVUU3IvWqr8Uy4CwBALLl2EefizNZ/c//M2XIr6MvOBOg Fo7Cn4fhkjJTBggApVPi3MOIyfWQRF3FAabbx5Biv0ypO/CySWZ8WZSd7gFO0qSBU4Yj priA== X-Received: by 10.52.67.45 with SMTP id k13mr987558vdt.9.1358944134116; Wed, 23 Jan 2013 04:28:54 -0800 (PST) MIME-Version: 1.0 X-Originating-IP: [195.135.221.2] In-Reply-To: <20130123121400.5239671d@pwslap01u.europe.root.pri> References: <20130123113254.3d65278c@pwslap01u.europe.root.pri> <20130123121400.5239671d@pwslap01u.europe.root.pri> From: =?UTF-8?B?xLBzbWFpbCBEw7ZubWV6?= Date: Wed, 23 Jan 2013 13:28:34 +0100 Message-ID: Subject: Re: Silent setopt To: Peter Stephenson Cc: zsh-users@zsh.org Content-Type: multipart/alternative; boundary=20cf3071cd5c62364c04d3f3d6a0 X-Gm-Message-State: ALoCoQmmbyRfXBd0lznxVc2i5f++qnkqeaXpPLiXLiM7RQyvURxferAh/5qRV9Spn5G+86oRIOdf --20cf3071cd5c62364c04d3f3d6a0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi; On Wed, Jan 23, 2013 at 1:14 PM, Peter Stephenson wrote: > 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 > 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 > > 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. > Elegant, thanks! --20cf3071cd5c62364c04d3f3d6a0--