commit bash-20190201 snapshot

This commit is contained in:
Chet Ramey
2019-02-04 08:55:56 -05:00
parent 8a9718cfc9
commit 38f8cb6930
4 changed files with 25 additions and 4 deletions
+15
View File
@@ -5190,3 +5190,18 @@ pathexp.c
a backslash that will trigger a call to shell_glob_filename, since
backslashes at the end of patterns (pathname components) will always
fail to match. XXX - this is provisional
lib/glob/glob.c
- glob_filename: if we have a directory name that has no unquoted
special glob chars, but has backslashes, just dequote it and return
it without going through the rest of the glob expansions. Partial
fix for issue with unreadable directories reported by
Andrew Church <achurch+bash@achurch.org>
2/2
---
lib/readline/readline.c
- readline_internal_teardown: if revert-all-at-newline is set, make
sure that the history position is at the end of the history before
calling _rl_revert_all_lines(). Fixes bug reported by
johnlinp@gmail.com and frederik@ofb.net
+2 -2
View File
@@ -64,10 +64,10 @@ INTERNAL_GLOB_PATTERN_P (pattern)
{
p++;
bsquote = 1;
continue;
}
else if (*p == L('\0'))
else /* (*p == L('\0')) */
return 0;
continue;
}
return bsquote ? 2 : 0;
+7 -1
View File
@@ -458,6 +458,7 @@ readline_internal_teardown (int eof)
{
char *temp;
HIST_ENTRY *entry;
int pos;
RL_CHECK_SIGNALS ();
@@ -477,7 +478,12 @@ readline_internal_teardown (int eof)
}
if (_rl_revert_all_at_newline)
_rl_revert_all_lines ();
{
pos = where_history ();
using_history ();
_rl_revert_all_lines ();
history_set_pos (pos);
}
/* At any rate, it is highly likely that this line has an undo list. Get
rid of it now. */
+1 -1
View File
@@ -1,4 +1,4 @@
BUILD_DIR=/usr/local/build/bash/bash-current
BUILD_DIR=/usr/local/build/chet/bash/bash-current
THIS_SH=$BUILD_DIR/bash
PATH=$PATH:$BUILD_DIR