1 http://lists.gnu.org/archive/html/bug-bash/2009-02/msg00147.html
3 *** bash-4.0/parse.y 2009-01-08 08:29:12.000000000 -0500
4 --- bash-4.0/parse.y 2009-02-22 16:08:54.000000000 -0500
8 /* Meta-characters that can introduce a reserved word. Not perfect yet. */
9 ! if MBTEST((tflags & LEX_RESWDOK) == 0 && (tflags & LEX_CKCASE) && (tflags & LEX_INCOMMENT) == 0 && shellmeta(ch))
11 /* Add this character. */
14 /* Meta-characters that can introduce a reserved word. Not perfect yet. */
15 ! if MBTEST((tflags & LEX_PASSNEXT) == 0 && (tflags & LEX_RESWDOK) == 0 && (tflags & LEX_CKCASE) && (tflags & LEX_INCOMMENT) == 0 && shellmeta(ch))
17 /* Add this character. */
18 http://lists.gnu.org/archive/html/bug-bash/2009-02/msg00176.html
20 *** bash-4.0/builtins/exit.def 2009-01-04 14:32:22.000000000 -0500
21 --- bash-4.0/builtins/exit.def 2009-02-23 22:56:58.000000000 -0500
24 if (jobs[i] && STOPPED (i))
26 ! else if (check_jobs_at_exit && stopmsg == 0 && RUNNING (i))
30 if (jobs[i] && STOPPED (i))
32 ! else if (check_jobs_at_exit && stopmsg == 0 && jobs[i] && RUNNING (i))
35 http://bugs.gentoo.org/211947
37 fix from Takashi YOSHII: dont use target ldflags for build apps
42 CCFLAGS_FOR_BUILD = $(BASE_CCFLAGS) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD)
44 LDFLAGS = @LDFLAGS@ $(STATIC_LD) $(LOCAL_LDFLAGS) $(PROFILE_FLAGS) $(CFLAGS)
45 -LDFLAGS_FOR_BUILD = $(LDFLAGS)
46 +LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@ $(LOCAL_LDFLAGS) $(CFLAGS_FOR_BUILD)
48 INCLUDES = -I. @RL_INCLUDE@ -I$(srcdir) -I$(BASHINCDIR) -I$(LIBSRC) $(INTL_INC)
50 http://lists.gnu.org/archive/html/bug-bash/2009-02/msg00158.html
52 make `return` accept negative values again
54 hack by me (vapier@gentoo.org) ... i'm not familiar with bash source code, so
55 i imagine this isn't the best way to do it ...
57 --- bash/builtins/return.def
58 +++ bash/builtins/return.def
64 + if (list && list->word && list->word->word) {
65 + char *word = list->word->word;
68 + if (!isdigit(*word))
76 if (no_options (list))
78 list = loptend; /* skip over possible `--' */
81 return_catch_value = get_exitstat (list);
83 http://lists.gnu.org/archive/html/bug-bash/2009-02/msg00142.html
85 *** bash-4.0/pcomplete.c 2009-02-01 17:12:31.000000000 -0500
86 --- bash/pcomplete.c 2009-02-22 17:08:25.000000000 -0500
92 + save_parser_state (pps);
93 begin_unwind_frame ("gen-shell-function-matches");
94 add_unwind_protect (restore_parser_state, (char *)pps);
95 http://lists.gnu.org/archive/html/bug-bash/2009-02/msg00177.html
97 *** bash-4.0/parse.y 2009-01-08 08:29:12.000000000 -0500
98 --- bash-4.0/parse.y 2009-02-23 22:40:55.000000000 -0500
103 ! ret = (int *)xmalloc (3 * sizeof (int));
104 ret[0] = last_read_token;
105 ret[1] = token_before_that;
106 ret[2] = two_tokens_ago;
112 ! ret = (int *)xmalloc (4 * sizeof (int));
113 ret[0] = last_read_token;
114 ret[1] = token_before_that;
115 ret[2] = two_tokens_ago;
116 + ret[3] = current_token;
122 token_before_that = ts[1];
123 two_tokens_ago = ts[2];
124 + current_token = ts[3];