From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5399 invoked from network); 28 Apr 1999 16:43:47 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 28 Apr 1999 16:43:47 -0000 Received: (qmail 13915 invoked by alias); 28 Apr 1999 16:43:39 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6136 Received: (qmail 13907 invoked from network); 28 Apr 1999 16:43:37 -0000 From: "Bart Schaefer" Message-Id: <990428094331.ZM3151@candle.brasslantern.com> Date: Wed, 28 Apr 1999 09:43:30 -0700 In-Reply-To: <199904280719.JAA16812@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: Completion in braces limitation" (Apr 28, 9:19am) References: <199904280719.JAA16812@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (4.0b.820 20aug96) To: zsh-workers@sunsite.auc.dk Subject: Re: Completion in braces limitation MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 28, 9:19am, Sven Wischnowsky wrote: } Subject: Re: Completion in braces limitation } } > cd $(sw)/{ } > } > This expands $(sw) and quotes the brace. There may be a reason for doing } > this but I can't think of one. } } This is (again) intentional. To get rid of it, use complete-word } instead of expand-or-complete. Right; the "reason for it" is that you implicitly asked zsh to attempt expansion before completion. } I vaguely remember a discussion about this (several years ago), where, } if I remember correctly, most people said that one sometimes want to } complete after a parameter expansion, but almost never after a command } substitution. The problem with completing after a command substitution is that it has to actually execute the command to figure out what to complete. There's no way to predict the side effects of executing the command multiple times (at least twice -- once when completing and once when executing the whole command line) so it's better to never start down the road. Dunno if this is frequently-asked enough to be worthy of a FAQ entry ... -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com