From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from newton.hartwick.edu ([147.205.85.10]) by hawkwind.utcs.utoronto.ca with SMTP id <24769>; Thu, 9 Dec 1999 03:04:06 -0500 Received: from c26469-a.clnvl1.ct.home.com (147.205.108.160 [147.205.108.160]) by newton.hartwick.edu with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0) id X52J43LF; Thu, 9 Dec 1999 02:52:42 -0500 Received: by c26469-a.clnvl1.ct.home.com (sSMTP sendmail emulation); Thu, 9 Dec 1999 02:52:05 -0500 Date: Thu, 9 Dec 1999 02:52:05 -0500 From: Decklin Foster To: rc@hawkwind.utcs.toronto.edu Subject: tilde featuritis alert Message-ID: <19991209025205.B305@debian> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0i I'm sure this has come up before, but being a relative rc newbie, I really miss my '~' for home directory from bash. my question is, what exactly is the pattern matching '~' in rc *good* for? can't you just use 'switch' and end up with more readable code? couldn't we call it 'match'? is the lack of an sh-like '~' a personal preference of the author, or just not feasible to implement due to rc's eval-once semantics? I know i probably ought to be quiet and retrain my fingers, but old habits die hard. if i can't patch rc for this, how can i set up readline to get along with it? my problem is that readline will do tab completion on ~/wwwd if i have a directory in my home called wwwdocs. but it *won't* do anything with $home/wwwd, presumably since rc is not telling it what's in $home. i note that if I use bash, $HOME/wwwd magically becomes '/home/decklin/wwwdocs/'. bash must know how interact a little more closley with readline. While this sort of sets off my bloat detector, it's better than typing a ~, doing tab completion, and then going back and changing it to $home. One other thing - is there a replacement for the '~user' idiom? What's the rc way? grep through /etc/passwd? -- Decklin Written with Debian GNU/Linux - http://www.debian.org/