commit bash-20040707 snapshot

This commit is contained in:
Chet Ramey
2011-12-03 12:59:20 -05:00
parent ba6f94861c
commit 3ede1caab6
5 changed files with 42 additions and 2 deletions
+22
View File
@@ -1,3 +1,25 @@
This document details the changes between this version, bash-3.0-release,
and the previous version, bash-3.0-rc1.
1. Changes to Bash
a. Fixed a boundary overrun that could cause segmentation faults when the
completion code hands an incomplete construct to the word expansion
functions.
b. Changed posix mode behavior so that an error in a variable assignment
preceding a special builtin causes a non-interactive shell to exit.
c. Change the directory expansion portion of the completion code to not
expand embedded command substitutions if the directory name appears in
the file system.
2. Changes to Readline
a. Fixed a problem with readline saving the contents of the current line
before beginning a non-interactive search.
------------------------------------------------------------------------------
This document details the changes between this version, bash-3.0-rc1,
and the previous version, bash-3.0-beta1.
+8
View File
@@ -9604,3 +9604,11 @@ bashline.c
if the filename appears to have been completed from the file
system rather than typed in by the user. Bug reported by Tim
Waugh <twaugh@redhat.com>
7/7
---
lib/readline/misc.c
- if _rl_maybe_save_line is being asked to save a line other than
what's already saved, free up the current saved line and save the
current contents of rl_line_buffer. Bug reported by
llattanzi@apple.com
+2 -2
View File
@@ -22,10 +22,10 @@ dnl Process this file with autoconf to produce a configure script.
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
AC_REVISION([for Bash 3.0, version 3.164, from autoconf version] AC_ACVERSION)dnl
AC_REVISION([for Bash 3.0, version 3.165, from autoconf version] AC_ACVERSION)dnl
define(bashvers, 3.0)
define(relstatus, rc1)
define(relstatus, release)
AC_INIT(bash, bashvers-relstatus, bug-bash@gnu.org)
+8
View File
@@ -276,6 +276,13 @@ rl_maybe_save_line ()
_rl_saved_line_for_history->line = savestring (rl_line_buffer);
_rl_saved_line_for_history->data = (char *)rl_undo_list;
}
else if (STREQ (rl_line_buffer, _rl_saved_line_for_history->line) == 0)
{
free (_rl_saved_line_for_history->line);
_rl_saved_line_for_history->line = savestring (rl_line_buffer);
_rl_saved_line_for_history->data = (char *)rl_undo_list; /* XXX possible memleak */
}
return 0;
}
@@ -439,6 +446,7 @@ rl_get_previous_history (count, key)
rl_replace_from_history (temp, 0);
_rl_history_set_point ();
}
return 0;
}
+2
View File
@@ -1,5 +1,7 @@
echo "warning: some of these tests may fail if job control has not been compiled" >&2
echo "warning: into the shell" >&2
echo "warning: there may be a message regarding a cat process dying due to a" >&2
echo "warning: SIGUP. Please disregard." >&2
${THIS_SH} ./jobs.tests > /tmp/xx 2>&1
diff /tmp/xx jobs.right && rm -f /tmp/xx