Re: $HOME does not get abbreviated in prompt \w output when there is a trailing slash

2014-05-29 Thread Libor Pechacek
On Fri 23-05-14 06:13:13, Eric Blake wrote: > On 05/23/2014 02:32 AM, Libor Pechacek wrote: > > > +++ b/general.c > > @@ -699,7 +699,10 @@ polite_directory_format (name) > >int l; > > > >home = get_string_value ("HOME"); > > - l = home ? strlen (home) : 0; > > + > > + /* remove trailin

Re: $HOME does not get abbreviated in prompt \w output when there is a trailing slash

2014-05-23 Thread Eric Blake
On 05/23/2014 02:32 AM, Libor Pechacek wrote: > +++ b/general.c > @@ -699,7 +699,10 @@ polite_directory_format (name) >int l; > >home = get_string_value ("HOME"); > - l = home ? strlen (home) : 0; > + > + /* remove trailing slashes from $HOME before comparisons */ > + for (l = home ?

Re: $HOME does not get abbreviated in prompt \w output when there is a trailing slash

2014-05-23 Thread Libor Pechacek
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 sla

Re: $HOME does not get abbreviated in prompt \w output when there is a trailing slash

2014-05-16 Thread Libor Pechacek
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 end

Re: $HOME does not get abbreviated in prompt \w output when there is a trailing slash

2014-05-16 Thread Chet Ramey
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/ar

$HOME does not get abbreviated in prompt \w output when there is a trailing slash

2014-05-16 Thread Libor Pechacek
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc -I/home/abuild/rpmbuild/BUILD/bash-4.2 -L/home/abuild/rpmbuild/BUILD/bash-4.2/../readline-6.2 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -D