From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 506 invoked from network); 13 Feb 2003 05:00:01 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 13 Feb 2003 05:00:01 -0000 Received: (qmail 10799 invoked by alias); 13 Feb 2003 04:59:37 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5913 Received: (qmail 10791 invoked from network); 13 Feb 2003 04:59:36 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 13 Feb 2003 04:59:36 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.46.181.248] by sunsite.dk (MessageWall 1.0.8) with SMTP; 13 Feb 2003 4:59:35 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id h1D4xbf06784 for zsh-users@sunsite.dk; Wed, 12 Feb 2003 20:59:37 -0800 From: "Bart Schaefer" Message-Id: <1030213045937.ZM6783@candle.brasslantern.com> Date: Thu, 13 Feb 2003 04:59:37 +0000 In-Reply-To: <20030212225953.GA2479@fruitcom.com> Comments: In reply to Eric Smith "echo-ing case insensitively" (Feb 12, 11:59pm) References: <20030212225953.GA2479@fruitcom.com> X-Mailer: Z-Mail (5.0.0 30July97) To: Zsh Users Subject: Re: echo-ing case insensitively MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Feb 12, 11:59pm, Eric Smith wrote: > > I do not use directories much - I prefer underscores in filenames. I suspect I know what you mean, but it's really not clear what the second clause has to do with the first. > What I want to do though is give this function an argument like > say - `draft' and I want to see: > today_draft > Draft.mail > some_other_DRAFT se () { setopt localoptions extendedglob noshwordsplit if [[ -n $2 ]] then print -l (#i)$1/*$2* else print -l (#i)*$1* fi } > I want to type `draft' at the prompt and press and then > get all the options above to show as possible expansions. > > How? Which of compctl or compsys are you using?