From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7891 invoked from network); 18 Feb 2008 02:17:15 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 18 Feb 2008 02:17:15 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 19762 invoked from network); 18 Feb 2008 02:17:11 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Feb 2008 02:17:11 -0000 Received: (qmail 24553 invoked by alias); 18 Feb 2008 02:17:08 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24568 Received: (qmail 24539 invoked from network); 18 Feb 2008 02:17:08 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 18 Feb 2008 02:17:08 -0000 Received: from vms173001pub.verizon.net (vms173001pub.verizon.net [206.46.173.1]) by bifrost.dotsrc.org (Postfix) with ESMTP id 10C138026E0B for ; Mon, 18 Feb 2008 03:17:04 +0100 (CET) Received: from torch.brasslantern.com ([71.121.18.67]) by vms173001.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JWE00GXWWGIB222@vms173001.mailsrvcs.net> for zsh-workers@sunsite.dk; Sun, 17 Feb 2008 20:05:07 -0600 (CST) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id m1I2GtF6010189 for ; Sun, 17 Feb 2008 18:16:56 -0800 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id m1I2Gtnt010188 for zsh-workers@sunsite.dk; Sun, 17 Feb 2008 18:16:55 -0800 Date: Sun, 17 Feb 2008 18:16:55 -0800 From: Bart Schaefer Subject: Re: read -s doesn't work with -t? In-reply-to: <20080217172225.1d8a8e4e@pws-pc> To: "Zsh Hackers' List" Message-id: <080217181655.ZM10187@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <237967ef0802151327q1c6d3a19oa67a977b82c52f67@mail.gmail.com> <080215191216.ZM29994@torch.brasslantern.com> <237967ef0802152333g7f759674r806f61f9f76f86f2@mail.gmail.com> <237967ef0802152350i1fec3369oba9268400a209b2e@mail.gmail.com> <080216093755.ZM17001@torch.brasslantern.com> <20080217172225.1d8a8e4e@pws-pc> Comments: In reply to Peter Stephenson "Re: read -s doesn't work with -t?" (Feb 17, 5:22pm) X-Virus-Scanned: ClamAV 0.91.2/5855/Sun Feb 17 23:36:38 2008 on bifrost X-Virus-Status: Clean On Feb 17, 5:22pm, Peter Stephenson wrote: } } To be honest, I can't really follow all the ins and outs and if your } patch works (checking -k in combination with other options is probably } the key) it's probably good enough and we can see if problems turn up as } time passes. Does it even make sense to use -d and -k at the same time? I know it doesn't throw an error to use both (perhaps it should) but the loop for -k doesn't recognize delimiters (or backslashes -- perhaps the doc should say that -k implies -r ...?). In any case I've tested this (use of "-rk" apparently redundant): read -st 2 -rk 3 esc$'?\e['"${seq}"t And these: read -srd $'\e' IFS=';' read -Arsd t All appear to work with the patch from users/12600, on RHEL4 linux. So, I'll go ahead and commit. } It would be nice to have tests but they're particularly difficult to } write for this. They'd probably have to use zpty and operate along the lines of the completion tests.