commit bash-20060330 snapshot

This commit is contained in:
Chet Ramey
2011-12-03 22:46:45 -05:00
parent 591dd2e5f8
commit 4c4d2fbfda
19 changed files with 1029 additions and 36 deletions
+5 -1
View File
@@ -256,7 +256,11 @@ read_history_range (filename, from, to)
for (line_end = line_start; line_end < bufend; line_end++)
if (*line_end == '\n')
{
*line_end = '\0';
/* Change to allow Windows-like \r\n end of line delimiter. */
if (line_end > line_start && line_end[-1] == '\r')
line_end[-1] = '\0';
else
*line_end = '\0';
if (*line_start)
{