zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh-users@zsh.org
Subject: Re: Silent setopt
Date: Wed, 23 Jan 2013 11:32:54 +0000	[thread overview]
Message-ID: <20130123113254.3d65278c@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <CAJ1KOAg7RgvNpTkj3x+O61o0ryA2zHqukZi_=+oZXPuf5Ywa9w@mail.gmail.com>

On Wed, 23 Jan 2013 11:21:38 +0100
İsmail Dönmez <ismail@donmez.ws> 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


  reply	other threads:[~2013-01-23 11:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-23 10:21 İsmail Dönmez
2013-01-23 11:32 ` Peter Stephenson [this message]
2013-01-23 12:14   ` Peter Stephenson
2013-01-23 12:28     ` İsmail Dönmez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130123113254.3d65278c@pwslap01u.europe.root.pri \
    --to=p.stephenson@samsung.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).