Changeset 76b06f6 for patches/bash-4.2-branch_update-6.patch
- Timestamp:
- Sep 24, 2013, 11:53:17 AM (11 years ago)
- Children:
- 2e9ccbe
- Parents:
- 111b12a
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
patches/bash-4.2-branch_update-6.patch
r111b12a r76b06f6 1 1 Submitted By: William Harrington (kb0iic at gmail dot com) 2 Date: 05-08-20132 Date: 11-04-2012 3 3 Initial Package Version: 4.2 4 4 Origin: Upstream 5 5 Upstream Status: Applied 6 Description: Contains all upstream patches up to 4.2-0 456 Description: Contains all upstream patches up to 4.2-039 7 7 8 8 diff -Naur bash-4.2.orig/assoc.c bash-4.2/assoc.c 9 9 --- bash-4.2.orig/assoc.c 2009-08-06 00:19:40.000000000 +0000 10 +++ bash-4.2/assoc.c 201 3-03-12 21:55:21.530771482+000010 +++ bash-4.2/assoc.c 2012-11-04 22:45:00.778727333 +0000 11 11 @@ -77,6 +77,11 @@ 12 12 b = hash_search (key, hash, HASH_CREATE); … … 23 23 diff -Naur bash-4.2.orig/bashline.c bash-4.2/bashline.c 24 24 --- bash-4.2.orig/bashline.c 2011-01-16 20:32:47.000000000 +0000 25 +++ bash-4.2/bashline.c 201 3-03-12 21:55:21.646771944+000025 +++ bash-4.2/bashline.c 2012-11-04 22:45:00.848727141 +0000 26 26 @@ -121,6 +121,9 @@ 27 27 static int filename_completion_ignore __P((char **)); … … 309 309 diff -Naur bash-4.2.orig/bashline.h bash-4.2/bashline.h 310 310 --- bash-4.2.orig/bashline.h 2009-01-04 19:32:22.000000000 +0000 311 +++ bash-4.2/bashline.h 201 3-03-12 21:55:21.646771944+0000311 +++ bash-4.2/bashline.h 2012-11-04 22:45:00.848727141 +0000 312 312 @@ -33,10 +33,15 @@ 313 313 extern void bashline_reinitialize __P((void)); … … 328 328 diff -Naur bash-4.2.orig/builtins/declare.def bash-4.2/builtins/declare.def 329 329 --- bash-4.2.orig/builtins/declare.def 2010-05-30 22:25:21.000000000 +0000 330 +++ bash-4.2/builtins/declare.def 201 3-03-12 21:55:21.587771709+0000330 +++ bash-4.2/builtins/declare.def 2012-11-04 22:45:00.808727251 +0000 331 331 @@ -513,6 +513,11 @@ 332 332 *subscript_start = '['; /* ] */ … … 343 343 diff -Naur bash-4.2.orig/builtins/fc.def bash-4.2/builtins/fc.def 344 344 --- bash-4.2.orig/builtins/fc.def 2010-05-30 22:25:38.000000000 +0000 345 +++ bash-4.2/builtins/fc.def 201 3-03-12 21:55:21.521771446+0000345 +++ bash-4.2/builtins/fc.def 2012-11-04 22:45:00.775394009 +0000 346 346 @@ -304,7 +304,7 @@ 347 347 last_hist = i - rh - hist_last_line_added; … … 381 381 diff -Naur bash-4.2.orig/builtins/mapfile.def bash-4.2/builtins/mapfile.def 382 382 --- bash-4.2.orig/builtins/mapfile.def 2010-05-30 02:09:47.000000000 +0000 383 +++ bash-4.2/builtins/mapfile.def 201 3-03-12 21:55:21.675772060+0000383 +++ bash-4.2/builtins/mapfile.def 2012-11-04 22:45:01.008726689 +0000 384 384 @@ -195,13 +195,9 @@ 385 385 /* Reset the buffer for bash own stream */ … … 412 412 diff -Naur bash-4.2.orig/builtins/printf.def bash-4.2/builtins/printf.def 413 413 --- bash-4.2.orig/builtins/printf.def 2010-11-23 15:02:55.000000000 +0000 414 +++ bash-4.2/builtins/printf.def 201 3-03-12 21:55:21.615771821+0000414 +++ bash-4.2/builtins/printf.def 2012-11-04 22:45:00.822060547 +0000 415 415 @@ -255,6 +255,8 @@ 416 416 #endif … … 434 434 diff -Naur bash-4.2.orig/builtins/read.def bash-4.2/builtins/read.def 435 435 --- bash-4.2.orig/builtins/read.def 2011-01-04 16:43:36.000000000 +0000 436 +++ bash-4.2/builtins/read.def 2013-03-12 21:55:21.734772295 +0000 437 @@ -385,10 +385,20 @@ 438 { 439 /* Tricky. The top of the unwind-protect stack is the free of 440 input_string. We want to run all the rest and use input_string, 441 - so we have to remove it from the stack. */ 442 - remove_unwind_protect (); 443 - run_unwind_frame ("read_builtin"); 444 + so we have to save input_string temporarily, run the unwind- 445 + protects, then restore input_string so we can use it later. */ 446 + 447 input_string[i] = '\0'; /* make sure it's terminated */ 448 + if (i == 0) 449 + { 450 + t = (char *)xmalloc (1); 451 + t[0] = 0; 452 + } 453 + else 454 + t = savestring (input_string); 455 + 456 + run_unwind_frame ("read_builtin"); 457 + input_string = t; 458 retval = 128+SIGALRM; 459 goto assign_vars; 460 } 461 @@ -642,6 +652,12 @@ 436 +++ bash-4.2/builtins/read.def 2012-11-04 22:45:01.032059959 +0000 437 @@ -642,6 +642,12 @@ 462 438 xfree (input_string); 463 439 return EXECUTION_FAILURE; /* readonly or noassign */ … … 472 448 473 449 alist = list_string (input_string, ifs_chars, 0); 474 @@ -731,7 +7 47,7 @@450 @@ -731,7 +737,7 @@ 475 451 xfree (t1); 476 452 } … … 481 457 else 482 458 { 483 @@ -785,14 + 801,14 @@459 @@ -785,14 +791,14 @@ 484 460 } 485 461 #endif … … 500 476 diff -Naur bash-4.2.orig/builtins/shopt.def bash-4.2/builtins/shopt.def 501 477 --- bash-4.2.orig/builtins/shopt.def 2010-07-03 02:42:44.000000000 +0000 502 +++ bash-4.2/builtins/shopt.def 201 3-03-12 21:55:21.647771948+0000478 +++ bash-4.2/builtins/shopt.def 2012-11-04 22:45:00.848727141 +0000 503 479 @@ -61,6 +61,10 @@ 504 480 #include "common.h" … … 560 536 diff -Naur bash-4.2.orig/command.h bash-4.2/command.h 561 537 --- bash-4.2.orig/command.h 2010-08-02 23:36:51.000000000 +0000 562 +++ bash-4.2/command.h 201 3-03-12 21:55:21.619771836+0000538 +++ bash-4.2/command.h 2012-11-04 22:45:00.825393871 +0000 563 539 @@ -97,6 +97,7 @@ 564 540 #define W_HASCTLESC 0x200000 /* word contains literal CTLESC characters */ … … 571 547 diff -Naur bash-4.2.orig/doc/bash.1 bash-4.2/doc/bash.1 572 548 --- bash-4.2.orig/doc/bash.1 2011-01-16 20:31:39.000000000 +0000 573 +++ bash-4.2/doc/bash.1 201 3-03-12 21:55:21.650771960+0000549 +++ bash-4.2/doc/bash.1 2012-11-04 22:45:00.855393789 +0000 574 550 @@ -8948,6 +8948,16 @@ 575 551 quoted. This is the behavior of posix mode through version 4.1. … … 591 567 diff -Naur bash-4.2.orig/doc/bashref.texi bash-4.2/doc/bashref.texi 592 568 --- bash-4.2.orig/doc/bashref.texi 2011-01-16 20:31:57.000000000 +0000 593 +++ bash-4.2/doc/bashref.texi 201 3-03-12 21:55:21.653771972+0000569 +++ bash-4.2/doc/bashref.texi 2012-11-04 22:45:00.858727113 +0000 594 570 @@ -4535,6 +4535,13 @@ 595 571 quoted. This is the behavior of @sc{posix} mode through version 4.1. … … 608 584 diff -Naur bash-4.2.orig/error.c bash-4.2/error.c 609 585 --- bash-4.2.orig/error.c 2009-08-22 02:31:31.000000000 +0000 610 +++ bash-4.2/error.c 201 3-03-12 21:55:21.610771801+0000586 +++ bash-4.2/error.c 2012-11-04 22:45:00.822060547 +0000 611 587 @@ -200,7 +200,11 @@ 612 588 … … 624 600 diff -Naur bash-4.2.orig/execute_cmd.c bash-4.2/execute_cmd.c 625 601 --- bash-4.2.orig/execute_cmd.c 2011-02-09 22:32:25.000000000 +0000 626 +++ bash-4.2/execute_cmd.c 201 3-03-12 21:55:21.627771868+0000602 +++ bash-4.2/execute_cmd.c 2012-11-04 22:45:00.835393844 +0000 627 603 @@ -2196,6 +2196,7 @@ 628 604 if (ignore_return && cmd) … … 724 700 diff -Naur bash-4.2.orig/expr.c bash-4.2/expr.c 725 701 --- bash-4.2.orig/expr.c 2010-12-21 16:12:13.000000000 +0000 726 +++ bash-4.2/expr.c 201 3-03-12 21:55:21.706772183+0000702 +++ bash-4.2/expr.c 2012-11-04 22:45:01.038726607 +0000 727 703 @@ -476,19 +476,23 @@ 728 704 … … 793 769 diff -Naur bash-4.2.orig/lib/glob/glob.c bash-4.2/lib/glob/glob.c 794 770 --- bash-4.2.orig/lib/glob/glob.c 2009-11-14 23:39:30.000000000 +0000 795 +++ bash-4.2/lib/glob/glob.c 201 3-03-12 21:55:21.658771992+0000771 +++ bash-4.2/lib/glob/glob.c 2012-11-04 22:45:00.862060437 +0000 796 772 @@ -200,8 +200,11 @@ 797 773 wchar_t *pat_wc, *dn_wc; … … 832 808 diff -Naur bash-4.2.orig/lib/glob/gmisc.c bash-4.2/lib/glob/gmisc.c 833 809 --- bash-4.2.orig/lib/glob/gmisc.c 2011-02-05 21:11:17.000000000 +0000 834 +++ bash-4.2/lib/glob/gmisc.c 201 3-03-12 21:55:21.465771223+0000810 +++ bash-4.2/lib/glob/gmisc.c 2012-11-04 22:45:00.748727415 +0000 835 811 @@ -77,8 +77,8 @@ 836 812 wchar_t *wpat; … … 1035 1011 diff -Naur bash-4.2.orig/lib/glob/xmbsrtowcs.c bash-4.2/lib/glob/xmbsrtowcs.c 1036 1012 --- bash-4.2.orig/lib/glob/xmbsrtowcs.c 2010-05-30 22:36:27.000000000 +0000 1037 +++ bash-4.2/lib/glob/xmbsrtowcs.c 201 3-03-12 21:55:21.736772303+00001013 +++ bash-4.2/lib/glob/xmbsrtowcs.c 2012-11-04 22:45:00.862060437 +0000 1038 1014 @@ -35,6 +35,8 @@ 1039 1015 … … 1084 1060 wstmp = (wchar_t *) realloc (wsbuf, wsbuf_size * sizeof (wchar_t)); 1085 1061 if (wstmp == NULL) 1086 @@ -199,10 +213, 30@@1062 @@ -199,10 +213,18 @@ 1087 1063 } 1088 1064 … … 1094 1070 1095 1071 - wcnum += wcslength; 1096 + if (n == 0 && p == 0)1097 + {1098 + wsbuf[wcnum] = L'\0';1099 + break;1100 + }1101 +1102 1072 + /* Compensate for taking single byte on wcs conversion failure above. */ 1103 1073 + if (wcslength == 1 && (n == 0 || n == (size_t)-1)) … … 1105 1075 + state = tmp_state; 1106 1076 + p = tmp_p; 1107 + wsbuf[wcnum] = *p; 1108 + if (*p == 0) 1109 + break; 1110 + else 1111 + { 1112 + wcnum++; p++; 1113 + } 1077 + wsbuf[wcnum++] = *p++; 1114 1078 + } 1115 1079 + else … … 1118 1082 if (mbsinit (&state) && (p != NULL) && (*p == '\\')) 1119 1083 { 1120 @@ -230,8 +2 64,6 @@1084 @@ -230,8 +252,6 @@ 1121 1085 If conversion is failed, the return value is (size_t)-1 and the values 1122 1086 of DESTP and INDICESP are NULL. */ … … 1129 1093 diff -Naur bash-4.2.orig/lib/readline/callback.c bash-4.2/lib/readline/callback.c 1130 1094 --- bash-4.2.orig/lib/readline/callback.c 2010-06-06 16:18:58.000000000 +0000 1131 +++ bash-4.2/lib/readline/callback.c 201 3-03-12 21:55:21.461771207 +00001095 +++ bash-4.2/lib/readline/callback.c 2012-11-04 22:45:00.718727497 +0000 1132 1096 @@ -148,6 +148,9 @@ 1133 1097 eof = _rl_vi_domove_callback (_rl_vimvcxt); … … 1142 1106 diff -Naur bash-4.2.orig/lib/readline/input.c bash-4.2/lib/readline/input.c 1143 1107 --- bash-4.2.orig/lib/readline/input.c 2010-05-30 22:33:01.000000000 +0000 1144 +++ bash-4.2/lib/readline/input.c 201 3-03-12 21:55:21.661772004+00001108 +++ bash-4.2/lib/readline/input.c 2012-11-04 22:45:00.982060097 +0000 1145 1109 @@ -409,7 +409,7 @@ 1146 1110 int … … 1176 1140 diff -Naur bash-4.2.orig/lib/readline/vi_mode.c bash-4.2/lib/readline/vi_mode.c 1177 1141 --- bash-4.2.orig/lib/readline/vi_mode.c 2010-11-21 00:51:39.000000000 +0000 1178 +++ bash-4.2/lib/readline/vi_mode.c 201 3-03-12 21:55:21.698772151 +00001142 +++ bash-4.2/lib/readline/vi_mode.c 2012-11-04 22:45:01.025393311 +0000 1179 1143 @@ -1114,7 +1114,7 @@ 1180 1144 rl_beg_of_line (1, c); … … 1250 1214 diff -Naur bash-4.2.orig/lib/sh/eaccess.c bash-4.2/lib/sh/eaccess.c 1251 1215 --- bash-4.2.orig/lib/sh/eaccess.c 2011-01-09 01:50:10.000000000 +0000 1252 +++ bash-4.2/lib/sh/eaccess.c 201 3-03-12 21:55:21.668772032+00001216 +++ bash-4.2/lib/sh/eaccess.c 2012-11-04 22:45:00.995393393 +0000 1253 1217 @@ -82,6 +82,8 @@ 1254 1218 const char *path; … … 1271 1235 diff -Naur bash-4.2.orig/lib/sh/zread.c bash-4.2/lib/sh/zread.c 1272 1236 --- bash-4.2.orig/lib/sh/zread.c 2009-03-02 13:54:45.000000000 +0000 1273 +++ bash-4.2/lib/sh/zread.c 201 3-03-12 21:55:21.601771765+00001237 +++ bash-4.2/lib/sh/zread.c 2012-11-04 22:45:00.815393899 +0000 1274 1238 @@ -160,14 +160,13 @@ 1275 1239 zsyncfd (fd) … … 1291 1255 diff -Naur bash-4.2.orig/parse.y bash-4.2/parse.y 1292 1256 --- bash-4.2.orig/parse.y 2011-01-02 20:48:11.000000000 +0000 1293 +++ bash-4.2/parse.y 2013-03-12 21:55:21.731772283 +0000 1294 @@ -2393,6 +2393,7 @@ 1295 is the last character). If it's not the last character, we need 1296 to consume the quoted newline and move to the next character in 1297 the expansion. */ 1298 +#if defined (ALIAS) 1299 if (expanding_alias () && shell_input_line[shell_input_line_index+1] == '\0') 1300 { 1301 uc = 0; 1302 @@ -2403,7 +2404,8 @@ 1303 shell_input_line_index++; /* skip newline */ 1304 goto next_alias_char; /* and get next character */ 1305 } 1306 - else 1307 + else 1308 +#endif 1309 goto restart_read; 1310 } 1311 1312 @@ -2499,7 +2501,7 @@ 1257 +++ bash-4.2/parse.y 2012-11-04 22:45:01.005393365 +0000 1258 @@ -2499,7 +2499,7 @@ 1313 1259 We do this only if it is time to do so. Notice that only here 1314 1260 is the mail alarm reset; nothing takes place in check_mail () … … 1319 1265 check_mail (); 1320 1266 reset_mail_timer (); 1321 @@ -3842,6 +384 4,7 @@1267 @@ -3842,6 +3842,7 @@ 1322 1268 int flags; 1323 1269 { … … 1327 1273 char *ret, *s, *ep, *ostring; 1328 1274 1329 @@ -3849,10 +385 2,12 @@1275 @@ -3849,10 +3850,12 @@ 1330 1276 orig_ind = *indp; 1331 1277 ostring = string; … … 1340 1286 /*(*/ 1341 1287 parser_state |= PST_CMDSUBST|PST_EOFTOKEN; /* allow instant ')' */ /*(*/ 1342 @@ -3861,6 +386 6,8 @@1288 @@ -3861,6 +3864,8 @@ 1343 1289 1344 1290 restore_parser_state (&ps); … … 1349 1295 token_to_read = 0; 1350 1296 1351 @@ -4895,6 +490 2,9 @@1297 @@ -4895,6 +4900,9 @@ 1352 1298 return (current_command_line_count == 2 ? "\n" : ""); 1353 1299 } … … 1359 1305 /*(*/ 1360 1306 /* If we just read `()', assume it's a function definition, and don't 1361 @@ -5135,6 +514 5,9 @@1307 @@ -5135,6 +5143,9 @@ 1362 1308 case 'A': 1363 1309 /* Make the current time/date into a string. */ … … 1369 1315 1370 1316 if (c == 'd') 1371 @@ -5905,6 +591 8,12 @@1317 @@ -5905,6 +5916,12 @@ 1372 1318 ps->expand_aliases = expand_aliases; 1373 1319 ps->echo_input_at_read = echo_input_at_read; … … 1382 1328 } 1383 1329 1384 @@ -5946,6 +596 5,42 @@1330 @@ -5946,6 +5963,42 @@ 1385 1331 1386 1332 expand_aliases = ps->expand_aliases; … … 1427 1373 diff -Naur bash-4.2.orig/patchlevel.h bash-4.2/patchlevel.h 1428 1374 --- bash-4.2.orig/patchlevel.h 2010-06-13 00:14:48.000000000 +0000 1429 +++ bash-4.2/patchlevel.h 201 3-03-12 21:55:21.740772319+00001375 +++ bash-4.2/patchlevel.h 2012-11-04 22:45:01.038726607 +0000 1430 1376 @@ -25,6 +25,6 @@ 1431 1377 regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh … … 1433 1379 1434 1380 -#define PATCHLEVEL 0 1435 +#define PATCHLEVEL 451381 +#define PATCHLEVEL 39 1436 1382 1437 1383 #endif /* _PATCHLEVEL_H_ */ 1438 1384 diff -Naur bash-4.2.orig/pathexp.c bash-4.2/pathexp.c 1439 1385 --- bash-4.2.orig/pathexp.c 2010-08-14 03:21:57.000000000 +0000 1440 +++ bash-4.2/pathexp.c 201 3-03-12 21:55:21.550771561+00001386 +++ bash-4.2/pathexp.c 2012-11-04 22:45:00.792060629 +0000 1441 1387 @@ -196,7 +196,7 @@ 1442 1388 { … … 1450 1396 diff -Naur bash-4.2.orig/print_cmd.c bash-4.2/print_cmd.c 1451 1397 --- bash-4.2.orig/print_cmd.c 2010-05-30 22:34:08.000000000 +0000 1452 +++ bash-4.2/print_cmd.c 201 3-03-12 21:55:21.526771466+00001398 +++ bash-4.2/print_cmd.c 2012-11-04 22:45:00.778727333 +0000 1453 1399 @@ -315,6 +315,7 @@ 1454 1400 cprintf ("( "); … … 1475 1421 if (inside_function_def) 1476 1422 { 1477 diff -Naur bash-4.2.orig/redir.c bash-4.2/redir.c1478 --- bash-4.2.orig/redir.c 2011-01-02 21:00:31.000000000 +00001479 +++ bash-4.2/redir.c 2013-03-12 21:55:21.740772319 +00001480 @@ -1007,6 +1007,16 @@1481 close (redirector);1482 REDIRECTION_ERROR (r, errno, -1);1483 }1484 + if ((flags & RX_UNDOABLE) && (ri == r_move_input || ri == r_move_output))1485 + {1486 + /* r_move_input and r_move_output add an additional close()1487 + that needs to be undone */1488 + if (fcntl (redirector, F_GETFD, 0) != -1)1489 + {1490 + r = add_undo_redirect (redir_fd, r_close_this, -1);1491 + REDIRECTION_ERROR (r, errno, -1);1492 + }1493 + }1494 #if defined (BUFFERED_INPUT)1495 check_bash_input (redirector);1496 #endif1497 @@ -1091,10 +1101,12 @@1498 1499 #if defined (BUFFERED_INPUT)1500 check_bash_input (redirector);1501 - close_buffered_fd (redirector);1502 + r = close_buffered_fd (redirector);1503 #else /* !BUFFERED_INPUT */1504 - close (redirector);1505 + r = close (redirector);1506 #endif /* !BUFFERED_INPUT */1507 + if (r < 0 && (flags & RX_INTERNAL) && (errno == EIO || errno == ENOSPC))1508 + REDIRECTION_ERROR (r, errno, -1);1509 }1510 break;1511 1512 1423 diff -Naur bash-4.2.orig/shell.h bash-4.2/shell.h 1513 1424 --- bash-4.2.orig/shell.h 2011-01-07 03:16:55.000000000 +0000 1514 +++ bash-4.2/shell.h 201 3-03-12 21:55:21.537771510+00001425 +++ bash-4.2/shell.h 2012-11-04 22:45:00.785393981 +0000 1515 1426 @@ -136,6 +136,9 @@ 1516 1427 int parser_state; … … 1542 1453 diff -Naur bash-4.2.orig/sig.c bash-4.2/sig.c 1543 1454 --- bash-4.2.orig/sig.c 2010-11-23 13:21:22.000000000 +0000 1544 +++ bash-4.2/sig.c 201 3-03-12 21:55:21.516771426+00001455 +++ bash-4.2/sig.c 2012-11-04 22:45:00.772060685 +0000 1545 1456 @@ -46,6 +46,7 @@ 1546 1457 … … 1573 1484 diff -Naur bash-4.2.orig/subst.c bash-4.2/subst.c 1574 1485 --- bash-4.2.orig/subst.c 2011-01-02 21:12:51.000000000 +0000 1575 +++ bash-4.2/subst.c 201 3-03-12 21:55:21.726772263 +00001486 +++ bash-4.2/subst.c 2012-11-04 22:45:01.018726663 +0000 1576 1487 @@ -366,6 +366,11 @@ 1577 1488 f &= ~W_ASSNBLTIN; … … 1650 1561 expand_no_split_dollar_star = 0; 1651 1562 1652 @@ -5113,6 +5124,10 @@ 1653 dev_fd_list[parent_pipe_fd] = 0; 1654 #endif /* HAVE_DEV_FD */ 1655 1656 + /* subshells shouldn't have this flag, which controls using the temporary 1657 + environment for variable lookups. */ 1658 + expanding_redir = 0; 1659 + 1660 result = parse_and_execute (string, "process substitution", (SEVAL_NONINT|SEVAL_NOHIST)); 1661 1662 #if !defined (HAVE_DEV_FD) 1663 @@ -5798,6 +5813,16 @@ 1563 @@ -5798,6 +5809,16 @@ 1664 1564 is the only expansion that creates more than one word. */ 1665 1565 if (qdollaratp && ((hasdol && quoted) || l->next)) … … 1678 1578 } 1679 1579 else if ((quoted & (Q_HERE_DOCUMENT|Q_DOUBLE_QUOTES)) && hasdol) 1680 @@ -7176,7 +7 201,7 @@1580 @@ -7176,7 +7197,7 @@ 1681 1581 { 1682 1582 /* Extract the contents of the ${ ... } expansion … … 1687 1587 sindex++; 1688 1588 else 1689 @@ -7268,6 +72 93,7 @@1589 @@ -7268,6 +7289,7 @@ 1690 1590 default: 1691 1591 case '\0': … … 1695 1595 FREE (value); 1696 1596 FREE (temp); 1697 @@ -7900,7 +792 6,7 @@1597 @@ -7900,7 +7922,7 @@ 1698 1598 1699 1599 /* State flags */ … … 1704 1604 int pflags; /* flags passed to param_expand */ 1705 1605 1706 @@ -8105,13 +81 31,14 @@1606 @@ -8105,13 +8127,14 @@ 1707 1607 if (expanded_something) 1708 1608 *expanded_something = 1; … … 1721 1621 if (tword == &expand_wdesc_error || tword == &expand_wdesc_fatal) 1722 1622 { 1723 @@ -8129,6 +815 6,14 @@1623 @@ -8129,6 +8152,14 @@ 1724 1624 temp = tword->word; 1725 1625 dispose_word_desc (tword); … … 1736 1636 break; 1737 1637 1738 @@ -8244,9 +827 9,10 @@1638 @@ -8244,9 +8275,10 @@ 1739 1639 1740 1640 temp = (char *)NULL; … … 1749 1649 if (list == &expand_word_error || list == &expand_word_fatal) 1750 1650 { 1751 @@ -8533,7 +856 9,7 @@1651 @@ -8533,7 +8565,7 @@ 1752 1652 tword->flags |= W_NOEXPAND; /* XXX */ 1753 1653 if (quoted & (Q_HERE_DOCUMENT|Q_DOUBLE_QUOTES)) … … 1758 1658 list = make_word_list (tword, (WORD_LIST *)NULL); 1759 1659 } 1760 @@ -8564,7 +8 600,7 @@1660 @@ -8564,7 +8596,7 @@ 1761 1661 tword->flags |= W_NOGLOB; 1762 1662 if (word->flags & W_NOEXPAND) … … 1769 1669 diff -Naur bash-4.2.orig/subst.h bash-4.2/subst.h 1770 1670 --- bash-4.2.orig/subst.h 2010-12-03 01:21:29.000000000 +0000 1771 +++ bash-4.2/subst.h 201 3-03-12 21:55:21.450771163 +00001671 +++ bash-4.2/subst.h 2012-11-04 22:45:00.715394173 +0000 1772 1672 @@ -56,6 +56,7 @@ 1773 1673 #define SX_NOLONGJMP 0x0040 /* don't longjmp on fatal error */ … … 1780 1680 diff -Naur bash-4.2.orig/support/shobj-conf bash-4.2/support/shobj-conf 1781 1681 --- bash-4.2.orig/support/shobj-conf 2009-10-28 13:20:21.000000000 +0000 1782 +++ bash-4.2/support/shobj-conf 201 3-03-12 21:55:21.592771729+00001682 +++ bash-4.2/support/shobj-conf 2012-11-04 22:45:00.808727251 +0000 1783 1683 @@ -157,7 +157,7 @@ 1784 1684 ;; … … 1801 1701 diff -Naur bash-4.2.orig/tests/shopt.right bash-4.2/tests/shopt.right 1802 1702 --- bash-4.2.orig/tests/shopt.right 2010-07-03 03:36:30.000000000 +0000 1803 +++ bash-4.2/tests/shopt.right 201 3-03-12 21:55:21.653771972+00001703 +++ bash-4.2/tests/shopt.right 2012-11-04 22:45:00.858727113 +0000 1804 1704 @@ -12,6 +12,7 @@ 1805 1705 shopt -u compat32 … … 1828 1728 diff -Naur bash-4.2.orig/variables.c bash-4.2/variables.c 1829 1729 --- bash-4.2.orig/variables.c 2011-01-25 01:07:48.000000000 +0000 1830 +++ bash-4.2/variables.c 201 3-03-12 21:55:21.499771358+00001730 +++ bash-4.2/variables.c 2012-11-04 22:45:00.765394035 +0000 1831 1731 @@ -3653,6 +3653,22 @@ 1832 1732 return n; … … 1879 1779 diff -Naur bash-4.2.orig/variables.h bash-4.2/variables.h 1880 1780 --- bash-4.2.orig/variables.h 2010-12-03 01:22:01.000000000 +0000 1881 +++ bash-4.2/variables.h 201 3-03-12 21:55:21.486771306+00001781 +++ bash-4.2/variables.h 2012-11-04 22:45:00.755394063 +0000 1882 1782 @@ -313,6 +313,7 @@ 1883 1783
Note:
See TracChangeset
for help on using the changeset viewer.