]> git.pld-linux.org Git - packages/bash.git/blob - bash30-005
oops
[packages/bash.git] / bash30-005
1                              BASH PATCH REPORT
2                              =================
3
4 Bash-Release: 3.0
5 Patch-ID: bash30-005
6
7 Bug-Reported-by: schwab@suse.de
8 Bug-Reference-ID: <20040801085535.E83D41DB3FFE9@sykes.suse.de>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2004-08/msg00004.html
10
11 Bug-Description:
12
13 Moving upwards in the history (with previous-history) and back again
14 clobbers the last history line.
15
16 Patch:
17
18 *** ../bash-3.0/lib/readline/misc.c     Wed Jul  7 08:56:32 2004
19 --- lib/readline/misc.c Sat Aug  7 22:38:53 2004
20 ***************
21 *** 277,286 ****
22         _rl_saved_line_for_history->data = (char *)rl_undo_list;
23       }
24 -   else if (STREQ (rl_line_buffer, _rl_saved_line_for_history->line) == 0)
25 -     {
26 -       free (_rl_saved_line_for_history->line);
27 -       _rl_saved_line_for_history->line = savestring (rl_line_buffer);
28 -       _rl_saved_line_for_history->data = (char *)rl_undo_list;        /* XXX possible memleak */
29 -     }
30   
31     return 0;
32 --- 277,280 ----
33 *** ../bash-3.0/lib/readline/vi_mode.c  Tue Jul 13 14:08:27 2004
34 --- lib/readline/vi_mode.c      Tue Aug 17 00:12:09 2004
35 ***************
36 *** 273,280 ****
37 --- 273,282 ----
38       {
39       case '?':
40 +       _rl_free_saved_history_line ();
41         rl_noninc_forward_search (count, key);
42         break;
43   
44       case '/':
45 +       _rl_free_saved_history_line ();
46         rl_noninc_reverse_search (count, key);
47         break;
48
49 *** ../bash-3.0/patchlevel.h    Wed Aug 22 08:05:39 2001
50 --- patchlevel.h        Thu Sep  2 15:04:32 2004
51 ***************
52 *** 26,30 ****
53      looks for to find the patch level (for the sccs version string). */
54   
55 ! #define PATCHLEVEL 4
56   
57   #endif /* _PATCHLEVEL_H_ */
58 --- 26,30 ----
59      looks for to find the patch level (for the sccs version string). */
60   
61 ! #define PATCHLEVEL 5
62   
63   #endif /* _PATCHLEVEL_H_ */
This page took 0.065732 seconds and 3 git commands to generate.