Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID
	autolearn=ham autolearn_force=no version=3.4.0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=brasslantern-com.20150623.gappssmtp.com; s=20150623;
        h=from:message-id:date:in-reply-to:comments:references:to:subject
         :mime-version:content-type;
        bh=wiKwAR0drQPNoCm2lXhzJ7QTYtbH4qeQMILTyl5Vn0E=;
        b=btltRGAUM6jho+ej2hgxlRsx0HGS0o6t9YAoZux1C6UP/GPEf4dEwGQ6qVDESjb3Mx
         FJwZTa0JV+kZ78CYA0nrpOtUaJkzot+ego8LsXP/cpZuWYj6JFgtmlYgKQTbsqkYZFb5
         d1mg901zwlOdOAfcwfdjajXPUYvPZqc5GlhUcZ6KC7j+mAA0QjSE9N81Qg7baj96Ersx
         KAu2zVam4lKIpfX/Srg0PgFK/JooPuZ1elNpOJgJxJ7BpmG5yMfst+lAYVzktFUIirlZ
         lQGg6gEOuq7Lz0VcUZm/7GoK+f0wmGP3SnO/aZaez9mTvCcntFfFVMC8UWlPPbpemqZ8
         48NA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:message-id:date:in-reply-to:comments
         :references:to:subject:mime-version:content-type;
        bh=wiKwAR0drQPNoCm2lXhzJ7QTYtbH4qeQMILTyl5Vn0E=;
        b=WIerJR0Rw+cSzfK1nVptARkgwE9f9gXpoFixHypAct7Ul8lM9BO3es8ZUIOR3HP4pN
         j5hxQ1RftMQLIlrs32R12MrUT0dPXLP+UVJXsDA4vpiZhR/bO51YCeRoZ3z6oLY/nG6Z
         QOcfQZcanKmGfnOmOtWGAkjnqZKB3O3+J5QkrxPkXKe8whfB5HtPEvFC9MOIaDiOC7pL
         1DluVu9fBqrGw0XClmp17G2CxeCPLhkb8Krpx/zKF7yP4bb1n86ZUrfiW3uHD7k7lexJ
         Afwf0lAW17BkMDYLtbWAeaKOdTimQl6u1Ka2Tp1N50b5+bgH2/D6eM2YhhGym6H87Idz
         J+Sw==
X-Gm-Message-State: ALoCoQnb8KJlBjMc7ciLECWm39u/DQ2hJ2MxChbV3510SSXRh6rBo4d+NQYSw1MvK2T+Rp/pUUl5J7aHJalNaPlsWVW6E4dYYw==
X-Received: by 10.98.67.139 with SMTP id l11mr20721373pfi.66.1452452040796;
        Sun, 10 Jan 2016 10:54:00 -0800 (PST)
From: Bart Schaefer <schaefer@brasslantern.com>
Message-Id: <160110105411.ZM788@torch.brasslantern.com>
Date: Sun, 10 Jan 2016 10:54:11 -0800
In-Reply-To: <20160110003755.GA6751@tarsus.local2>
Comments: In reply to Daniel Shahaf <d.s@daniel.shahaf.name>
        "Re: PATCH misc. cleanup in bin_print()" (Jan  1, 12:37am)
References: <160104224749.ZM6378@torch.brasslantern.com> 
	<20160110003755.GA6751@tarsus.local2>
X-Mailer: OpenZMail Classic (0.9.2 24April2005)
To: zsh-workers@zsh.org
Subject: Re: PATCH misc. cleanup in bin_print()
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Seq: zsh-workers 37543

I'm not sure why, but although these messages from Daniel are dated Jan 1,
I didn't receive them until yesterday.

On Jan 1, 12:37am, Daniel Shahaf wrote:
} Subject: Re: PATCH misc. cleanup in bin_print()
}
} Bart Schaefer wrote on Mon, Jan 04, 2016 at 22:47:49 -0800:
} > -    if (OPT_ISSET(ops, 'z') + OPT_ISSET(ops, 's') + OPT_ISSET(ops, 'v') > 1) {
} > -	zwarnnam(name, "only one of -z, -s, or -v allowed");
} 
} Should -p be in this set too?

It might be possible to include -p and -u in that set, yes.  I caught
those later with

    zwarnnam(name, "-p or -u not allowed with -s, -S, -v, or -z");

but I wasn't sure whether -p and -u actually should warn about being
mutually exclusive, because there's the undocumented special case of
"-u p" (like >&p) which is the same as -p and might be written "-up".

Similarly I'd like to warn about "-f fmt -c" but there's a Test/ for
that so maybe something depends on it.

