From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17356 invoked from network); 12 Feb 2003 23:04:43 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 12 Feb 2003 23:04:43 -0000 Received: (qmail 16762 invoked by alias); 12 Feb 2003 23:03:35 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5912 Received: (qmail 16749 invoked from network); 12 Feb 2003 23:03:35 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 12 Feb 2003 23:03:35 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [62.58.69.233] by sunsite.dk (MessageWall 1.0.8) with SMTP; 12 Feb 2003 23:3:34 -0000 Received: by cherry.fruitcom.com (Postfix, from userid 1000) id 9883C57989; Wed, 12 Feb 2003 23:59:54 +0100 (CET) Date: Wed, 12 Feb 2003 23:59:54 +0100 From: Eric Smith To: Zsh Users Subject: echo-ing case insensitively Message-ID: <20030212225953.GA2479@fruitcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-outgoing: save User-Agent: Mutt/1.5.3i I do not use directories much - I prefer underscores in filenames. The following serves me well (with most of my data in a single dir): se () { if [ $2 ] then echo $1/*$2* | sed -e 's/ /\ /g' else echo *$1* | sed -e 's/ /\ /g' fi } 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 (Breaking mailing-list convention with a followup question) I want to type `draft' at the prompt and press and then get all the options above to show as possible expansions. How? Thanks. -- Eric Smith