-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 7/10/15 4:15 PM, Hanno Böck wrote:
> On Fri, 10 Jul 2015 16:00:25 -0400
> Chet Ramey <[email protected]> wrote:
>
>> That helps, but they are strings, so can you print the string
>> values? I'm interested in reproducing this instead of just guessing
>> and not being able to fix it at an appropriately high level. Thanks.
>
> pathname /
> x */
> temp /
Perfect, thanks. Try the attached patch.
Chet
- --
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iEYEARECAAYFAlWgLBUACgkQu1hp8GTqdKv/0wCbBMH1bbwy9lP72OuGGX8vaUvq
PSYAniQu+16YP6AZv5sDuhU9fbfQISAI
=gqWW
-----END PGP SIGNATURE-----
*** ../bash-4.4-alpha/lib/readline/complete.c 2015-01-14 15:27:35.000000000 -0500
--- lib/readline/complete.c 2015-07-10 16:30:45.000000000 -0400
***************
*** 727,730 ****
--- 727,732 ----
if (temp == 0 || *temp == '\0')
return (pathname);
+ else if (temp[1] == 0 && temp == pathname)
+ return (pathname);
/* If the basename is NULL, we might have a pathname like '/usr/src/'.
Look for a previous slash and, if one is found, return the portion