On 1/29/14 6:53 AM, Csaba Toth wrote: > Hi, > > If you set PROMPT_DIRTRIM, in some cases strange output displayed in the > prompt. I found an issue inside the trim_pathname() function, that uses > memcpy() to copy head and tail together. That should not be used if the > memory is overlapped and memmove() shall be used instead.
Thanks for the report. This was reported and fixed in March, 2013, and the fixed version is part of the bash development git branch. http://lists.gnu.org/archive/html/bug-bash/2013-03/msg00047.html (Your patch is exactly right, by the way.) Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/