From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12977 invoked from network); 13 Jun 2001 00:19:07 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 13 Jun 2001 00:19:07 -0000 Received: (qmail 12205 invoked by alias); 13 Jun 2001 00:18:31 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14873 Received: (qmail 12190 invoked from network); 13 Jun 2001 00:18:31 -0000 From: "Bart Schaefer" Message-Id: <010612171703.ZM24869@candle.brasslantern.com> Date: Tue, 12 Jun 2001 17:17:03 -0700 In-Reply-To: <20010612153701.A20639@lizzy.bugworks.com> Comments: In reply to Jos Backus "4.0.1: menucomplete quirk leaving extra characters behind" (Jun 12, 3:37pm) References: <20010612153701.A20639@lizzy.bugworks.com> X-Mailer: Z-Mail Lite (5.0.0 30July97) To: Jos Backus , zsh-workers@sunsite.dk Subject: Re: 4.0.1: menucomplete quirk leaving extra characters behind MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jun 12, 3:37pm, Jos Backus wrote: > > Now when I hit , I see: > > traitor% \! > zsh: do you wish to see all 2188 possibilities (730 lines)? _ > > Answering ``n'' gives: > > traitor% \!_ There's a reserved word `!' that's valid in command position. It means to negate the exit status of whatever command comes next. You generally use it like this: if ! othercommand; then ...; fi So that happens to be the first item in the menu. You asked zsh not to list the rest of the menu, but you're still in menu completion, so if you start pressing TAB repeatedly, you'll cycle through the rest of the words that are valid in command position, most of which are external commands. > (Btw, on Solaris the characters are ``!='' instead.) That's what I see after pressing TAB twice; it's the next word in the menu and it's the first part of a parameter assignment to the `!' parameter. If I keep on hitting TAB I see #= and $= and *=. This is actually a bug, I guess, because those parameters are read-only and so you shouldn't be able to complete them on the left side of an assignment, but menucompletion is not itself malfunctioning. Are you sure you didn't hit TAB more than once on Solaris? -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net