From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19617 invoked from network); 11 Jan 2004 17:52:10 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 11 Jan 2004 17:52:10 -0000 Received: (qmail 19777 invoked by alias); 11 Jan 2004 17:52:03 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19360 Received: (qmail 19721 invoked from network); 11 Jan 2004 17:52:02 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 11 Jan 2004 17:52:02 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.11.8.53] by sunsite.dk (MessageWall 1.0.8) with SMTP; 11 Jan 2004 17:52:2 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id i0BHq0O20623 for zsh-workers@sunsite.dk; Sun, 11 Jan 2004 09:52:00 -0800 X-Authentication-Warning: candle.brasslantern.com: schaefer set sender to schaefer@closedmail.com using -f From: Bart Schaefer Message-Id: <1040111175159.ZM20622@candle.brasslantern.com> Date: Sun, 11 Jan 2004 17:51:59 +0000 X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Use of ${words[0]} in completion functions MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I just noticed that a couple of completion functions use ${words[0]} as the command name. That's a little misleading -- and maybe even a bug waiting to happen -- because $_comp_options contains NO_ksharrays, and neither of these functions resets it. Completion/Unix/Type/_perl_modules:33: local perl=${words[0]%doc} perl_modules Completion/bashcompinit:123: $OPTARG "${words[0]}" "${words[CURRENT-1]}" "${words[CURRENT-2]}"