Changeset 30a199c for patches/bash-4.2-branch_update-2.patch
- Timestamp:
- May 18, 2011, 4:53:46 PM (13 years ago)
- Branches:
- clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 1718e20
- Parents:
- bd31da6b (diff), 279277d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
patches/bash-4.2-branch_update-2.patch
rbd31da6b r30a199c 1 Submitted By: Jo e Ciccone <jciccone@gmail.com>2 Date: 04-16-20111 Submitted By: Jonathan Norman (jonathan at bluesquarelinux.co.uk) 2 Date: 2011-05-16 3 3 Initial Package Version: 4.2 4 4 Origin: Upstream 5 Upstream Status: From Upstream6 Description: Contains all upstream patches up to 4.2-0 085 Upstream Status: Applied 6 Description: Contains all upstream patches up to 4.2-010 7 7 8 diff -Naur bash-4.2.orig/builtins/fc.def bash-4.2/builtins/fc.def 9 --- bash-4.2.orig/builtins/fc.def 2010-05-30 22:25:38.000000000 +0000 10 +++ bash-4.2/builtins/fc.def 2011-05-16 23:42:00.796961011 +0000 11 @@ -304,7 +304,7 @@ 12 last_hist = i - rh - hist_last_line_added; 13 14 /* XXX */ 15 - if (saved_command_line_count > 0 && i == last_hist && hlist[last_hist] == 0) 16 + if (i == last_hist && hlist[last_hist] == 0) 17 while (last_hist >= 0 && hlist[last_hist] == 0) 18 last_hist--; 19 if (last_hist < 0) 20 @@ -475,7 +475,7 @@ 21 HIST_ENTRY **hlist; 22 { 23 int sign, n, clen, rh; 24 - register int i, j; 25 + register int i, j, last_hist; 26 register char *s; 27 28 sign = 1; 29 @@ -495,7 +495,15 @@ 30 has been enabled (interactive or not) should use it in the last_hist 31 calculation as if it were on. */ 32 rh = remember_on_history || ((subshell_environment & SUBSHELL_COMSUB) && enable_history_list); 33 - i -= rh + hist_last_line_added; 34 + last_hist = i - rh - hist_last_line_added; 35 + 36 + if (i == last_hist && hlist[last_hist] == 0) 37 + while (last_hist >= 0 && hlist[last_hist] == 0) 38 + last_hist--; 39 + if (last_hist < 0) 40 + return (-1); 41 + 42 + i = last_hist; 43 44 /* No specification defaults to most recent command. */ 45 if (command == NULL) 8 46 diff -Naur bash-4.2.orig/builtins/printf.def bash-4.2/builtins/printf.def 9 --- bash-4.2.orig/builtins/printf.def 2010-11-23 1 0:02:55.000000000 -050010 +++ bash-4.2/builtins/printf.def 2011-0 4-16 16:50:36.379215007 -040047 --- bash-4.2.orig/builtins/printf.def 2010-11-23 15:02:55.000000000 +0000 48 +++ bash-4.2/builtins/printf.def 2011-05-16 23:41:55.617535899 +0000 11 49 @@ -465,6 +465,9 @@ 12 50 secs = shell_start_time; /* roughly $SECONDS */ … … 20 58 free (timefmt); 21 59 diff -Naur bash-4.2.orig/lib/glob/gmisc.c bash-4.2/lib/glob/gmisc.c 22 --- bash-4.2.orig/lib/glob/gmisc.c 2011-02-05 16:11:17.000000000 -050023 +++ bash-4.2/lib/glob/gmisc.c 2011-0 4-16 16:50:36.371215007 -040060 --- bash-4.2.orig/lib/glob/gmisc.c 2011-02-05 21:11:17.000000000 +0000 61 +++ bash-4.2/lib/glob/gmisc.c 2011-05-16 23:41:53.037822234 +0000 24 62 @@ -77,8 +77,8 @@ 25 63 wchar_t *wpat; … … 223 261 } 224 262 diff -Naur bash-4.2.orig/lib/readline/callback.c bash-4.2/lib/readline/callback.c 225 --- bash-4.2.orig/lib/readline/callback.c 2010-06-06 1 2:18:58.000000000 -0400226 +++ bash-4.2/lib/readline/callback.c 2011-0 4-16 16:50:36.359215007 -0400263 --- bash-4.2.orig/lib/readline/callback.c 2010-06-06 16:18:58.000000000 +0000 264 +++ bash-4.2/lib/readline/callback.c 2011-05-16 23:41:51.689971838 +0000 227 265 @@ -148,6 +148,9 @@ 228 266 eof = _rl_vi_domove_callback (_rl_vimvcxt); … … 236 274 #endif 237 275 diff -Naur bash-4.2.orig/lib/readline/vi_mode.c bash-4.2/lib/readline/vi_mode.c 238 --- bash-4.2.orig/lib/readline/vi_mode.c 2010-11-2 0 19:51:39.000000000 -0500239 +++ bash-4.2/lib/readline/vi_mode.c 2011-0 4-16 16:50:36.359215007 -0400276 --- bash-4.2.orig/lib/readline/vi_mode.c 2010-11-21 00:51:39.000000000 +0000 277 +++ bash-4.2/lib/readline/vi_mode.c 2011-05-16 23:41:51.689971838 +0000 240 278 @@ -1114,7 +1114,7 @@ 241 279 rl_beg_of_line (1, c); … … 248 286 /* XXX - these need to handle rl_universal_argument bindings */ 249 287 diff -Naur bash-4.2.orig/parse.y bash-4.2/parse.y 250 --- bash-4.2.orig/parse.y 2011-01-02 15:48:11.000000000 -0500251 +++ bash-4.2/parse.y 2011-0 4-16 16:50:36.379215007 -0400288 --- bash-4.2.orig/parse.y 2011-01-02 20:48:11.000000000 +0000 289 +++ bash-4.2/parse.y 2011-05-16 23:41:55.613536343 +0000 252 290 @@ -5135,6 +5135,9 @@ 253 291 case 'A': … … 261 299 if (c == 'd') 262 300 diff -Naur bash-4.2.orig/patchlevel.h bash-4.2/patchlevel.h 263 --- bash-4.2.orig/patchlevel.h 2010-06-1 2 20:14:48.000000000 -0400264 +++ bash-4.2/patchlevel.h 2011-0 4-16 16:50:36.387215007 -0400301 --- bash-4.2.orig/patchlevel.h 2010-06-13 00:14:48.000000000 +0000 302 +++ bash-4.2/patchlevel.h 2011-05-16 23:42:02.092817179 +0000 265 303 @@ -25,6 +25,6 @@ 266 304 regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh … … 268 306 269 307 -#define PATCHLEVEL 0 270 +#define PATCHLEVEL 8308 +#define PATCHLEVEL 10 271 309 272 310 #endif /* _PATCHLEVEL_H_ */ 311 diff -Naur bash-4.2.orig/print_cmd.c bash-4.2/print_cmd.c 312 --- bash-4.2.orig/print_cmd.c 2010-05-30 22:34:08.000000000 +0000 313 +++ bash-4.2/print_cmd.c 2011-05-16 23:42:02.092817179 +0000 314 @@ -315,6 +315,7 @@ 315 cprintf ("( "); 316 skip_this_indent++; 317 make_command_string_internal (command->value.Subshell->command); 318 + PRINT_DEFERRED_HEREDOCS (""); 319 cprintf (" )"); 320 break; 321 322 @@ -592,6 +593,7 @@ 323 newline ("do\n"); 324 indentation += indentation_amount; 325 make_command_string_internal (arith_for_command->action); 326 + PRINT_DEFERRED_HEREDOCS (""); 327 semicolon (); 328 indentation -= indentation_amount; 329 newline ("done"); 330 @@ -653,6 +655,7 @@ 331 } 332 333 make_command_string_internal (group_command->command); 334 + PRINT_DEFERRED_HEREDOCS (""); 335 336 if (inside_function_def) 337 { 273 338 diff -Naur bash-4.2.orig/sig.c bash-4.2/sig.c 274 --- bash-4.2.orig/sig.c 2010-11-23 08:21:22.000000000 -0500275 +++ bash-4.2/sig.c 2011-0 4-16 16:50:36.387215007 -0400339 --- bash-4.2.orig/sig.c 2010-11-23 13:21:22.000000000 +0000 340 +++ bash-4.2/sig.c 2011-05-16 23:41:59.501104844 +0000 276 341 @@ -46,6 +46,7 @@ 277 342 … … 303 368 termsig_handler (sig); 304 369 diff -Naur bash-4.2.orig/subst.c bash-4.2/subst.c 305 --- bash-4.2.orig/subst.c 2011-01-02 16:12:51.000000000 -0500306 +++ bash-4.2/subst.c 2011-0 4-16 16:50:36.383215007 -0400370 --- bash-4.2.orig/subst.c 2011-01-02 21:12:51.000000000 +0000 371 +++ bash-4.2/subst.c 2011-05-16 23:41:58.205248678 +0000 307 372 @@ -1379,10 +1379,12 @@ 308 373 slen = strlen (string + *sindex) + *sindex; … … 349 414 else 350 415 diff -Naur bash-4.2.orig/subst.h bash-4.2/subst.h 351 --- bash-4.2.orig/subst.h 2010-12-0 2 20:21:29.000000000 -0500352 +++ bash-4.2/subst.h 2011-0 4-16 16:50:36.359215007 -0400416 --- bash-4.2.orig/subst.h 2010-12-03 01:21:29.000000000 +0000 417 +++ bash-4.2/subst.h 2011-05-16 23:41:50.378117447 +0000 353 418 @@ -56,6 +56,7 @@ 354 419 #define SX_NOLONGJMP 0x0040 /* don't longjmp on fatal error */ … … 360 425 STRING, and returns a pointer to it. */ 361 426 diff -Naur bash-4.2.orig/variables.c bash-4.2/variables.c 362 --- bash-4.2.orig/variables.c 2011-01-2 4 20:07:48.000000000 -0500363 +++ bash-4.2/variables.c 2011-0 4-16 16:50:36.379215007 -0400427 --- bash-4.2.orig/variables.c 2011-01-25 01:07:48.000000000 +0000 428 +++ bash-4.2/variables.c 2011-05-16 23:41:56.917391622 +0000 364 429 @@ -3653,6 +3653,22 @@ 365 430 return n; … … 411 476 412 477 diff -Naur bash-4.2.orig/variables.h bash-4.2/variables.h 413 --- bash-4.2.orig/variables.h 2010-12-0 2 20:22:01.000000000 -0500414 +++ bash-4.2/variables.h 2011-0 4-16 16:50:36.375215007 -0400478 --- bash-4.2.orig/variables.h 2010-12-03 01:22:01.000000000 +0000 479 +++ bash-4.2/variables.h 2011-05-16 23:41:55.613536343 +0000 415 480 @@ -313,6 +313,7 @@ 416 481
Note:
See TracChangeset
for help on using the changeset viewer.