zsh-users
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@brasslantern.com>
To: Greg Badros <gjb@cs.washington.edu>, zsh-users@math.gatech.edu
Subject: Re: Null tilde expansions?
Date: Wed, 7 Oct 1998 11:36:39 -0700	[thread overview]
Message-ID: <981007113639.ZM15544@candle.brasslantern.com> (raw)
In-Reply-To: <qrrn278uuqh.fsf@fielder.cs.washington.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


  reply	other threads:[~1998-10-07 18:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-06 18:16 Greg Badros
1998-10-07  1:13 ` Sweth Chandramouli
1998-10-07  3:54 ` Bart Schaefer
1998-10-07 15:00   ` Greg Badros
1998-10-07 15:11     ` Peter Stephenson
1998-10-07 15:26     ` Bart Schaefer
1998-10-07 15:41       ` Greg Badros
1998-10-07 16:47         ` Bart Schaefer
1998-10-07 17:50           ` Greg Badros
1998-10-07 18:36             ` Bart Schaefer [this message]
1998-10-08  7:29               ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=981007113639.ZM15544@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=gjb@cs.washington.edu \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).