[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash 3 and $HOME abbreviated with a tilde.
From: |
Chet Ramey |
Subject: |
Re: Bash 3 and $HOME abbreviated with a tilde. |
Date: |
Wed, 22 Jun 2005 16:36:24 -0400 |
User-agent: |
Mozilla Thunderbird 1.0.2 (Macintosh/20050317) |
J.O. Aho wrote:
>
> Got a bit irritated when updating my Gentoo boxes to use bash 3.00.16,
> the \W and \w options for the prompt now replaces the home directory
> name to tilde, I hope I'm not the only one who wants to see the home
> directory name instead of the tilde.
>
> Wouldn't it be possible to see options \U and \u (just a suggestion)
> which behaives as \W and \w used to do under 2.05.
I'd rather not do that. It's trivial to emulate the 2.05 behavior using
something like ${PWD##/*/}. It's not quite as easy to emulate the 3.0
behavior using shell expansions.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live...Laugh...Love
Chet Ramey, ITS, CWRU chet@case.edu http://tiswww.tis.case.edu/~chet/