From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11461 invoked from network); 23 Jan 1999 06:28:06 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 23 Jan 1999 06:28:06 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id BAA13677; Sat, 23 Jan 1999 01:27:19 -0500 (EST) Resent-Date: Sat, 23 Jan 1999 01:27:19 -0500 (EST) From: "Bart Schaefer" Message-Id: <990122222648.ZM29009@candle.brasslantern.com> Date: Fri, 22 Jan 1999 22:26:48 -0800 In-Reply-To: <3.0.6.16.19990122181128.2ebf7418@mail.u-net.com> Comments: In reply to Oliver Kiddle "Re: PATCH: completion with redirections" (Jan 22, 6:11pm) References: <3.0.6.16.19990122181128.2ebf7418@mail.u-net.com> X-Mailer: Z-Mail (4.0b.820 20aug96) To: zsh-workers@math.gatech.edu Subject: Re: PATCH: completion with redirections MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"I9PNa2.0.eL3.7lMgs"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4956 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Jan 22, 6:11pm, Oliver Kiddle wrote: } Subject: Re: PATCH: completion with redirections } } I would want the command-line 'giftopnm < ' to only complete with .gif files. } Is it already possible to do this? Unfortunately I think completion considers a redirction operator and the one word immediately following it to be independent of the current command. For example, they don't show up in the array assigned by "read -Ac" in a compctl -K function. So at the moment you get file completion after any redirection, and that's it. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com