From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6553 invoked from network); 13 Feb 2003 14:51:43 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 13 Feb 2003 14:51:43 -0000 Received: (qmail 2390 invoked by alias); 13 Feb 2003 14:51:34 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 18237 Received: (qmail 2383 invoked from network); 13 Feb 2003 14:51:33 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 13 Feb 2003 14:51:33 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [193.109.254.147] by sunsite.dk (MessageWall 1.0.8) with SMTP; 13 Feb 2003 14:51:32 -0000 X-VirusChecked: Checked X-Env-Sender: kiddleo@logica.com X-Msg-Ref: server-18.tower-27.messagelabs.com!1045147872!2838 Received: (qmail 32100 invoked from network); 13 Feb 2003 14:51:12 -0000 Received: from iris.logica.co.uk (158.234.9.163) by server-18.tower-27.messagelabs.com with SMTP; 13 Feb 2003 14:51:12 -0000 Received: from finches.logica.co.uk ([158.234.142.11]) by iris.logica.co.uk (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id OAA19578 for ; Thu, 13 Feb 2003 14:51:29 GMT X-Authentication-Warning: iris.logica.co.uk: Host [158.234.142.11] claimed to be finches.logica.co.uk Received: from finches.logica.co.uk (localhost [127.0.0.1]) by finches.logica.co.uk (8.11.6/8.11.6/SuSE Linux 0.5) with ESMTP id h1DEseU29501 for ; Thu, 13 Feb 2003 15:54:41 +0100 From: Oliver Kiddle To: Zsh workers Subject: PATCH: update _read for read -t Date: Thu, 13 Feb 2003 15:54:40 +0100 Message-ID: <29499.1045148080@finches.logica.co.uk> Sender: kiddleo@logica.com This updates _read to offer the read -t option and handle the optional arguments for -k and -t. Oliver Index: Completion/Zsh/Command/_read =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Zsh/Command/_read,v retrieving revision 1.3 diff -u -r1.3 _read --- Completion/Zsh/Command/_read 22 Nov 2002 11:50:00 -0000 1.3 +++ Completion/Zsh/Command/_read 13 Feb 2003 14:40:30 -0000 @@ -9,8 +9,9 @@ _arguments -s -A "-*" -S \ '-r[raw mode]' \ '(-p -k -s -u -z)-q[read y or n character from terminal]' \ - '(-q)-k+[specify number of characters to read]:number of characters' \ - '(-q -s -u -p)-z[read entry from editor buffer stack]' \ + '(-q)-k+[specify number of characters to read]:: :_guard "[0-9]#" "number of characters"' \ + '(-q -z)-t+[test if input is available before reading]:: :_guard "[0-9.]#" "timeout (seconds)"' \ + '(-q -s -u -p -t)-z[read entry from editor buffer stack]' \ '(-E)-e[input read is echoed and not assigned]' \ '(-e)-E[input read is echoed]' \ '(-q -z -p)-s[suppress terminal echoing]' \ This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.