[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: $HOME does not get abbreviated in prompt \w output when there is a t
Re: $HOME does not get abbreviated in prompt \w output when there is a trailing slash
Fri, 16 May 2014 15:25:29 +0200
On Fri 16-05-14 09:13:34, Chet Ramey wrote:
> On 5/16/14, 5:22 AM, Libor Pechacek wrote:
> > Bash Version: 4.2
> > Patch Level: 46
> > Release Status: release
> > Description:
> > Bash prompt always shows full path in prompt instead of tilde
> > abbreviation when $HOME ends with slash.
> This came up in March, 2012:
> My opinion that this is not a bug in bash hasn't changed. There are a
> number of easy ways to remove this trailing slash.
Agree. On the other hand, passwd(5) does not fobid the trailing slash. That
said I think that either bash should tolerate the trailing slash - will likely
be easy as you mentioned above - or the limitation should be documented in bash
manual so that no more people burn their time on this unexpected behavior.
Project Manager SUSE Labs, Prague