From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5689 invoked by alias); 4 Aug 2014 18:40:34 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 32953 Received: (qmail 19521 invoked from network); 4 Aug 2014 18:40:31 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-Originating-IP: [86.6.157.246] X-Spam: 0 X-Authority: v=2.1 cv=NutfcqtJ c=1 sm=1 tr=0 a=BvYiZ/UW0Fmn8Wufq9dPrg==:117 a=BvYiZ/UW0Fmn8Wufq9dPrg==:17 a=NLZqzBF-AAAA:8 a=kwInMCTW7fcA:10 a=uObrxnre4hsA:10 a=kj9zAlcOel0A:10 a=pGLkceISAAAA:8 a=zwy7vTLWRvd_g7SwNvAA:9 a=CjuIK1q_8ugA:10 a=MSl-tDqOz04A:10 Date: Mon, 4 Aug 2014 19:40:27 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: [doc] read -qs Message-ID: <20140804194027.7627a064@pws-pc.ntlworld.com> In-Reply-To: <20140803213803.GA5356@chaz.gmail.com> References: <20140801210441.GA29604@chaz.gmail.com> <20140803192841.064681cb@pws-pc.ntlworld.com> <20140803213803.GA5356@chaz.gmail.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sun, 3 Aug 2014 22:38:03 +0100 Stephane Chazelas wrote: > 2014-08-03 19:28:41 +0100, Peter Stephenson: > [...] > > ) > > item(tt(-s))( > > -Don't echo back characters if reading from the terminal. Currently does > > -not work with the tt(-q) option. > > +Don't echo back characters if reading from the terminal. > > ) > > item(tt(-q))( > [...] > > Thanks. > > What about using "locale yesexpr" for that BTW? Mulling it over, since read -q has a single clear historical meaning that gets a bit obscured when locales come into it, I think this might better be done by a tailorable function using read -k, as indeed the Linux manual page suggests. We could host a sample function (using =~, probably) if somebody wanted to write one. pws