From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12553 invoked from network); 8 Oct 1998 07:46:22 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 8 Oct 1998 07:46:22 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id DAA07021; Thu, 8 Oct 1998 03:39:05 -0400 (EDT) Resent-Date: Thu, 8 Oct 1998 03:38:54 -0400 (EDT) Message-Id: <9810080729.AA21255@ibmth.df.unipi.it> To: Greg Badros , zsh-users@math.gatech.edu Subject: Re: Null tilde expansions? In-Reply-To: ""Bart Schaefer""'s message of "Wed, 07 Oct 1998 11:36:39 DFT." <981007113639.ZM15544@candle.brasslantern.com> Date: Thu, 08 Oct 1998 09:29:29 +0200 From: Peter Stephenson Resent-Message-ID: <"Sc9V22.0.Gj1.Em67s"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1845 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. % echo $dirs /home/user2/pws ~foobar % unsetopt extendedglob % echo ${dirs##~*} /home/user2/pws % setopt extendedglob % echo ${dirs##~*} /home/user2/pws ~foobar -- Peter Stephenson Tel: +39 050 844536 WWW: http://www.ifh.de/~pws/ Dipartimento di Fisica, Via Buonarotti 2, 56100 Pisa, Italy