From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16115 invoked from network); 7 Oct 1998 18:46:03 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 7 Oct 1998 18:46:03 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id OAA22368; Wed, 7 Oct 1998 14:33:45 -0400 (EDT) Resent-Date: Wed, 7 Oct 1998 14:33:37 -0400 (EDT) From: "Bart Schaefer" Message-Id: <981007113639.ZM15544@candle.brasslantern.com> Date: Wed, 7 Oct 1998 11:36:39 -0700 In-Reply-To: Comments: In reply to Greg Badros "Re: Null tilde expansions?" (Oct 7, 10:50am) References: <9810071511.AA34477@ibmth.df.unipi.it> <981006205428.ZM10148@candle.brasslantern.com> <981007082641.ZM12497@candle.brasslantern.com> <981007094733.ZM14156@candle.brasslantern.com> X-Mailer: Z-Mail (4.0b.820 20aug96) To: Greg Badros , zsh-users@math.gatech.edu Subject: Re: Null tilde expansions? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"qjPES1.0.0T5.0Gx6s"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1844 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Oct 7, 10:50am, Greg Badros wrote: } Subject: Re: Null tilde expansions? } } > Yes, you're right. Or just ${dirs##~*}, in which the ~ is not expanded } > in the first place. } } Why does the ~ not get expanded? This doesn't work in 3.1.4 or 3.0.x } for me. I need to escape the ~ with a backslash here, too. I dunno, but: aztec[26] gunk=(schaefer glorb bobg flarn fox) aztec[27] dirs=(~$^gunk) zsh: no such user or named directory: glorb aztec[28] setopt nonomatch aztec[29] dirs=(~$^gunk) aztec[30] echo ${dirs##~*} /home/schaefer /home/bobg /home/fox aztec[31] echo $dirs /home/schaefer ~glorb /home/bobg ~flarn /home/fox aztec[32] echo $ZSH_VERSION 3.0.5-extended (3.0.5-extended is 3.0.5 plus my patch collection, available on ftp.brasslantern.com.) -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com