bug-bash
[Top][All Lists]
Advanced

[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


From: Libor Pechacek
Subject: Re: $HOME does not get abbreviated in prompt \w output when there is a trailing slash
Date: Fri, 16 May 2014 15:25:29 +0200
User-agent: Mutt/1.5.17 (2007-11-01)

Hi Chet,

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:
> 
> http://lists.gnu.org/archive/html/bug-bash/2012-03/msg00055.html
> 
> 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.

Libor
-- 
Libor Pechacek
Project Manager SUSE Labs, Prague



reply via email to

[Prev in Thread] Current Thread [Next in Thread]