| cvpcs | 772f20a | 2010-06-02 11:02:31 -0500 | [diff] [blame] | 1 | 7/27/2004 |
| 2 | --------- |
| 3 | |
| 4 | [bash-3.0 released] |
| 5 | |
| 6 | 7/28 |
| 7 | ---- |
| 8 | array.c |
| 9 | - in array_insert(), make sure the value to be added is non-NULL before |
| 10 | calling savestring() on it |
| 11 | |
| 12 | builtins/reserved.def |
| 13 | - fix description of `CDPATH' |
| 14 | |
| 15 | lib/readline/display.c |
| 16 | - when expanding a prompt that spans multiple lines with embedded |
| 17 | newlines, set prompt_physical_chars from the portion after the |
| 18 | final newline, not the preceding portion. Bug reported by |
| 19 | "Ralf S. Engelschall" <rse@engelschall.com> |
| 20 | |
| 21 | make_cmd.c |
| 22 | - explicitly declare `lineno' in function prologue for make_case_command |
| 23 | |
| 24 | builtins/evalfile.c |
| 25 | - include `trap.h' for declaration for run_return_trap |
| 26 | |
| 27 | bashline.c |
| 28 | - fix a `return' without a value in enable_hostname_completion |
| 29 | |
| 30 | general.c |
| 31 | - include test.h for extern declaration for test_eaccess |
| 32 | |
| 33 | externs.h |
| 34 | - add declaration for zcatfd |
| 35 | |
| 36 | tests/{history,histexp}.tests |
| 37 | - unset HISTFILESIZE to avoid problems if a value of 0 is inherited |
| 38 | from the environment |
| 39 | |
| 40 | 7/30 |
| 41 | ---- |
| 42 | bashline.c |
| 43 | - small changes to glob_expand_word to perform tilde expansion before |
| 44 | attempting globbing |
| 45 | |
| 46 | builtins/Makefile.in |
| 47 | - fix the install-help target to not cd into the `helpfiles' |
| 48 | subdirectory, so a value of $INSTALL_DATA containing a relative |
| 49 | pathname (e.g., .././support/install.sh) remains valid |
| 50 | |
| 51 | 7/31 |
| 52 | ---- |
| 53 | subst.c |
| 54 | - new function, mbstrlen(s), returns length of a multibyte character |
| 55 | string |
| 56 | |
| 57 | include/shmbutil.h |
| 58 | - new macro, MB_STRLEN(s), calls mbstrlen or STRLEN as appropriate |
| 59 | |
| 60 | builtins/trap.def |
| 61 | - small change so that a first argument that's a valid signal number |
| 62 | (digits only -- no symbolic names) will be treated as a signal and |
| 63 | reverted back to the original handling disposition. Fixes debian |
| 64 | complaints |
| 65 | |
| 66 | subst.c |
| 67 | - call MB_STRLEN instead of STRLEN where appropriate in |
| 68 | parameter_brace_expand_length to handle multibyte characters properly |
| 69 | - call MB_STRLEN instead of strlen in verify_substring_values so that |
| 70 | negative substrings of strings with multibyte chars work properly |
| 71 | |
| 72 | 8/1 |
| 73 | --- |
| 74 | jobs.c |
| 75 | - describe_pid needs to write to stderr, not stdout (POSIX) |
| 76 | - start_job, since it's only used by builtins (fg/bg), needs to write |
| 77 | its output to stdout, not stderr (POSIX) |
| 78 | |
| 79 | sig.c |
| 80 | - add an `orig_flags' member to struct terminating_signal so the |
| 81 | original signal handling flags (SA_RESTART, etc.) can be preserved |
| 82 | on POSIX systems |
| 83 | - make sure to preserve the signal flags state in |
| 84 | initialize_terminating_signals and reset them for child processes |
| 85 | in reset_terminating_signals |
| 86 | |
| 87 | builtins/fc.def |
| 88 | - fixed an off-by-one error that caused `fc -l' to list one too many |
| 89 | history entries |
| 90 | - in posix mode, `fc' should not list any indication as to whether or |
| 91 | not history lines have been modified (POSIX) |
| 92 | - when in posix mode, the default editor for `fc' should be `ed' (POSIX) |
| 93 | |
| 94 | doc/bashref.texi |
| 95 | - updated the description of `trap' behavior when given a first |
| 96 | argument that is a valid signal number |
| 97 | - noted that `fc -l' won't indicate whether a history entry has been |
| 98 | modified if the shell is in posix mode |
| 99 | |
| 100 | builtins/command.def |
| 101 | - fixed bug: `command -v' is supposed to be silent if a command is not |
| 102 | found |
| 103 | |
| 104 | builtins/hash.def |
| 105 | - `hash' should print its `hash table empty' message to stderr |
| 106 | |
| 107 | lib/readline/misc.c |
| 108 | - back out 7/7 change to _rl_maybe_save_line; it breaks emacs-mode ^P |
| 109 | |
| 110 | general.c |
| 111 | - changed base_pathname so that it will return reasonable results for |
| 112 | non-absolute pathnames -- this is what is intended by all of its |
| 113 | callers |
| 114 | |
| 115 | arrayfunc.c |
| 116 | - fix array_variable_part to return NULL if it finds an invisible |
| 117 | variable in the hash table. Fixes seg fault caused by referring to |
| 118 | unset local variable using array notation |
| 119 | |
| 120 | {locale,variables}.c |
| 121 | - support LC_TIME as a special locale variable so HISTTIMEFORMAT tracks |
| 122 | the current locale |
| 123 | |
| 124 | 8/2 |
| 125 | --- |
| 126 | variables.c |
| 127 | - fixed small memory leak in makunbound() when a local array variable |
| 128 | is unset. Fix from William Park |
| 129 | |
| 130 | lib/readline/display.c |
| 131 | - fixed a problem when computing the number of invisible characters on |
| 132 | the first line of a prompt whose length exceeds the screen width |
| 133 | (should only happen when invisible characters occur after the |
| 134 | line wrap). Bug reported by agriffis@gentoo.org |
| 135 | |
| 136 | builtins/command.def |
| 137 | - `command -V' passes a new flag, CDESC_ABSPATH, which means to convert |
| 138 | to an absolute path |
| 139 | |
| 140 | builtins/type.def |
| 141 | - in posix mode, `type' and `command -v/-V' should not report |
| 142 | non-executable files, even if the execution code will attempt to |
| 143 | run them. Other posix shells do this |
| 144 | |
| 145 | doc/bashref.texi |
| 146 | - add note to POSIX Mode section describing behavior of type and command |
| 147 | when finding a non-executable file |
| 148 | |
| 149 | execute_cmd.c |
| 150 | - force extended_glob to 1 before calling binary_test in |
| 151 | execute_cond_node so that the right extended pattern matching gets |
| 152 | performed |
| 153 | |
| 154 | 8/3 |
| 155 | --- |
| 156 | braces.c |
| 157 | - make sure lhs[0] and rhs[0] are cast to `unsigned char' so chars |
| 158 | with values > 128 are handled correctly |
| 159 | |
| 160 | builtins/printf.def |
| 161 | - change bexpand() and printstr() to handle strings with a leading |
| 162 | '\0' whose length is non-zero, since that's valid input for the |
| 163 | `%b' format specifier |
| 164 | |
| 165 | subst.c |
| 166 | - fix a couple of instances of find_variable that didn't check the |
| 167 | result for an invisible variable |
| 168 | |
| 169 | variables.c |
| 170 | - BASH_ARGC, BASH_ARGV, BASH_SOURCE, BASH_LINENO no longer created as |
| 171 | invisible vars |
| 172 | |
| 173 | pcomplete.c |
| 174 | - make sure COMP_WORDS is not invisible when bind_comp_words returns |
| 175 | - ditto for COMPREPLY in gen_shell_function_matches |
| 176 | |
| 177 | 8/4 |
| 178 | --- |
| 179 | braces.c |
| 180 | - fix problem where ${ was ignored but did not increment the open |
| 181 | brace count. Bug reported by Tim Waugh <twaugh@redhat.com> |
| 182 | |
| 183 | variables.c |
| 184 | - if make_local_variable finds a variable in the correct context in |
| 185 | the right variable scope, make sure it's not invisible before |
| 186 | returning it |
| 187 | |
| 188 | 8/5 |
| 189 | --- |
| 190 | builtins/trap.def |
| 191 | - fixed usage message to show `action' as not optional, though it |
| 192 | actually is when not in posix mode (for a single argument) |
| 193 | |
| 194 | 8/7 |
| 195 | --- |
| 196 | configure.in |
| 197 | - kfreebsd-gnu has had its sbrk() problems fixed, and no longer needs |
| 198 | to be configured --without-gnu-malloc |
| 199 | |
| 200 | lib/readline/vi_mode.c |
| 201 | - in rl_vi_search, free any saved history line before starting the |
| 202 | search, so failure leaves you at that line, not the last line in |
| 203 | the history (assuming the current line is not the last history line). |
| 204 | Fix from llattanzi@apple.com to replace fix of 7/7 |
| 205 | |
| 206 | 8/9 |
| 207 | --- |
| 208 | support/Makefile.in |
| 209 | - renamed `mostly-clean' target to `mostlyclean' |
| 210 | |
| 211 | 8/11 |
| 212 | ---- |
| 213 | lib/readline/vi_mode.c |
| 214 | - make same change for EOL in multibyte character case of |
| 215 | rl_vi_change_char |
| 216 | |
| 217 | 8/12 |
| 218 | ---- |
| 219 | subst.c |
| 220 | - in verify_substring_values, fix off-by-one error checking bounds of |
| 221 | `offset', esp. in array values (e.g., getting the highest element |
| 222 | of an array) |
| 223 | |
| 224 | 8/16 |
| 225 | ---- |
| 226 | aclocal.m4 |
| 227 | - change BASH_CHECK_DEV_FD to make sure that file descriptors > 2 are |
| 228 | accessible via /dev/fd, unlike FreeBSD 5.x |
| 229 | |
| 230 | lib/sh/strftime.c |
| 231 | - make sure `zone' is initialized with gettimeofday before it is used |
| 232 | - work around HPUX lack of `altzone' and differing definitions of |
| 233 | `timezone' |
| 234 | |
| 235 | lib/malloc/malloc.c |
| 236 | - internal_memalign and memalign now take a `size_t' as their first |
| 237 | argument, which seems to be the prevailing standard |
| 238 | |
| 239 | lib/malloc/{malloc.c,shmalloc.h} |
| 240 | - change sh_memalign to take a `size_t' as its first argument |
| 241 | |
| 242 | builtins/echo.def |
| 243 | - if posixly_correct and xpg_echo are both set, don't try to interpret |
| 244 | any arguments at all, as POSIX/XOPEN requires (fix inspired by Paul |
| 245 | Eggert) |
| 246 | |
| 247 | doc/bashref.texi |
| 248 | - amend description of bash posix mode to include new echo behavior |
| 249 | |
| 250 | builtins/fg_bg.def |
| 251 | - allow bg to take multiple job arguments, as posix seems to specify, |
| 252 | placing them all in the background, returning the status of the last |
| 253 | one as the status of `bg' |
| 254 | |
| 255 | lib/readline/vi_mode |
| 256 | - fix _rl_vi_change_mbchar_case (multibyte-char version of `~' |
| 257 | command) to have the right behavior at EOL -- handle case where vi |
| 258 | mode backs up at the end of the line |
| 259 | |
| 260 | 8/18 |
| 261 | ---- |
| 262 | array.c |
| 263 | - check for an empty array in array_rshift before shifting elements |
| 264 | and adjusting max_index |
| 265 | - check for null array in array_subrange |
| 266 | |
| 267 | jobs.c |
| 268 | - fix raw_job_exit_status to not ignore exit status of the last |
| 269 | process in the pipeline when `set -o pipefail' is enabled |
| 270 | |
| 271 | 8/19 |
| 272 | ---- |
| 273 | lib/readline/mbutil.c |
| 274 | - make sure _rl_find_next_mbchar_internal has a valid multibyte |
| 275 | character before it checks whether or not it's a zero-width |
| 276 | wide character and adjusts point accordingly |
| 277 | |
| 278 | 8/24 |
| 279 | ---- |
| 280 | bashline.c |
| 281 | - new function, bash_directory_expansion, duplicates the expansions |
| 282 | performed on the directory name by rl_filename_completion_function |
| 283 | - call bash_directory_expansion in command_word_completion_function |
| 284 | if we decide we're doing tilde expansion (and any other |
| 285 | canonicalization) on the directory name being completed |
| 286 | |
| 287 | 8/25 |
| 288 | ---- |
| 289 | configure.in |
| 290 | - use new-style AC_CHECK_HEADER to check for sys/ptem.h (which requires |
| 291 | sys/stream.h). The correct checks are in the code, but autoconf |
| 292 | complains if sys/stream.h is not included, rather than simply |
| 293 | checking for the header's presence |
| 294 | |
| 295 | 8/26 |
| 296 | ---- |
| 297 | builtins/hash.def |
| 298 | - fix a bug that prevented `hash -d' from working right (as soon as |
| 299 | hash removed a command from the table, the bug caused it to be added |
| 300 | right back) |
| 301 | |
| 302 | 8/27 |
| 303 | ---- |
| 304 | doc/{bash.1,bashref.texi} |
| 305 | - explicitly note that conditional primaries that operate on files |
| 306 | operate on the targets of symbolic links rather than the links |
| 307 | themselves |
| 308 | |
| 309 | 8/30 |
| 310 | ---- |
| 311 | lib/readline/display.c |
| 312 | - fix multibyte calculation of `physchars' in prompt expansion, to |
| 313 | handle double-width multibyte characters correctly |
| 314 | - changes to rl_redisplay to handle prompts longer than the screenwidth |
| 315 | that might contain double-width multibyte characters. Fixes from |
| 316 | Tomohiro Kubota |
| 317 | |
| 318 | 9/6 |
| 319 | --- |
| 320 | subst.c |
| 321 | - change word_list_split to avoid really bad behavior caused by calling |
| 322 | list_append for each split word -- as the list gets long, you have |
| 323 | to traverse it every time. Keep a pointer to the end of the list and |
| 324 | and just tack onto it |
| 325 | |
| 326 | 9/8 |
| 327 | --- |
| 328 | lib/readline/complete.c |
| 329 | - change fnprint to calculate the displayed width of a filename in |
| 330 | the same way as fnwidth |
| 331 | |
| 332 | subst.c |
| 333 | - in verify_substring_values, when expanding ${array[@]:offset}, make |
| 334 | sure negative offsets count from one greater than the array's |
| 335 | maximum index so things like ${x[@}: -1} work to give the last element |
| 336 | (requires fixing array tests) |
| 337 | |
| 338 | builtins/common.c |
| 339 | - new error function, sh_wrerror(), for builtins to call when a write |
| 340 | error occurs |
| 341 | |
| 342 | builtins/common.h |
| 343 | - extern declaration for sh_wrerror() |
| 344 | |
| 345 | builtins/cd.def |
| 346 | - change builtin_error call to use sh_wrerror() |
| 347 | |
| 348 | builtins/echo.def |
| 349 | - report write errors with sh_wrerror() instead of just returning |
| 350 | failure |
| 351 | |
| 352 | builtins/printf.def |
| 353 | - change printstr to return failure (-1) or success (0) indication |
| 354 | rather than void |
| 355 | - report write errors when printstr() fails, return failure |
| 356 | - if any of the PF/printf calls fail, report write error and return |
| 357 | failure |
| 358 | |
| 359 | execute_cmd.c |
| 360 | - change execute_in_subshell so the subshell command inherits the |
| 361 | command timing flags from the enclosing COMMAND * |
| 362 | |
| 363 | 9/11 |
| 364 | ---- |
| 365 | [prayers for the victims of 9/11/2001] |
| 366 | |
| 367 | lib/sh/strnlen.c |
| 368 | - new file, implementation of GNU libc extension function strnlen |
| 369 | |
| 370 | lib/sh/Makefile.in, {config.h,configure,Makefile}.in, MANIFEST |
| 371 | - changes for strnlen |
| 372 | |
| 373 | configure.in |
| 374 | - version changed to 3.1-devel |
| 375 | |
| 376 | doc/bash.1, lib/readline/doc/rluser.texi |
| 377 | - added description of `-o plusdirs' to complete/compgen (thanks, |
| 378 | Arnold) |
| 379 | |
| 380 | parse.y |
| 381 | - new parser_state flag, PST_ASSIGNOK, if set indicates we're parsing |
| 382 | arguments to a builtin that accepts assignment statement arguments |
| 383 | - turn on PST_ASSIGNOK in read_token_word when appropriate |
| 384 | - turn off PST_ASSIGNOK in read_token when appropriate |
| 385 | - don't attempt to parse a compound assignment specially unless we're |
| 386 | in a position where an assignment statement is acceptable, or |
| 387 | PST_ASSIGNOK is set |
| 388 | |
| 389 | 9/13 |
| 390 | ---- |
| 391 | variables.c |
| 392 | - make BASH_ARGC, BASH_ARGV, BASH_LINENO, and BASH_SOURCE |
| 393 | non-unsettable, since the shell uses those values internally |
| 394 | |
| 395 | expr.c |
| 396 | - make exponentiation right-associative, as is apparently correct |
| 397 | |
| 398 | 9/16 |
| 399 | ---- |
| 400 | arrayfunc.c |
| 401 | - make sure convert_var_to_array marks the environment as needing |
| 402 | recreation if the converted variable was exported |
| 403 | |
| 404 | 9/17 |
| 405 | ---- |
| 406 | braces.c |
| 407 | - mark ${ as introducing an additional level of braces only if it's |
| 408 | not in a quoted string -- quoted strings are handled before brace |
| 409 | matching is done |
| 410 | |
| 411 | parse.y |
| 412 | - fixed an obscure problem in history_delimiting_chars where the `in' |
| 413 | in a case statement could have a semicolon added after it, if the |
| 414 | `case word' was on a previous line |
| 415 | |
| 416 | support/config.guess |
| 417 | - support for newest versions of tandem non-stop kernel |
| 418 | |
| 419 | lib/readline/display.c |
| 420 | - in compute_lcd_of_matches, explicitly cast `text' to `char *' before |
| 421 | passing it to rl_filename_dequoting_function |
| 422 | |
| 423 | lib/readline/terminal.c |
| 424 | - bind the key sequence sent by the keypad `delete' key to delete-char |
| 425 | (same as ^D in emacs mode) |
| 426 | |
| 427 | builtins/ulimit.def |
| 428 | - in print_all_limits, don't print anything if get_limit returns |
| 429 | -1/EINVAL, indicating that the kernel doesn't support that particular |
| 430 | limit |
| 431 | - add -i (max number of pending signals), -q (max size of posix msg |
| 432 | queues), -x (max number of file locks) for systems (Linux) that |
| 433 | support them |
| 434 | |
| 435 | doc/{bash.1,bashref.texi} |
| 436 | - fix description of correspondence between FUNCNAME, BASH_LINENO, |
| 437 | and BASH_SOURCE indices in description of BASH_LINENO |
| 438 | |
| 439 | 9/18 |
| 440 | ---- |
| 441 | lib/sh/shquote.c |
| 442 | - don't quote CTLESC and CTLNUL with CTLESC in sh_backslash_quote, as |
| 443 | long as the resultant string never gets sent to the word expansion |
| 444 | functions without going through the shell parser |
| 445 | |
| 446 | externs.h |
| 447 | - add extern declarations for strnlen and strpbkrk from lib/sh |
| 448 | |
| 449 | subst.[ch] |
| 450 | - changes to handle case where IFS consists of multibyte characters. |
| 451 | Changed: string_extract_verbatim, split_at_delims, |
| 452 | string_list_dollar_star, string_list_dollar_at, list_string, |
| 453 | get_word_from_string, setifs |
| 454 | |
| 455 | 9/19 |
| 456 | ---- |
| 457 | mailcheck.c |
| 458 | - change file_mod_date_changed to reset the cached mail file data if |
| 459 | the file size drops to zero |
| 460 | |
| 461 | lib/readline/complete.c |
| 462 | - change append_to_match so that a non-zero value for |
| 463 | rl_completion_suppress_append will cause no `/' to be appended to a |
| 464 | directory name |
| 465 | |
| 466 | bashline.c |
| 467 | - experimental change to suppress appending a slash for a completed |
| 468 | filename that is found in PATH as well as a directory in the current |
| 469 | directory under certain circumstances: a single instance found in |
| 470 | $PATH when `.' is not in $PATH, and multiple instances found in the |
| 471 | $PATH, even when `.' is in the $PATH |
| 472 | |
| 473 | 9/24 |
| 474 | ---- |
| 475 | command.h |
| 476 | - new word flag: W_ASSIGNRHS, means word is rhs of assignment statement |
| 477 | - new word flag: W_NOTILDE, means word is not to be tilde expanded |
| 478 | - new word flag (internal): W_ITILDE, means the next character is a |
| 479 | tilde that should be expanded |
| 480 | |
| 481 | general.c |
| 482 | - new set of tilde suffixes for use when parsing the RHS of an |
| 483 | assignment statement and =~ should not be subject to tilde expansion |
| 484 | - if ASSIGN_P argument to bash_tilde_expand is 2, use tilde prefixes |
| 485 | for parsing RHS of assignment statement |
| 486 | |
| 487 | general.[ch] |
| 488 | - new function bash_tilde_find_word, drop-in replacement for |
| 489 | tilde_find_word |
| 490 | |
| 491 | subst.c |
| 492 | - call bash_tilde_expand with secord argument of 2 when expanding rhs |
| 493 | of an assignment statement, so tildes after second and subsequent |
| 494 | `=' in an assignment are not expanded |
| 495 | - new function, expand_string_assignment, to expand the rhs of an |
| 496 | assignment statement |
| 497 | - add `~' to EXP_CHAR, the characters that will cause the word |
| 498 | expansion functions to be called |
| 499 | - move tilde expansion into expand_word_internal instead of many |
| 500 | different calls to bash_tilde_expand scattered across different |
| 501 | functions. NOTE: This means that double quotes surrounding a |
| 502 | {paramOPword} expansion will cause tilde expansion to NOT be |
| 503 | performed on `word'. I think this is right, what POSIX specifies, |
| 504 | and consistent with the behavior of other characters in the rhs |
| 505 | |
| 506 | execute_cmd.c |
| 507 | - take out calls to bash_tilde_expand before calling word expansion |
| 508 | functions |
| 509 | |
| 510 | 9/26 |
| 511 | ---- |
| 512 | execute_cmd.c |
| 513 | - make sure to call UNBLOCK_CHILD before returning on a pipe creation |
| 514 | failure in execute_pipeline |
| 515 | |
| 516 | 9/27 |
| 517 | ---- |
| 518 | variables.c |
| 519 | - change get_bash_command to deal with the_printed_command_except_trap |
| 520 | being NULL |
| 521 | |
| 522 | execute_cmd.c |
| 523 | - fix execute_simple_command to deal with the_printed_command being |
| 524 | NULL when assigning to the_printed_command_except_trap -- fixes |
| 525 | seg fault in savestring() |
| 526 | |
| 527 | parse.y |
| 528 | - change the parser so that the closing `)' in a compound variable |
| 529 | assignment delimits a token -- ksh93 does it this way |
| 530 | |
| 531 | doc/{bash.1,bashref.texi} |
| 532 | - change description of tilde expansion to note that expansion is |
| 533 | attempted only after the first =~ in an assignment statement |
| 534 | |
| 535 | builtins/declare.def |
| 536 | - when assigning to an array variable with declare -a x=(...), make |
| 537 | sure the last character in the rhs of the variable assignment is |
| 538 | `)', not just that it appears somewhere |
| 539 | |
| 540 | 9/28 |
| 541 | ---- |
| 542 | command.h |
| 543 | - add a `W_NOEXPAND' flag to inhibit all expansion except quote removal |
| 544 | - add a `W_COMPASSIGN' flag to denote a word is a compound assignment |
| 545 | statement |
| 546 | |
| 547 | parse.y |
| 548 | - set W_COMPASSIGN on words that appear to be compound assignments |
| 549 | |
| 550 | subst.c |
| 551 | - pass W_NOXPAND and W_COMPASSIGN through end of expand_word_internal |
| 552 | |
| 553 | subst.[ch] |
| 554 | - new function, expand_assignment_string_to_string, calls |
| 555 | expand_string_assignment and then string_list on the result |
| 556 | |
| 557 | variables.c |
| 558 | - assign_in_env now calls expand_assignment_string_to_string |
| 559 | |
| 560 | 9/30 |
| 561 | ---- |
| 562 | builtins/common.c |
| 563 | - change get_job_spec so the null job `%' once again means the current |
| 564 | job |
| 565 | |
| 566 | 10/1 |
| 567 | ---- |
| 568 | subst.c |
| 569 | - do_assignment_internal now takes a WORD_DESC * as its first |
| 570 | argument, and uses its `word' member as the assignment string |
| 571 | - change expand_word_list_internal to call do_word_assignment instead |
| 572 | of do_assignment, passing it `word' instead of, e.g., `word->word' |
| 573 | - change extract_array_assignment_list to just return the passed |
| 574 | string minus a trailing `)' if the last character is a right |
| 575 | paren |
| 576 | - change do_assignment_internal to call extract_array_assignment_list |
| 577 | |
| 578 | subst.[ch] |
| 579 | - change do_assignment and do_assignment_no_expand to take a `char *' |
| 580 | instead of `const char *' first argument; change extern prototypes |
| 581 | - new function, do_word_assignment, takes a WORD_DESC * and calls |
| 582 | do_assignment_internal on it; add extern declaration with prototype |
| 583 | |
| 584 | general.h |
| 585 | - new typedef, sh_wassign_func_t, like sh_assign_func_t but takes a |
| 586 | WORD_DESC * as its first argument |
| 587 | |
| 588 | variables.[ch] |
| 589 | - assign_in_env now takes a WORD_DESC * as its first argument |
| 590 | |
| 591 | 10/2 |
| 592 | ---- |
| 593 | command.h |
| 594 | - new word flag, W_ASSNBLTIN, denotes that the word is a builtin |
| 595 | command (in a command position) that takes assignment statements |
| 596 | as arguments, like `declare' |
| 597 | - new word flags, W_ASSIGNARG, denotes that word is an assignment |
| 598 | statement given as argument to assignment builtin |
| 599 | |
| 600 | execute_cmd.c |
| 601 | - set W_ASSNBLTIN flag in fix_assignment_words if necessary (if there |
| 602 | are any arguments that are assignment statements) |
| 603 | - set W_ASSIGNARG flag in fix_assignment_words if necessary |
| 604 | |
| 605 | subst.c |
| 606 | - new function, do_compound_assignment, encapsulates the necessary |
| 607 | code to perform a compound array assignment (including creation of |
| 608 | local variables); called from do_assignment_internal |
| 609 | - to fix the double-expansion problem with compound array assignments |
| 610 | that are arguments to builtins like `declare', changed |
| 611 | shell_expand_word_list to treat those arguments like assignment |
| 612 | statements (with proper creation of local variables inside shell |
| 613 | functions) and pass the attribute-setting portion of the statement |
| 614 | onto the builtin. This is what ksh93 appears to do, from inspection |
| 615 | of the `ksh93 -x' output |
| 616 | |
| 617 | execute_cmd.c |
| 618 | - fix execute_simple_command: in case of pipeline or async command, |
| 619 | when forking early, set `subshell_environment' so that it can contain |
| 620 | both SUBSHELL_PIPE and SUBSHELL_ASYNC -- the two should not be |
| 621 | mutually exclusive. Fixes bug reported by pierre.humblet@ieee.org |
| 622 | - remove references to last_pid, old_command_subst_pid; use NO_PID as |
| 623 | a sentinel value to decide whether or not a child process has been |
| 624 | created and needs to be waited for. Submitted by |
| 625 | pierre.humblet@ieee.org to fix recycling-pid problem on cygwin |
| 626 | |
| 627 | doc/{bash.1,bashref.texi} |
| 628 | - fixed documentation of `@(pattern)' extended globbing operator -- |
| 629 | it succeeds if the string matches one of the patterns, not exactly |
| 630 | one. This is what ksh93 does, too |
| 631 | |
| 632 | lib/readline/complete.c |
| 633 | - fixed rl_menu_complete so that a negative argument cycles backwards |
| 634 | through the list |
| 635 | |
| 636 | 10/3 |
| 637 | ---- |
| 638 | subst.c |
| 639 | - use W_COMPASSIGN flag in do_assignment_internal instead of deciding |
| 640 | lexically which assignments are compound array assignments |
| 641 | |
| 642 | 10/6 |
| 643 | ---- |
| 644 | support/shobj-conf |
| 645 | - additions for System V.5 from Boyd Gerber <gerberb@zenez.com> |
| 646 | |
| 647 | subst.c |
| 648 | - in command_substitute, if subshell_environment includes |
| 649 | SUBSHELL_ASYNC, call make_child with the `async_p' argument set to |
| 650 | non-zero. This keeps command substitutions for async commands or |
| 651 | pipelines from trying to give the terminal back to the shell's |
| 652 | pgrp. make sure to save and restore last_asynchronous_pid. Fix |
| 653 | suggested by <pierre.humblet@ieee.org> |
| 654 | |
| 655 | 10/7 |
| 656 | ---- |
| 657 | config.h.in |
| 658 | - add a placeholder definition for WCONTINUED_BROKEN |
| 659 | |
| 660 | 10/9 |
| 661 | ---- |
| 662 | aclocal.m4 |
| 663 | - add BASH_CHECK_WCONTINUED, checks for glibc bug where WCONTINUED is |
| 664 | defined but rejected as invalid by waitpid(2) |
| 665 | |
| 666 | configure.in |
| 667 | - add call to BASH_CHECK_WCONTINUED, defines WCONTINUED_BROKEN |
| 668 | |
| 669 | redir.c |
| 670 | - experimental change to add_undo_redirect to save manipulations to |
| 671 | file descriptors >= SHELL_FD_BASE (10) on the list of redirections |
| 672 | to be undone even if `exec' causes the list to be discarded |
| 673 | |
| 674 | doc/{bash.1,bashref.texi} |
| 675 | - note that redirections using file descriptors > 9 should be used |
| 676 | carefully, because they might conflict with file descriptors the |
| 677 | shell uses internally |
| 678 | |
| 679 | 10/11 |
| 680 | ----- |
| 681 | parse.y |
| 682 | - fix pipeline_command production to handle case where `pipeline' |
| 683 | as `argument' of `!' or `time' is null (e.g., a syntax error not |
| 684 | handled by the grammar) |
| 685 | |
| 686 | 10/13 |
| 687 | ----- |
| 688 | lib/readline/readline.c |
| 689 | - new internal variable, _rl_bind_stty_chars; if non-zero, bind the |
| 690 | terminal special characters to readline equivalents at startup |
| 691 | - change readline_default_bindings() and reset_default_bindings() to |
| 692 | understand _rl_bind_stty_chars |
| 693 | |
| 694 | lib/readline/rlprivate.h |
| 695 | - new extern declaration for _rl_bind_stty_chars |
| 696 | |
| 697 | lib/readline/rltty.c |
| 698 | - change rl_prep_terminal to add support for _rl_bind_stty_chars |
| 699 | |
| 700 | 10/15 |
| 701 | ----- |
| 702 | lib/readline/bind.c |
| 703 | - new bindable variable, `bind-tty-special-chars', bound to value of |
| 704 | _rl_bind_stty_chars |
| 705 | |
| 706 | doc/bash.1,lib/readline/doc/{readline.3,rluser.texi} |
| 707 | - documented new readline variable `bind-tty-special-chars' |
| 708 | |
| 709 | builtins/pushd.def |
| 710 | - make the first check for option `--' skip the rest of option |
| 711 | checking |
| 712 | |
| 713 | 10/16 |
| 714 | ----- |
| 715 | lib/readline/shell.c |
| 716 | - change sh_set_lines_and_columns to prefer setenv, which has |
| 717 | predictable memory allocation behavior, to putenv, which does not |
| 718 | |
| 719 | 10/19 |
| 720 | ----- |
| 721 | variables.c |
| 722 | - change push_exported_var so that a tempenv variable has to have the |
| 723 | export attribute set (which they all do -- something to look at) and |
| 724 | the `propagate' attribute set to be propagated down to the next |
| 725 | scope |
| 726 | |
| 727 | execute_cmd.c |
| 728 | - change execute_builtin so that if CMD_COMMAND_BUILTIN is set in the |
| 729 | passed flags argument, call pop_scope with a value that says the |
| 730 | builtin is not special, since `command' means that preceding variable |
| 731 | assignments don't persist in the environment. Fixes problem with |
| 732 | variable assignments preceding command preceding special builtin |
| 733 | keeping those variable assignments around (when in posix mode) |
| 734 | |
| 735 | 10/20 |
| 736 | ----- |
| 737 | lib/sh/shquote.c |
| 738 | - new function, sh_mkdoublequoted, brackets a given string with |
| 739 | double quotes and returns a new string. Flags argument, if non- |
| 740 | zero, means to quote embedded double quotes with backslashes |
| 741 | |
| 742 | externs.h |
| 743 | - new extern declaration for sh_mkdoublequoted |
| 744 | |
| 745 | parse.y |
| 746 | - use sh_mkdoublequoted after calling localeexpand() |
| 747 | |
| 748 | lib/sh/strtrans.c |
| 749 | - change ansicstr to understand that (flags & 4) != 0 means to remove |
| 750 | backslash from unrecognized escape sequences |
| 751 | |
| 752 | general.c |
| 753 | - fix logic problem in assignment() that caused non-variable-starter |
| 754 | characters to be allowed, resulting in things like `1=xxx' creating |
| 755 | a variable `1' in the hash table |
| 756 | |
| 757 | 10/21 |
| 758 | ----- |
| 759 | bashline.c |
| 760 | - don't call programmable_completions with an assignment statement |
| 761 | argument |
| 762 | |
| 763 | 10/22 |
| 764 | ----- |
| 765 | lib/readline/rltty.c |
| 766 | - in prepare_terminal_settings, turn echoing on (readline_echoing_p) |
| 767 | if get_tty_settings fails because the input is not a terminal |
| 768 | |
| 769 | 10/24 |
| 770 | ----- |
| 771 | lib/readline/util.c |
| 772 | - include rlmbutil.h for multibyte definitions |
| 773 | - new function, _rl_walphabetic, wide char version of rl_alphabetic |
| 774 | |
| 775 | lib/readline/mbutil.c |
| 776 | - new function, _rl_char_value(buf, ind), returns value of (possibly |
| 777 | multibyte) character at buf[ind] |
| 778 | |
| 779 | lib/readline/rlmbutil.h |
| 780 | - extern defines for _rl_walphabetic and _rl_char_value for when |
| 781 | multibyte chars are not being used |
| 782 | - new wrapper definitions for _rl_find_next_mbchar (MB_NEXTCHAR) and |
| 783 | _rl_find_prev_mbchar (MB_PREVCHAR) that try to avoid unneeded |
| 784 | function calls |
| 785 | |
| 786 | lib/readline/text.c |
| 787 | - fix rl_foward_word to work with multibyte characters (or in a |
| 788 | multibyte locale) using above utility functions |
| 789 | - fix rl_backward_word to work with multibyte characters (or in a |
| 790 | multibyte locale) using above utility functions |
| 791 | |
| 792 | 10/26 |
| 793 | ----- |
| 794 | parse.y |
| 795 | - fix parse_matched_pair so that it doesn't swallow \<newline> when |
| 796 | parsing a $'...' construct (call shell_getc with different arg) |
| 797 | |
| 798 | 10/28 |
| 799 | ----- |
| 800 | lib/glob/glob.c |
| 801 | - after some (compiled-in) threshold, glob_vector will stop using |
| 802 | alloca to allocate `struct globval's and will switch to using |
| 803 | malloc, with appropriate cleanup before returning |
| 804 | |
| 805 | subst.c |
| 806 | - don't expand tildes after `=' in expand_word_internal, even if the |
| 807 | W_TILDEEXP flag is set, unless it's the first tilde in a word |
| 808 | marked W_ASSIGNMENT |
| 809 | |
| 810 | 10/31 |
| 811 | ----- |
| 812 | lib/readline/text.c |
| 813 | - make sure rl_point doesn't go below 0 in rl_delete_horizontal_space |
| 814 | (from SUSE, but not sent in) |
| 815 | |
| 816 | shell.c |
| 817 | - make sure shell_is_restricted skips over a single leading `-' in |
| 818 | the shell name (from SUSE, but not sent in) |
| 819 | |
| 820 | lib/readline/display.c |
| 821 | - disable `fast redisplay' at the end of the line if in a locale that |
| 822 | supports multibyte characters (from SUSE, but not sent in) |
| 823 | |
| 824 | lib/readline/histexpand.c |
| 825 | - fix a problem with finding the delimiter of a `?' substring when |
| 826 | compiled for multibyte characters (from SUSE, but not sent in) |
| 827 | |
| 828 | 11/1 |
| 829 | ---- |
| 830 | lib/readline/display.c |
| 831 | - correct some assignments to _rl_last_c_pos: when in a multibyte |
| 832 | locale, it's used as an absolute cursor position; when not using |
| 833 | multibyte characters, it's a buffer offset. I should have caught |
| 834 | this when the multibyte character support was donated |
| 835 | |
| 836 | 11/5 |
| 837 | ---- |
| 838 | general.c |
| 839 | - change `assignment()' to accept `+=' assignment operator |
| 840 | |
| 841 | arrayfunc.[ch] |
| 842 | - bind_array_variable and assign_array_element both take a new `flags' |
| 843 | argument |
| 844 | - assign_array_var_from_string, assign_array_from_string, and |
| 845 | assign_array_var_from_word_list now all take a new `flags' argument |
| 846 | - change assign_array_var_from_word_list to understand how to append |
| 847 | to an array variable |
| 848 | - change assign_array_var_from_string to understand how to append |
| 849 | to an array variable. It does not unset the previous value if |
| 850 | appending, allowing both old values to be changed and new ones to |
| 851 | be added |
| 852 | |
| 853 | subst.h |
| 854 | - new flag #defines to use for evaluating assignment statements |
| 855 | |
| 856 | {subst,variables}.c, builtins/{declare,read}.def |
| 857 | - change callers of assign_array_element and bind_array_variable |
| 858 | - change do_compound_assignment to understand assignment flags |
| 859 | - change do_assignment_internal to set assignment flags and pass them |
| 860 | to underlying functions |
| 861 | |
| 862 | pcomplete.c,builtins/{declare,read}.def |
| 863 | - fix callers of assign_array_var_from_string, assign_array_var_from_word_list |
| 864 | |
| 865 | variables.[ch] |
| 866 | - make_variable_value now takes a new `flags' argument |
| 867 | - make_variable_value now understands how to append to a particular |
| 868 | variable, using the old value |
| 869 | - bind_variable_value now takes a new `flags' argument |
| 870 | - change make_variable_value to understand ASS_APPEND flag |
| 871 | - bind_variable now takes a new `flags' argument |
| 872 | - bind_variable_internal now takes a new `flags' argument |
| 873 | |
| 874 | arrayfunc.c |
| 875 | - change callers of make_variable_value to add flags arg |
| 876 | |
| 877 | builtins/declare.def |
| 878 | - change callers of bind_variable_value to add flags arg |
| 879 | |
| 880 | {execute_cmd,mailcheck,pcomplete,shell,subst,variables}.c,parse.y |
| 881 | builtins/{cd,command,declare,getopts,read,set,setattr}.def |
| 882 | - change callers of bind_variable to add flags arg |
| 883 | |
| 884 | variables.c |
| 885 | - change callers of bind_variable_internal |
| 886 | - change bind_variable_internal to pass assignment flags on to |
| 887 | make_variable_value |
| 888 | - change assign_in_env to treat `var+=value' like `var=value' |
| 889 | |
| 890 | arrayfunc.c |
| 891 | - break code that actually constructs the new value and assigns it |
| 892 | to a particular array index out into a new functions: |
| 893 | bind_array_var_internal. This fakes out make_variable_value by |
| 894 | passing a dummy SHELL_VAR * so it can do proper appending and other |
| 895 | += processing |
| 896 | - changes to assign_array_var_from_string to accept and process as if |
| 897 | they were `standalone' assignment statements array assignment words |
| 898 | of the form [ind]+=val |
| 899 | |
| 900 | 11/7 |
| 901 | ---- |
| 902 | builtins/declare.def |
| 903 | - added support for `declare [flags] var+=value'. `Flags' are applied |
| 904 | before the assignment is performed, which has implications for things |
| 905 | like `-i' -- if -i is supplied, arithmetic evaluation and increment |
| 906 | will be performed |
| 907 | |
| 908 | builtins/setattr.def |
| 909 | - add support for `+=' assignment for rest of `assignment builtins': |
| 910 | export, readonly |
| 911 | |
| 912 | 11/12 |
| 913 | ----- |
| 914 | lib/readline/display.c |
| 915 | - make sure prompt_physical_chars and prompt_invis_chars_first_line |
| 916 | are reset to 0 if the prompt string passed to rl_expand_prompt is |
| 917 | NULL or empty |
| 918 | |
| 919 | 11/14 |
| 920 | ----- |
| 921 | {configure,config.h}.in |
| 922 | - check for `raise', define HAVE_RAISE if available |
| 923 | |
| 924 | lib/intl/dcigettext.c |
| 925 | - make sure `raise' is defined if HAVE_RAISE is not before |
| 926 | eval-plurah.h is included |
| 927 | |
| 928 | lib/malloc/trace.c |
| 929 | - put extern declaration for imalloc_fopen inside the MALLOC_TRACE |
| 930 | #ifdef |
| 931 | |
| 932 | 11/16 |
| 933 | ----- |
| 934 | lib/intl/Makefile.in |
| 935 | - make sure SHELL is defined to cpp |
| 936 | |
| 937 | lib/intl/dcigettext.c |
| 938 | - make sure we use getcwd() even if HAVE_GETCWD is not defined after |
| 939 | including config.h; if SHELL is defined, #define HAVE_GETCWD |
| 940 | |
| 941 | 11/18 |
| 942 | ----- |
| 943 | trap.[ch] |
| 944 | - new function, int signal_in_progress(int sig), returns TRUE if the |
| 945 | trap handler for signal SIG is currently executing |
| 946 | |
| 947 | 11/19 |
| 948 | ----- |
| 949 | redir.c |
| 950 | - slightly change do_redirection_internal to set the close-on-exec |
| 951 | flag for file descriptors > 2 used to save file descriptors < 2 |
| 952 | using explicit redirections (e.g., `exec 3>&1'). This keeps file |
| 953 | descriptors pointing to pipes from being left open but doesn't |
| 954 | change the shell's file descriptor semantics |
| 955 | |
| 956 | 11/20 |
| 957 | ----- |
| 958 | doc/{bash.1,bashref.texi} |
| 959 | - correct some minor typos, forwarded from doko@debian.org |
| 960 | |
| 961 | 11/22 |
| 962 | ----- |
| 963 | doc/bash.1,lib/readline/doc/{readline.3,rluser.texi} |
| 964 | - documented detail that yank-last-arg and yank-nth-arg use the history |
| 965 | arg expansion code (and, as a result, are subject to restrictions |
| 966 | of the history-comment character) |
| 967 | |
| 968 | 11/23 |
| 969 | ----- |
| 970 | execute_cmd.c |
| 971 | - changes so that BASH_COMMAND preserves its value into a DEBUG trap: |
| 972 | for commands, arithmetic for command expressions, select commands, |
| 973 | case commands, (( commands, [[ commands, simple commands |
| 974 | |
| 975 | 11/24 |
| 976 | ----- |
| 977 | doc/{bash.1,bashref.texi} |
| 978 | - changed description of `set' builtin slightly so that it is clear |
| 979 | that only variables are displayed in posix mode and that read-only |
| 980 | variables can't be reset by simply sourcing the output of `set' |
| 981 | |
| 982 | lib/sh/strftime.c |
| 983 | - don't try to redefine `inline' if it's already defined |
| 984 | |
| 985 | 11/26 |
| 986 | ----- |
| 987 | execute_cmd.c |
| 988 | - fix execute_function to check funcname_a after function execution, |
| 989 | since FUNCNAME can be changed or unset within a function |
| 990 | |
| 991 | 11/27 |
| 992 | ----- |
| 993 | builtins/evalfile.c |
| 994 | - make same changes as 11/26, this time to _evalfile |
| 995 | |
| 996 | execute_cmd.c |
| 997 | - change execute_function to run the return trap after a function |
| 998 | completes execution even if the shell is compiled without DEBUGGER |
| 999 | defined |
| 1000 | |
| 1001 | trap.c |
| 1002 | - change reset_or_restore_signal_handlers so that the RETURN trap is |
| 1003 | not inherited by command substitution when DEBUGGER is not defined |
| 1004 | |
| 1005 | 11/30 |
| 1006 | ----- |
| 1007 | lib/readline/misc.c |
| 1008 | - fix memory leaks in _rl_free_history_entry and rl_maybe_replace_line |
| 1009 | caused by not freeing `timestamp' member of history entry |
| 1010 | - make sure timestamp is initialized to NULL in rl_maybe_save_line |
| 1011 | |
| 1012 | 12/1 |
| 1013 | ---- |
| 1014 | execute_cmd.c |
| 1015 | - fix execute_function so a function calling `return' will run the |
| 1016 | RETURN trap, if one's defined |
| 1017 | |
| 1018 | doc/{bash.1,bashref.texi} |
| 1019 | - fix description of RETURN trap in various places to indicate that it's |
| 1020 | only inherited by shell functions if function tracing is on globally |
| 1021 | or has been enabled for that function |
| 1022 | - fix documentation to indicate that the DEBUG and RETURN traps are |
| 1023 | inherited under the same conditions |
| 1024 | |
| 1025 | execute_cmd.c |
| 1026 | - a function does not inherit the RETURN trap if a DEBUG trap is |
| 1027 | currently running |
| 1028 | |
| 1029 | 12/2 |
| 1030 | ---- |
| 1031 | lib/glob/xmbsrtowcs.c |
| 1032 | - change xmbsrtowcs to handle the one case where malloc can fail |
| 1033 | (though it should not matter) -- don't try to free a null pointer |
| 1034 | |
| 1035 | 12/9 |
| 1036 | ---- |
| 1037 | subst.c |
| 1038 | - fix get_var_and_type to handle var[@], where `var' is a scalar |
| 1039 | variable, identically to var -- all calling expansions can now |
| 1040 | handle var[@] like var. Bug reported by agriffis@gentoo.org |
| 1041 | |
| 1042 | 12/10 |
| 1043 | ----- |
| 1044 | lib/readline/bind.c |
| 1045 | - make new-style "\M-x" keybindings obey `convert-meta' settings |
| 1046 | (bug reported by twaugh@redhat.com) |
| 1047 | |
| 1048 | 12/14 |
| 1049 | ----- |
| 1050 | builtins/set.def |
| 1051 | - added description of `-' option to help text |
| 1052 | |
| 1053 | builtins/shopt.def |
| 1054 | - fix bug that caused `gnu_errfmt' to not be compiled in unless |
| 1055 | READLINE is defined |
| 1056 | |
| 1057 | 12/16 |
| 1058 | ----- |
| 1059 | subst.c |
| 1060 | - fixed a typo in string_extract_verbatim in first call to MBLEN |
| 1061 | (used `slen - 1' instead of `slen - i') |
| 1062 | |
| 1063 | 12/17 |
| 1064 | ----- |
| 1065 | subst.c |
| 1066 | - avoid some calls to strlen if the value is only being used for |
| 1067 | ADVANCE_CHAR and MB_CUR_MAX == 1 (since ADVANCE_CHAR doesn't need |
| 1068 | it unless multibyte characters are possible) |
| 1069 | - change string_extract_verbatim so it takes the length of the string |
| 1070 | as a parameter, so we don't have to recompute the length of the same |
| 1071 | string over and over again when doing word splitting (that kills if |
| 1072 | it's a long string) |
| 1073 | |
| 1074 | 12/18 |
| 1075 | ----- |
| 1076 | subst.c |
| 1077 | - in string_list_dollar_star, make sure to null-terminate the |
| 1078 | separator if the character is longer than one byte |
| 1079 | |
| 1080 | 12/22 |
| 1081 | ----- |
| 1082 | doc/{bash.1,bashref.texi} |
| 1083 | - changed text in quoting section explaining that double quotes do |
| 1084 | not prevent history expansion from taking place, and that backslashes |
| 1085 | escaping ! are not removed |
| 1086 | |
| 1087 | 12/28 |
| 1088 | ----- |
| 1089 | shell.c |
| 1090 | - set gnu_error_format to 1 if running under emacs. This should allow |
| 1091 | the emacs `next-error' stuff to work, at least for interactive shells |
| 1092 | |
| 1093 | parse.y |
| 1094 | - change yy_stream_get to set interrupt_immediately before calling |
| 1095 | getc_with_restart when the shell is interactive. This avoids the |
| 1096 | synchronization problem caused by the call to QUIT in read_a_line, |
| 1097 | which results in the first character after a SIGINT/^C to be |
| 1098 | dropped |
| 1099 | |
| 1100 | 12/30 |
| 1101 | ----- |
| 1102 | builtins/mkbuiltins.c |
| 1103 | - changes to write long documentation to arrays as a single string by |
| 1104 | default, rather than an array of strings -- enabled by default |
| 1105 | - new option, -S, to restore old behavior of writing multiple strings |
| 1106 | for long documentation |
| 1107 | - changes to avoid filenames written when the separate-filenames option |
| 1108 | (-H) has been supplied being run through gettext |
| 1109 | |
| 1110 | configure.in |
| 1111 | - new cofiguration option, --enable-single-help-strings (on by default), |
| 1112 | causes help text to be stored as a single string (or smaller set than |
| 1113 | one string per line) |
| 1114 | |
| 1115 | builtins/Makefile.in |
| 1116 | - pass `-S' to mkbuiltins if single-help-strings is turned off |
| 1117 | |
| 1118 | doc/bashref.texi |
| 1119 | - documented new `single-help-strings' configure option |
| 1120 | |
| 1121 | 1/3/2005 |
| 1122 | -------- |
| 1123 | jobs.c |
| 1124 | - make wait_for return a non-zero status if the job or processed |
| 1125 | waited for is suspended. Returns 128 + stop signal. This fixes |
| 1126 | the problem with `echo one && sleep 5 && echo two' displaying |
| 1127 | `two' after the sleep is suspended |
| 1128 | |
| 1129 | 1/5 |
| 1130 | --- |
| 1131 | print_cmd.c |
| 1132 | - change indirection_level_string so the code duplicates the first |
| 1133 | character of $PS4 to indicate the indirection level, rather than |
| 1134 | the first byte |
| 1135 | |
| 1136 | 1/8 |
| 1137 | --- |
| 1138 | variables.c |
| 1139 | - new special variable hook function for COMP_WORDBREAKS; sets |
| 1140 | rl_completer_word_break_characters back to NULL when the variable |
| 1141 | is unset |
| 1142 | - change bind_variable_value to understand dynamic variables with |
| 1143 | assign_function set, and handle them correctly. If the variable is |
| 1144 | being appended to, use make_variable_value to create the new |
| 1145 | value |
| 1146 | - change bind_variable_internal to understand dynamic variables with |
| 1147 | assign_function set, and handle them the same way |
| 1148 | - RANDOM and LINENO now get the integer attribute, so appending works |
| 1149 | as expected |
| 1150 | - ditto for HISTCMD, MAILCHECK, OPTIND |
| 1151 | |
| 1152 | lib/readline/display.c |
| 1153 | - change _rl_make_prompt_for_search to set prompt_physical_chars |
| 1154 | appropriately |
| 1155 | - rl_save_prompt and rl_restore_prompt save and restore |
| 1156 | prompt_prefix_length |
| 1157 | - change redraw_prompt to use rl_save_prompt and rl_restore_prompt |
| 1158 | - change rl_restore_prompt to set the `save' variables back to |
| 1159 | NULL/0 so code can check whether or not the prompt has been saved |
| 1160 | - change rl_message and rl_clear_message to save and restore the |
| 1161 | prompt if the caller has not already done it (using a simple |
| 1162 | semaphore-like variable) |
| 1163 | - change rl_message to call expand_prompt, so that local_prompt and |
| 1164 | local_prompt prefix are set before calling the redisplay functions, |
| 1165 | in case the prompt is longer than a screenwidth (fixes bug |
| 1166 | reported to debian by epl@unimelb.edu.au) |
| 1167 | |
| 1168 | lib/readline/doc/rltech.texi |
| 1169 | - make sure to note that rl_save_prompt should be called before |
| 1170 | rl_message, and rl_restore_prompt before rl_clear_message |
| 1171 | |
| 1172 | pcomplete.c |
| 1173 | - make sure to save and restore the parser state around the call to |
| 1174 | execute_shell_function in gen_shell_function_matches. Fixes bug |
| 1175 | reported by a050106.1.keeLae3x@captaincrumb.com (cute) |
| 1176 | |
| 1177 | lib/readline/readline.c |
| 1178 | - fix _rl_dispatch_subseq in the case where we're recursing back up |
| 1179 | the chain (r == -2) and we encounter a key shadowed by a keymap, |
| 1180 | but originally bound to self-insert. Calling rl_dispatch with |
| 1181 | ANYOTHERKEY as the first argument will call rl_insert, but with |
| 1182 | ANYOTHERKEY (256) as the char to insert. Use the shadow keymap |
| 1183 | and set things up to dispatch to rl_insert with the shadowed key |
| 1184 | as the argument. Fixes the bug reported by Thomas Glanzmann |
| 1185 | (sithglan@stud.uni-erlangen.de) |
| 1186 | |
| 1187 | 1/13 |
| 1188 | ---- |
| 1189 | command.h |
| 1190 | - new word flag: W_HASQUOTEDNULL |
| 1191 | |
| 1192 | make_cmd.c |
| 1193 | - new function to allocate a WORD_DESC * without doing anything with a |
| 1194 | containing string: alloc_word_desc |
| 1195 | |
| 1196 | make_cmd.h |
| 1197 | - extern declaration for alloc_word_desc |
| 1198 | |
| 1199 | dispose_cmd.c |
| 1200 | - new function to just free a WORD_DESC * without freeing the contained |
| 1201 | string: dispose_word_desc |
| 1202 | |
| 1203 | dispose_cmd.h |
| 1204 | - extern declaration for dispose_word_desc |
| 1205 | |
| 1206 | subst.c |
| 1207 | - change some places to use alloc_word_desc |
| 1208 | - make same changes to word_list_quote_removal as were made to |
| 1209 | word_list_split |
| 1210 | - set W_HASQUOTEDNULL when a word is created with w->word[0] == |
| 1211 | CTLNUL and w->word[1] == '\0' |
| 1212 | |
| 1213 | subst.c |
| 1214 | - parameter_brace_expand_word now returns a WORD_DESC * -- changed |
| 1215 | callers to understand |
| 1216 | - parameter_brace_expand_indir now returns a WORD_DESC * -- changed |
| 1217 | callers to understand |
| 1218 | - parameter_brace_expand_rhs now returns a WORD_DESC * -- changed |
| 1219 | callers to understand |
| 1220 | - remove W_HASQUOTEDNULL from a word's flags when remove_quoted_nulls |
| 1221 | is called on the word's enclosed string |
| 1222 | |
| 1223 | 1/15 |
| 1224 | ---- |
| 1225 | subst.c |
| 1226 | - param_expand now returns a WORD_DESC * -- changed callers to |
| 1227 | understand |
| 1228 | - parameter_brace_expand now returns a WORD_DESC * -- changed |
| 1229 | callers to understand |
| 1230 | - in expand_word_internal, only call remove_quoted_nulls after a word |
| 1231 | is returned with W_HASQUOTEDNULL |
| 1232 | - changes to pass W_HASQUOTEDNULL flag out of expand_word_internal; |
| 1233 | changed callers to call remove_quoted_nulls only if return value has |
| 1234 | W_HASQUOTEDNULL set. This is a mostly-complete fix for the |
| 1235 | long-standing CTLNUL confusion between a quoted null expansion and |
| 1236 | the expansion of a variable with a literal '\177' in its value |
| 1237 | - change string_list_dollar_at to compute the separator character the |
| 1238 | same way as string_list_dollar_star: using the already-computed |
| 1239 | values generated in setifs() |
| 1240 | - when expanding unquoted $*, if $IFS is empty, check whether or not |
| 1241 | we're eventually going to split the results (e.g., on the rhs of an |
| 1242 | assignment statement) and concatenate the positional parameters as |
| 1243 | if the expansion were within double quotes if we're not going to |
| 1244 | split |
| 1245 | |
| 1246 | tests/iquote.tests |
| 1247 | - test cases based on old bug reports about the quoted-null vs. 0177 |
| 1248 | problem the recent code fixes |
| 1249 | |
| 1250 | 1/16 |
| 1251 | ---- |
| 1252 | dispose_cmd.c |
| 1253 | - set w->word to 0 before putting a WORD_DESC * back in the cache in |
| 1254 | dispose_word_desc; changed callers to delete those assignments |
| 1255 | |
| 1256 | variables.c |
| 1257 | - change assign_random and get_random_value so that the random number |
| 1258 | generator only gets re-seeded once in a subshell environment, and |
| 1259 | assigning a value to RANDOM counts as seeding the generator. This |
| 1260 | makes the sequences a little more predictable |
| 1261 | |
| 1262 | 1/20 |
| 1263 | ---- |
| 1264 | lib/readline/history.c |
| 1265 | - fix replace_history_entry, remove_history to return NULL if |
| 1266 | passed index is < 0 |
| 1267 | |
| 1268 | 1/22 |
| 1269 | ---- |
| 1270 | lib/sh/netconn.c |
| 1271 | - fix isnetconn() to understand that getpeername can return ENOTCONN |
| 1272 | to indicate that an fd is not a socket |
| 1273 | |
| 1274 | configure.in |
| 1275 | - set BUILD_DIR to contain backslashes to escape any spaces in the |
| 1276 | directory name -- this is what make will accept in targets and |
| 1277 | prerequisites, so it's better than trying to use double quotes |
| 1278 | - set SIZE to the appropriate value if some cross-compiling tool |
| 1279 | chain is being used; `size' by default (can be overridden by |
| 1280 | SIZE environment variable) |
| 1281 | |
| 1282 | Makefile.in |
| 1283 | - use $(SIZE) instead of size; set SIZE from configure |
| 1284 | |
| 1285 | 1/31 |
| 1286 | ---- |
| 1287 | arrayfunc.c |
| 1288 | - in array_value_internal, return NULL right away if the variable's |
| 1289 | value is NULL, instead of passing a null string to add_string_to_list |
| 1290 | |
| 1291 | 2/1 |
| 1292 | --- |
| 1293 | jobs.h |
| 1294 | - new struct to hold stats and counters for child processes and jobs |
| 1295 | - change some uses of global and static variables to use members of |
| 1296 | new struct (struct jobstats) |
| 1297 | |
| 1298 | 2/2 |
| 1299 | --- |
| 1300 | |
| 1301 | jobs.[ch] |
| 1302 | - change PRUNNING to PALIVE |
| 1303 | - new define INVALID_JOB |
| 1304 | - new macro get_job_by_jid(ind), currently expands to jobs[ind] |
| 1305 | - new define J_JOBSTATE, operates on a JOB * like JOBSTATE operates on |
| 1306 | a job index |
| 1307 | - new function, reset_job_indices, called from delete_job if |
| 1308 | js.j_lastj or js.j_firstj are removed |
| 1309 | - change various functions to keep counters and stats in struct jobstats |
| 1310 | |
| 1311 | pcomplete.c, builtins/common.c, builtins/{exit,fg_bg,jobs,kill,wait}.def |
| 1312 | - change global variables (e.g., job_slots) to struct members |
| 1313 | (e.g., js.j_jobslots) |
| 1314 | - use INVALID_JOB define where appropriate |
| 1315 | - use get_job_by_jid and J_JOBSTATE where appropriate |
| 1316 | |
| 1317 | trap.c |
| 1318 | - change reset_or_restore_signal_handler to not free the exit trap |
| 1319 | string if the function pointer is reset_signal, which is used when |
| 1320 | the trap strings shouldn't be freed, like in command substitution |
| 1321 | |
| 1322 | 2/4 |
| 1323 | --- |
| 1324 | jobs.c |
| 1325 | - new function, realloc_jobs_list, copies jobs array to newly-allocated |
| 1326 | memory shrinking (or growing) size to have next multiple of JOB_SLOTS |
| 1327 | greater than js.j_njobs |
| 1328 | - change compact_jobs_list to just call reap_dead_jobs and then |
| 1329 | realloc_jobs_list, simplifying it considerably |
| 1330 | - discard_pipeline now returns `int': the number of processes freed |
| 1331 | - slightly changed the logic deciding whether or not to call |
| 1332 | compact_jobs_list: now non-interactive shells will compact the |
| 1333 | list if it reaches MAX_JOBS_IN_ARRAY in size |
| 1334 | |
| 1335 | parse.y |
| 1336 | - move test for backslash-newline after pop_string in shell_getc so |
| 1337 | that things like |
| 1338 | |
| 1339 | ((echo 5) \ |
| 1340 | (echo 6)) |
| 1341 | |
| 1342 | work right |
| 1343 | |
| 1344 | 2/8 |
| 1345 | --- |
| 1346 | jobs.h |
| 1347 | - new structs for holding status of exited background processes, as |
| 1348 | POSIX specifies |
| 1349 | - new job flag: J_ASYNC |
| 1350 | |
| 1351 | jobs.c |
| 1352 | - new functions to manipulate struct holding status of exited |
| 1353 | background processes |
| 1354 | - new members in struct jobstats to hold pointer to last created job |
| 1355 | and last created asynchronous job |
| 1356 | - initialize js.c_childmax in initialize_job_control |
| 1357 | - if the `async' arg to stop_pipeline is non-null, set the J_ASYNC |
| 1358 | flag in the job struct |
| 1359 | - set js.j_last_made_job and js.j_last_asynchronous_job in |
| 1360 | stop_pipeline |
| 1361 | - new function: find_last_proc, returns the PROCESS * to the last proc |
| 1362 | in a job's pipeline |
| 1363 | - changed find_last_pid to call find_last_proc |
| 1364 | - change delete_job to call bgp_add on the last proc of the job being |
| 1365 | deleted |
| 1366 | - change delete_all_jobs and wait_for_background_pids to call bgp_clear |
| 1367 | |
| 1368 | 2/9 |
| 1369 | --- |
| 1370 | jobs.c |
| 1371 | - change wait_for_single_pid to look for pid in bgpids.list (using |
| 1372 | bgp_search()) if find_pipeline returns NULL |
| 1373 | |
| 1374 | 2/10 |
| 1375 | ---- |
| 1376 | support/shobj-conf |
| 1377 | - change the solaris-gcc stanza so that it auto-selects the appropriate |
| 1378 | options for ld depending on which `ld' gcc says it's going to run |
| 1379 | |
| 1380 | 2/11 |
| 1381 | ---- |
| 1382 | jobs.h |
| 1383 | - add support for PS_RECYCLED as a process state, add PRECYCLED macro |
| 1384 | to test it. Change PALIVE and PRUNNING macros to not count processes |
| 1385 | in PS_RECYCLED state |
| 1386 | |
| 1387 | execute_cmd.c |
| 1388 | - restore use of last_pid as sentinel value; use NO_PID as sentinel |
| 1389 | only if RECYCLES_PIDS is defined |
| 1390 | |
| 1391 | jobs.c |
| 1392 | - change find_job to return a pointer to the PROCESS the desired pid |
| 1393 | belongs to, analogous to find_pipeline returning pointer to JOB |
| 1394 | - change find_job callers to add extra argument |
| 1395 | - change running_only arguments to find_pipeline and find_job to |
| 1396 | alive_only, since we don't want recycled pids returned here and it |
| 1397 | better describes the result |
| 1398 | - new function find_process, calls find_pipeline and searches the |
| 1399 | returned pipeline for the PROCESS * describing the desired pid |
| 1400 | - in make_child, if fork() returns the same pid as the value of |
| 1401 | last_asynchronous_pid when RECYCLES_PIDS is defined, avoid pid |
| 1402 | aliasing by resetting last_asynchronous_pid to 1 |
| 1403 | - use PRUNNING instead of child->running, since we, for the most |
| 1404 | part, don't want to consider recycled pids (e.g., in make_child()) |
| 1405 | - call find_process instead of find_pipeline in waitchld() |
| 1406 | - use PEXITED(p) instead of testing p->running == PS_DONE |
| 1407 | - in make_child, call bgp_delete to remove a just-created pid from the |
| 1408 | last of saved pid statuses |
| 1409 | - in add_process, check whether or not pid being added is already in |
| 1410 | the_pipeline or the jobs list (using find_process) and mark it as |
| 1411 | recycled if so |
| 1412 | - This set of fixes mostly came from Pierre Humblet |
| 1413 | <pierre.humblet@ieee.org> to fix pid aliasing and reuse problems on |
| 1414 | cygwin |
| 1415 | |
| 1416 | variables.c |
| 1417 | - set $_ from the environment if we get it there, set to $0 by |
| 1418 | default if not in env |
| 1419 | |
| 1420 | doc/{bashref.texi,bash.1} |
| 1421 | - a couple of clarifying changes to the description of $_ based on |
| 1422 | comments from Glenn Morris <gmorris+mail@ast.cam.ac.uk> |
| 1423 | |
| 1424 | 2/15 |
| 1425 | ---- |
| 1426 | shell.c |
| 1427 | - use strstr instead of strmatch when checking whether $EMACS contains |
| 1428 | `term' -- simpler and faster |
| 1429 | |
| 1430 | 2/18 |
| 1431 | ---- |
| 1432 | builtins/cd.def |
| 1433 | - implement posix requirement that `pwd -P' set $PWD to a directory |
| 1434 | name containing no symlinks |
| 1435 | - add new function, setpwd(), just sets (and changes exported value) |
| 1436 | of PWD |
| 1437 | |
| 1438 | doc/bashref.texi |
| 1439 | - add note to posix mode section about pwd -P setting $PWD |
| 1440 | |
| 1441 | doc{bash.1,bashref.texi} |
| 1442 | - added note that BASH_ARGC and BASH_ARGV are only set in extended |
| 1443 | debug mode |
| 1444 | - expand description of extdebug option to include everything changed |
| 1445 | by extended debug mode |
| 1446 | |
| 1447 | 2/19 |
| 1448 | ---- |
| 1449 | pathexp.h |
| 1450 | - new flag macro, FNMATCH_IGNCASE, evaluates to FNM_CASEFOLD if the |
| 1451 | match_ignore_case variable is non-zero |
| 1452 | |
| 1453 | execute_cmd.c |
| 1454 | - new variable, match_ignore_case |
| 1455 | - change call to strmatch() in execute_case_command so it includes |
| 1456 | FNMATCH_IGNCASE |
| 1457 | |
| 1458 | test.c |
| 1459 | - change call to strmatch() in patcomp() so that pattern matching |
| 1460 | calls for [[ ... ]] obey the match_ignore_case variable |
| 1461 | |
| 1462 | lib/sh/shmatch.c |
| 1463 | - if match_ignore_case is set, enable REG_ICASE in the regexp match |
| 1464 | flags |
| 1465 | |
| 1466 | builtins/shopt.def |
| 1467 | - new settable option, `nocasematch', controls the match_ignore_case |
| 1468 | variable. Currently alters pattern matching for case and [[ ... ]] |
| 1469 | commands (==, !=, and =~ operators) |
| 1470 | |
| 1471 | doc/{bashref.texi,bash.1} |
| 1472 | - updated descriptions of [[ and case to include reference to |
| 1473 | nocasematch option |
| 1474 | |
| 1475 | 2/22 |
| 1476 | ---- |
| 1477 | builtins/mkbuiltins.c |
| 1478 | - add `times' to the list of posix special builtins |
| 1479 | |
| 1480 | 2/23 |
| 1481 | ---- |
| 1482 | builtins/cd.def |
| 1483 | - posix mode no longer turns on effect of -P option on $PWD if a |
| 1484 | directory is chosen from CDPATH |
| 1485 | |
| 1486 | doc/bashref.texi |
| 1487 | - clarified that in posix mode, reserved words are not alias expanded |
| 1488 | only in a reserved word context |
| 1489 | - removed item about cd, $CDPATH, and -P from posix mode section |
| 1490 | |
| 1491 | 2/24 |
| 1492 | ---- |
| 1493 | builtins/reserved.def |
| 1494 | - minor cleanups to the description of `if' |
| 1495 | |
| 1496 | 3/2 |
| 1497 | --- |
| 1498 | subst.c |
| 1499 | - change list_string and get_word_from_string to explicitly treat an |
| 1500 | IFS character that is not space, tab, or newline *and any adjacent |
| 1501 | IFS white space* as a single delimiter, as SUSv3/XPG6 says |
| 1502 | |
| 1503 | builtins/read.def |
| 1504 | - check whether or not the number of fields is exactly the same as |
| 1505 | the number of variables instead of just assigning the rest of the |
| 1506 | line (minus any trailing IFS white space) to the last variable. |
| 1507 | This parses a field and checks whether or not it consumes all of |
| 1508 | the input (including any trailing field delimiters), falling back |
| 1509 | to the previous behavior if it does not. This is what POSIX.2 |
| 1510 | specifies, I believe (and the consensus of the austin-group list). |
| 1511 | This requires a few tests in read.tests to be changed: backslashes |
| 1512 | escaping IFS whitespace characters at the end of input cause the |
| 1513 | whitespace characters to be preserved in the value assigned to the |
| 1514 | variable, and the trailing non-whitespace field delimiter issue |
| 1515 | |
| 1516 | 3/7 |
| 1517 | --- |
| 1518 | configure.in |
| 1519 | - add -D_POSIX_SOURCE to the LOCAL_CFLAGS for Interix |
| 1520 | |
| 1521 | 3/8 |
| 1522 | --- |
| 1523 | bashline.c |
| 1524 | - make bash_directory_expansion a void function, since it doesn't have |
| 1525 | any return value |
| 1526 | |
| 1527 | 3/9 |
| 1528 | --- |
| 1529 | builtins/read.def |
| 1530 | - when testing for a pipe, use `fd' instead of hard-coding 0, since we |
| 1531 | can read from other file descriptors now |
| 1532 | |
| 1533 | lib/sh/zread.c |
| 1534 | - in zsyncfd, only set lind and lused to 0 if the lseek succeeds. |
| 1535 | If the lseek fails, we might steal input from other programs, but |
| 1536 | a failed lseek won't cause us to erroneously discard input |
| 1537 | |
| 1538 | 3/11 |
| 1539 | ---- |
| 1540 | builtins/evalstring.c |
| 1541 | - don't allow parse_and_execute to short-circuit and call exec() if |
| 1542 | the command's return value is being inverted |
| 1543 | |
| 1544 | 3/15 |
| 1545 | ---- |
| 1546 | builtins/printf.def |
| 1547 | - new macro PC to call putchar and increment number of chars printed - |
| 1548 | fixes bug in computation of value for %n format char |
| 1549 | - `tw' is now a global var so printstr can modify it using PC() |
| 1550 | - convert PF macro to use asprintf into a local buffer |
| 1551 | Preparation for printf -v var |
| 1552 | - add code to add the text printed to a `variable buffer' if -v option |
| 1553 | supplied. The buffer grows as needed |
| 1554 | - printf now takes a `-v var' option to put the output into the variable |
| 1555 | VAR rather than sending it to stdout. It does not: |
| 1556 | print partial output on error (e.g., format string error) |
| 1557 | handle NULs in the variable value, as usual |
| 1558 | |
| 1559 | 3/16 |
| 1560 | ---- |
| 1561 | parse.y |
| 1562 | - fix bug in prompt string decoding that caused a core dump when PS1 |
| 1563 | contained \W and PWD was unset (null pointer deref) |
| 1564 | |
| 1565 | builtins/printf.def |
| 1566 | - changed -v var behavior so it stores partial output into the named |
| 1567 | variable upon an error |
| 1568 | |
| 1569 | 3/24 |
| 1570 | ---- |
| 1571 | lib/readline/bind.c |
| 1572 | - bool_to_int now takes a `const char *' argument |
| 1573 | |
| 1574 | support/{printenv,recho,zecho}.c |
| 1575 | - include config.h |
| 1576 | - include "bashansi.h" for appropriate extern function declarations |
| 1577 | |
| 1578 | configure.in |
| 1579 | - on MacOS X 10.4, compensate for loader not allowing static library |
| 1580 | to override existing system dynamic library when compiling -dynamic |
| 1581 | (affects readline and history libraries); so use absolute pathname |
| 1582 | instead of -lreadline as library name |
| 1583 | |
| 1584 | lib/glob/{glob,sm_loop,smatch}.c |
| 1585 | - make sure to cast arguments to (char *) or (unsigned char *) as |
| 1586 | appropriate to avoid gcc4 warnings |
| 1587 | |
| 1588 | lib/glob/smatch.c |
| 1589 | - collsym (single-byte version) now takes a (CHAR *) first argument to |
| 1590 | match callers; cast argument to strncmp appropriately |
| 1591 | |
| 1592 | lib/sh/snprintf.c |
| 1593 | - fix ldfallback and dfallback to handle width and precision specs in |
| 1594 | the format passed to sprintf() |
| 1595 | - fix STAR_ARGS macro to deal with negative field widths and precisions |
| 1596 | |
| 1597 | 3/25 |
| 1598 | ---- |
| 1599 | builtins/printf.def |
| 1600 | - since a negative precision in a "x.x[fFgGeE]" format specifier should |
| 1601 | be allowed but treated as if the precision were missing, let it |
| 1602 | through |
| 1603 | |
| 1604 | lib/sh/snprintf.c |
| 1605 | - fix * code to deal with a negative precision by treating it as if |
| 1606 | the `.' and any digit string in the precision had not been specified |
| 1607 | - fix format parsing code to deal with a negative inline precision, |
| 1608 | e.g., "%4.-4f" by treating it as if the `'. and any digit string in |
| 1609 | the precision had not been specified |
| 1610 | - a `+' in a format specifier should only act as a flag if it comes |
| 1611 | before a `.' (otherwise it is ignored) |
| 1612 | |
| 1613 | lib/readline/vi_mode.c |
| 1614 | - new function, rl_vi_rubout, to rl_rubout as rl_vi_delete is to |
| 1615 | rl_delete; saves deleted text for possible reinsertion as with any |
| 1616 | vi-mode `text modification' command (fixes problem with `X' reported |
| 1617 | by beat.wieland@gmx.ch) |
| 1618 | |
| 1619 | lib/readline/vi_keymap.c |
| 1620 | - bind `X' in vi command mode to rl_vi_rubout |
| 1621 | |
| 1622 | lib/readline/funmap.c |
| 1623 | - add a bindable `vi-rubout' command, runs rl_vi_rubout |
| 1624 | |
| 1625 | lib/readline/text.c |
| 1626 | - rewrote internals of _rl_rubout_char to make structure cleaner |
| 1627 | |
| 1628 | lib/readline/{complete,text}.c |
| 1629 | - changed code to remove #ifdef HANDLE_MULTIBYTE where possible |
| 1630 | |
| 1631 | 3/28 |
| 1632 | ---- |
| 1633 | lib/readline/examples/rl.c |
| 1634 | - include <sys/stat.h> instead of posixstat.h if READLINE_LIBRARY not |
| 1635 | defined |
| 1636 | |
| 1637 | subst.c |
| 1638 | - fix mbstrlen to treat invalid multibyte sequences as sequences of |
| 1639 | single-byte characters |
| 1640 | |
| 1641 | 4/8 |
| 1642 | --- |
| 1643 | configure.in |
| 1644 | - default SIZE to `:' if cross-compiling and an appropriate size for |
| 1645 | the target is not found |
| 1646 | |
| 1647 | 4/11 |
| 1648 | ---- |
| 1649 | subst.c |
| 1650 | - change match_upattern and match_wpattern to check whether or not the |
| 1651 | supplied pattern matches anywhere in the supplied string, prefixing |
| 1652 | and appending the pattern with `*' if necessary. If it doesn't we |
| 1653 | can short-circuit immediately rather than waste time doing up to |
| 1654 | N-1 unsuccessful calls to strmatch/wcsmatch (which kills for long |
| 1655 | strings, even if the pattern is short) |
| 1656 | |
| 1657 | 4/12 |
| 1658 | ---- |
| 1659 | configure.in |
| 1660 | - make sure the special case for MacOS X 10.4 only kicks in if the |
| 1661 | `--with-installed-readline' option isn't supplied |
| 1662 | |
| 1663 | lib/readline/{callback,readline,signals}.c |
| 1664 | - make sure rl_prep_term_function and rl_deprep_term_function aren't |
| 1665 | dereferenced if NULL (as the documentation says) |
| 1666 | |
| 1667 | builtins/mkbuiltins.c |
| 1668 | - don't bother with the special HAVE_BCOPY code; just use straight |
| 1669 | assignments |
| 1670 | |
| 1671 | builtins/ulimit.def |
| 1672 | - use _POSIX_PIPE_BUF in pipesize() if it's defined and PIPE_BUF is |
| 1673 | not |
| 1674 | |
| 1675 | 4/13 |
| 1676 | ---- |
| 1677 | execute_cmd.c |
| 1678 | - add cm_function_def to the list of control structures for which |
| 1679 | child processes are forked when pipes come in or out |
| 1680 | |
| 1681 | 4/14 |
| 1682 | ---- |
| 1683 | builtins/read.def |
| 1684 | - make sure the ^As added for internal quoting are not counted as |
| 1685 | characters read when -n is supplied |
| 1686 | |
| 1687 | 4/20 |
| 1688 | ---- |
| 1689 | redir.c |
| 1690 | - fix redir_open so that the repeat open on failure that AFS support |
| 1691 | adds restores the correct value of errno for any error message |
| 1692 | |
| 1693 | 4/26 |
| 1694 | ---- |
| 1695 | |
| 1696 | Makefile.in |
| 1697 | - make sure mksignames and mksyntax are invoked with the $(EXEEXT) |
| 1698 | extension |
| 1699 | |
| 1700 | 4/28 |
| 1701 | ---- |
| 1702 | lib/readline/readline.h |
| 1703 | - new state variable: RL_STATE_CALLBACK, means readline is using the |
| 1704 | callback interface |
| 1705 | |
| 1706 | lib/readline/callback.c |
| 1707 | - set RL_STATE_CALLBACK in rl_callback_handler_install, unset in |
| 1708 | rl_callback_handler_remove |
| 1709 | |
| 1710 | 4/29 |
| 1711 | ---- |
| 1712 | config-top.h |
| 1713 | - DONT_REPORT_SIGPIPE is now on by default, since it apparently |
| 1714 | interferes with scripts |
| 1715 | |
| 1716 | configure.in |
| 1717 | - arrange things so PGRP_PIPE is defined on Linux-2.4+ and version 3 |
| 1718 | kernels (ones that apparently schedule children to run before their |
| 1719 | parent) |
| 1720 | |
| 1721 | 4/30 |
| 1722 | ---- |
| 1723 | builtins/caller.def |
| 1724 | - add call to no_options, so it can handle `--' option |
| 1725 | |
| 1726 | doc/{bash.1,bashref.texi} |
| 1727 | - note explicitly that test, :, true, and false don't understand -- |
| 1728 | as meaning the end of options |
| 1729 | |
| 1730 | 5/7 |
| 1731 | --- |
| 1732 | support/shobj-conf |
| 1733 | - darwin 8 needs the same LDFLAGS setting as darwin 7 |
| 1734 | |
| 1735 | parse.y |
| 1736 | - in save_parser_state, make sure we cast the return value from |
| 1737 | xmalloc() to the right type |
| 1738 | - remove casts to (char *) in calls to yyerror() |
| 1739 | |
| 1740 | lib/readline/signals.c |
| 1741 | - make SIGQUIT and SIGALRM code conditional on their definition |
| 1742 | - use raise() to send a signal if we don't have kill() |
| 1743 | |
| 1744 | lib/readline/display.c |
| 1745 | - some MS-DOS and MINGW changes from the cygwin and mingw folks |
| 1746 | |
| 1747 | config.h.in |
| 1748 | - add HAVE_PWD_H for <pwd.h> |
| 1749 | - add HAVE_FCNTL, HAVE_KILL for respective system calls |
| 1750 | - add HAVE_GETPW{ENT,NAM,UID} for passwd functions |
| 1751 | |
| 1752 | configure.in |
| 1753 | - add check for <pwd.h> |
| 1754 | - add checks for fcntl, kill system calls |
| 1755 | - add checks for getpw{ent,nam,uid} C library functions |
| 1756 | - pass a flag indicating we're cross compiling through to |
| 1757 | CFLAGS_FOR_BUILD in Makefile.in |
| 1758 | |
| 1759 | lib/readline/complete.c |
| 1760 | - guard inclusion of <pwd.h> with HAVE_PWD_H |
| 1761 | - don't provide a missing declaration for getpwent if we don't have it |
| 1762 | - guard calls to {get,end}pwent with HAVE_GETPWENT |
| 1763 | |
| 1764 | lib/readline/shell.c |
| 1765 | - guard inclusion of <pwd.h> with HAVE_PWD_H |
| 1766 | - guard inclusion of <fcntl.h> with HAVE_FCNTL_H |
| 1767 | - don't provide a missing declaration for getpwuid if we don't have it |
| 1768 | - guard calls to getpwuid with HAVE_GETPWUID |
| 1769 | - don't bother with body of sh_unset_nodelay_mode if we don't have |
| 1770 | fcntl |
| 1771 | |
| 1772 | lib/tilde/tilde.c |
| 1773 | - guard inclusion of <pwd.h> with HAVE_PWD_H |
| 1774 | - guard calls to getpw{nam,uid} with HAVE_GETPW{NAM,UID} |
| 1775 | - guard calls to {get,end}pwent with HAVE_GETPWENT |
| 1776 | |
| 1777 | Makefile.in,builtins/Makefile.in |
| 1778 | - @CROSS_COMPILE@ is substituted into CFLAGS_FOR_BUILD (equal to |
| 1779 | -DCROSS_COMPILING if bash is being cross-compiled) |
| 1780 | |
| 1781 | 5/9 |
| 1782 | --- |
| 1783 | aclocal.m4 |
| 1784 | - print version as `0.0' in RL_LIB_READLINE_VERSION if the |
| 1785 | `rl_gnu_readline_p' variable isn't 1 (accept no imitations) |
| 1786 | |
| 1787 | 5/11 |
| 1788 | ---- |
| 1789 | lib/readline/rlprivate.h |
| 1790 | - definition of a readline `search context', to be use for incremental |
| 1791 | search initially and other types of search later. Original from |
| 1792 | Bob Rossi as part of work on incremental searching problems when |
| 1793 | using callback interface |
| 1794 | |
| 1795 | lib/readline/isearch.c |
| 1796 | - functions to allocate and free search contexts |
| 1797 | - function to take a search context and a character just read and |
| 1798 | `dispatch' on it: change search parameters, add to search string, |
| 1799 | search further, etc. |
| 1800 | - isearch is now completely context-driven: a search context is |
| 1801 | allocated and passed to the rest of the functions |
| 1802 | |
| 1803 | 5/12 |
| 1804 | ---- |
| 1805 | lib/readline/isearch.c |
| 1806 | - an additional `isearch cleanup' function that can be called from |
| 1807 | the callback interface functions when the search is to be terminated |
| 1808 | - an additional `isearch callback' function that can be called from |
| 1809 | rl_callback_read_char when input is available |
| 1810 | - short-circuit from rl_search_history after initialization if |
| 1811 | the callback interface is being used |
| 1812 | |
| 1813 | lib/readline/callback.c |
| 1814 | - in rl_callback_read_char(), if RL_STATE_ISEARCH is set, call |
| 1815 | _rl_isearch_callback to read the character and dispatch on it. |
| 1816 | If RL_STATE_ISEARCH is unset when that call returns, and there is |
| 1817 | input pending, call rl_callback_read_char() again so we don't |
| 1818 | have to wait for new input to pick it up |
| 1819 | |
| 1820 | support/shobj-conf,configure.in |
| 1821 | - add support for dragonfly bsd, the same as freebsd |
| 1822 | |
| 1823 | 5/13-5/15 |
| 1824 | --------- |
| 1825 | lib/readline/callback.c |
| 1826 | - support for readline functions to `register' a function that will |
| 1827 | be called when more input is available, with a generic data |
| 1828 | structure to encapsulate the arguments and parameters. Primarily |
| 1829 | intended for functions that read a single additional character, |
| 1830 | like quoted-insert |
| 1831 | - support for callback code reading numeric arguments in a loop, |
| 1832 | using readline state and an auxiliary variable |
| 1833 | - support for callback code performing non-incremental searches using |
| 1834 | the same search context struct as the isearch code |
| 1835 | |
| 1836 | lib/readline/{callback,display}.c |
| 1837 | - if a callback function sets `_rl_redisplay_wanted', the redisplay |
| 1838 | function will be called as soon as it returns |
| 1839 | |
| 1840 | lib/readline/input.c |
| 1841 | - changes to _rl_read_mbchar to handle reading the null multibyte |
| 1842 | character and translating it into '\0' |
| 1843 | |
| 1844 | lib/readline/misc.c |
| 1845 | - break rl_digit_loop() into component functions that can be called |
| 1846 | individually from the callback code more easily |
| 1847 | - share some of the functions with rl_digit_loop1() in vi_mode.c |
| 1848 | |
| 1849 | lib/readline/readline.h |
| 1850 | - change the version #defines to reflect readline 5.1 |
| 1851 | |
| 1852 | lib/readline/search.c |
| 1853 | - break code into smaller functions that can be composed to work with |
| 1854 | the callback code more easily |
| 1855 | |
| 1856 | lib/readline/text.c |
| 1857 | - in rl_quoted_insert(), don't mess around with the tty signals if |
| 1858 | running in `callback mode' |
| 1859 | |
| 1860 | lib/readline/vi_mode.c |
| 1861 | - changed set-mark, goto-mark, change-char, and char-search to work |
| 1862 | when called by callback functions |
| 1863 | |
| 1864 | 5/17 |
| 1865 | ---- |
| 1866 | |
| 1867 | lib/readline/rlprivate.h |
| 1868 | - new struct declaration for a `reading key sequence' context |
| 1869 | |
| 1870 | lib/readline/readline.c |
| 1871 | - new variable, _rl_dispatching_keymap, keeps track of which keymap |
| 1872 | we are currently searching |
| 1873 | - functions to allocate and deallocate contexts for reading multi-char |
| 1874 | key sequences |
| 1875 | |
| 1876 | 5/18 |
| 1877 | ---- |
| 1878 | lib/readline/rlprivate.h |
| 1879 | - new struct defining a context for multiple-key key sequences (the |
| 1880 | base case is escape-prefixed commands) |
| 1881 | |
| 1882 | lib/readline/readline.c |
| 1883 | - change structure of _rl_dispatch_subseq to allow for callback code |
| 1884 | to use it - rudimentary support for supporting the existing |
| 1885 | recursion using a stack of contexts, each with a reference to the |
| 1886 | previous |
| 1887 | - fix so that ^G works when in callback mode |
| 1888 | |
| 1889 | lib/readline/callback.c |
| 1890 | - call the appropriate multiple-key sequence callback if the state is |
| 1891 | set |
| 1892 | |
| 1893 | 5/19 |
| 1894 | ---- |
| 1895 | lib/readline/readline.c |
| 1896 | - broke code from _readline_internal_char after call to rl_dispatch |
| 1897 | out into separate function: _rl_internal_char_cleanup, callable by |
| 1898 | other parts of the code |
| 1899 | - change _rl_internal_char_cleanup to unset _rl_want_redisplay after |
| 1900 | it calls (*rl_redisplay_func) |
| 1901 | |
| 1902 | lib/readline/callback.c |
| 1903 | - call _rl_internal_char_cleanup from rl_callback_read_char when |
| 1904 | appropriate |
| 1905 | |
| 1906 | 5/24 |
| 1907 | ---- |
| 1908 | lib/readline/callback.c |
| 1909 | - use _rl_dispatch_callback and a chain of _rl_keyseq_contexts to |
| 1910 | simulate the recursion used to decode multicharacter key sequences |
| 1911 | (even things like ESC- as meta-prefix) |
| 1912 | - call setjmp in rl_callback_read_char to give things like rl_abort |
| 1913 | a place to jump, since the saved location in readline() will not |
| 1914 | be valid |
| 1915 | - keep calling _rl_dispatch_callback from rl_callback_read_char while |
| 1916 | we are still decoding a multi-key key sequence |
| 1917 | - keep calling readline_internal_char from rl_callback_read_char while |
| 1918 | we are reading characters from a macro |
| 1919 | |
| 1920 | lib/readline/macro.c |
| 1921 | - use a slightly different strategy upon encountering the end of a macro |
| 1922 | when using the callback interface: when the last character of a |
| 1923 | macro is read, and we are reading a command, pop the macro off the |
| 1924 | stack immediately so the loop in rl_callback_read_char terminates |
| 1925 | when it should |
| 1926 | |
| 1927 | lib/readline/readline.c |
| 1928 | - if longjmp() is called and we end up at the saved location while |
| 1929 | using the callback interface, just return -- don't go back into a |
| 1930 | blocking read |
| 1931 | - new function to dispose a chain of rl_keyseq_cxts |
| 1932 | - only read new input in _rl_dispatch_callback if the KSEQ_DISPATCHED |
| 1933 | flag is not set in the current keyseq context -- if it is, we are |
| 1934 | traversing the chain back up and should use what we already saved |
| 1935 | - use -3 as a magic value from _rl_dispatch_subseq to indicate that |
| 1936 | we're allocating a new context and moving downward in the chain |
| 1937 | (a special return value for the benefit of _rl_dispatch_callback) |
| 1938 | |
| 1939 | lib/readline/rlprivate.h |
| 1940 | - new extern declaration for _rl_keyseq_chain_dispose |
| 1941 | |
| 1942 | 6/1 |
| 1943 | --- |
| 1944 | builtins/read.def |
| 1945 | - fixed a bug that occurred when reading a set number of chars and |
| 1946 | the nth char is a backslash (read one too many). Bug reported by |
| 1947 | Chris Morgan <chmorgan@gmail.com> |
| 1948 | |
| 1949 | execute_cmd.c |
| 1950 | - fix execute_builtin so the `unset' builtin also operates on the |
| 1951 | temporary environment in POSIX mode (as well as source and eval), |
| 1952 | so that unsetting variables in the temporary environment doesn't |
| 1953 | leave them set when unset completes. Report by Eric Blake |
| 1954 | <ebb9@byu.net> |
| 1955 | |
| 1956 | array.c |
| 1957 | - fix from William Park for array_rshift when shifting right on an |
| 1958 | empty array -- corrects calculation of array->max_index |
| 1959 | |
| 1960 | builtins/exec.def |
| 1961 | - if an exec fails and the execfail option is set, don't call |
| 1962 | restart_job_control unless the shell is interactive or job_control |
| 1963 | is set |
| 1964 | |
| 1965 | jobs.c |
| 1966 | - add a run-time check for WCONTINUED being defined in header files |
| 1967 | but rejected with EINVAL by waitpid(). Fix from Maciej Rozycki |
| 1968 | <macro@linux-mips.org> |
| 1969 | |
| 1970 | 6/20 |
| 1971 | ---- |
| 1972 | bashhist.c |
| 1973 | - make sure calls to sv_histchars are protected by #ifdef BANG_HISTORY |
| 1974 | - ditto for calls to history_expand_line_internal |
| 1975 | |
| 1976 | 6/23 |
| 1977 | ---- |
| 1978 | doc/bashref.texi |
| 1979 | - remove extra blank lines in @menu constructs |
| 1980 | |
| 1981 | variables.c |
| 1982 | - assign export_env to environ (extern char **) every time it changes |
| 1983 | (mostly in add_to_export_env define), so maybe getenv will work on |
| 1984 | systems that don't allow it to be replaced |
| 1985 | |
| 1986 | 6/29 |
| 1987 | ---- |
| 1988 | bashline.c |
| 1989 | - in bash_directory_completion_hook, be careful about not turning `/' |
| 1990 | into `//' and `//' into `///' for benefit of those systems that treat |
| 1991 | `//' as some sort of `network root'. Fix from Eric Blake |
| 1992 | <ebb9@byu.net> |
| 1993 | |
| 1994 | lib/readline/complete.c |
| 1995 | - in to_print, do the right thing after stripping the trailing slash |
| 1996 | from full_pathname: // doesn't turn into /, and /// doesn't become |
| 1997 | //. Fix from Eric Blake <ebb9@byu.net> |
| 1998 | |
| 1999 | 6/30 |
| 2000 | ---- |
| 2001 | lib/malloc/trace.c |
| 2002 | - include <unistd.h> if it's available for a definition of size_t |
| 2003 | |
| 2004 | jobs.c |
| 2005 | - in wait_for, if a child process is marked as running but waitpid() |
| 2006 | returns -1/ECHILD (e.g., when the bash process is being traced by |
| 2007 | strace), make sure to increment c_reaped when marking the child as |
| 2008 | dead |
| 2009 | - in without_job_control, make sure to close the pgrp pipe after |
| 2010 | calling start_pipeline |
| 2011 | |
| 2012 | 7/1 |
| 2013 | --- |
| 2014 | Makefile.in |
| 2015 | - only remove pathnames.h when the other files created by running |
| 2016 | configure are removed (e.g., Makefile). Fix from William Park |
| 2017 | |
| 2018 | lib/sh/shquote.c |
| 2019 | - since backslash-newline disappears when within double quotes, don't |
| 2020 | add a backslash in front of a newline in sh_double_quote. Problem |
| 2021 | reported by William Park |
| 2022 | |
| 2023 | jobs.c |
| 2024 | - in notify_of_job_status, don't print status messages about |
| 2025 | terminated background processes unless job control is active |
| 2026 | |
| 2027 | bashhist.c |
| 2028 | - new variable, hist_last_line_pushed, set to 0 in really_add_history |
| 2029 | (used by `history -s' code) |
| 2030 | |
| 2031 | bashhist.h |
| 2032 | - new extern declaration for history -s |
| 2033 | |
| 2034 | builtins/history.def |
| 2035 | - don't remove last history entry in push_history if it was added by |
| 2036 | a call to push_history -- use hist_last_line_pushed as a sentinel |
| 2037 | and set it after adding history entry. This allows multiple |
| 2038 | calls to history -s to work right: adding all lines to the history |
| 2039 | rather than deleting all but the last. Bug reported by Matthias |
| 2040 | Schniedermeyer <ms@citd.de> |
| 2041 | - pay attention to hist_last_line_pushed in expand_and_print_history() |
| 2042 | so we don't delete an entry pushed by history -s |
| 2043 | |
| 2044 | 7/4 |
| 2045 | --- |
| 2046 | print_cmd.c |
| 2047 | - fix print_arith_for_command to not print so many blanks between |
| 2048 | expressions in ((...)) |
| 2049 | |
| 2050 | command.h |
| 2051 | - new word flag: W_DQUOTE. Means word should be treated as if double |
| 2052 | quoted |
| 2053 | |
| 2054 | make_cmd.c |
| 2055 | - add W_DQUOTE to word flags in make_arith_for_expr |
| 2056 | |
| 2057 | parse.y |
| 2058 | - add W_DQUOTE to word flags for (( ... )) arithmetic commands |
| 2059 | |
| 2060 | subst.c |
| 2061 | - don't perform tilde expansion on a word with W_DQUOTE flag set |
| 2062 | - don't perform process substitution on a word with W_DQUOTE flag set |
| 2063 | |
| 2064 | arrayfunc.c |
| 2065 | - expand an array index within [...] the same way as an arithmetic |
| 2066 | expansion between (( ... )) |
| 2067 | |
| 2068 | lib/readline/input.c |
| 2069 | - use getch() instead of read() on mingw |
| 2070 | |
| 2071 | lib/readline/readline.c |
| 2072 | - add a few key bindings for the arrow keys on mingw |
| 2073 | |
| 2074 | lib/readline/rldefs.h |
| 2075 | - if on mingw, define NO_TTY_DRIVER |
| 2076 | |
| 2077 | lib/readline/rltty.c |
| 2078 | - compile in the stub functions for _rl_{disable,restore}_tty_signals |
| 2079 | if on mingw |
| 2080 | - compile in stub function for rl_restart_output on mingw |
| 2081 | - make sure enough functions and macros are defined to compile if |
| 2082 | NO_TTY_DRIVER is defined (lightly tested - builds on MacOS X, at |
| 2083 | least) |
| 2084 | |
| 2085 | 7/7 |
| 2086 | --- |
| 2087 | command.h |
| 2088 | - add a `flags' member to the PATTERN_LIST structure |
| 2089 | |
| 2090 | make_cmd.c |
| 2091 | - intialize the `flags' member of a PATTERN_LIST when it's created |
| 2092 | |
| 2093 | builtins/psize.c |
| 2094 | - protect extern declaration of errno with usual #ifdef errno |
| 2095 | |
| 2096 | configure.in, variables.c |
| 2097 | - changes for QNX 6.x |
| 2098 | |
| 2099 | 7/9 |
| 2100 | --- |
| 2101 | parse.y |
| 2102 | - fix parse_matched_pair to handle single and double quoted strings |
| 2103 | inside old-style command substitution (``) since they can each |
| 2104 | quote the ` and embedded $-expansions. Report by Eric Blake |
| 2105 | <ebb9@byu.net> |
| 2106 | |
| 2107 | {configure,Makefile}.in |
| 2108 | - TILDE_LIB is now substituted into Makefile by configure |
| 2109 | |
| 2110 | configure.in |
| 2111 | - if configuring --with-installed-readline on cygwin, set TILDE_LIB |
| 2112 | to the empty string to avoid multiply-defined symbols. Cygwin |
| 2113 | doesn't allow undefined symbols in dynamic libraries. Report by |
| 2114 | Eric Blake <ebb9@byu.net> |
| 2115 | |
| 2116 | 7/11 |
| 2117 | ---- |
| 2118 | input.c |
| 2119 | - in duplicate_buffered_stream, don't call free_buffered_stream if the |
| 2120 | two buffered streams share the same b_buffer object (e.g., if they |
| 2121 | had already been duplicated with a previous call). Fixes Debian bug |
| 2122 | reported by eero17@bigfoot.com |
| 2123 | |
| 2124 | 7/12 |
| 2125 | ---- |
| 2126 | shell.c |
| 2127 | - make set_shell_name more resistant to a NULL argument |
| 2128 | - in bind_args, use < instead of != when counting the arguments and |
| 2129 | making the arg list |
| 2130 | - in main(), make sure arg_index is not initialized to a value greater |
| 2131 | than argc |
| 2132 | |
| 2133 | 7/14 |
| 2134 | ---- |
| 2135 | lib/readline/display.c |
| 2136 | - in expand_prompt, don't set the location of the last invisible |
| 2137 | char if the sequence is zero length (\[\]) |
| 2138 | |
| 2139 | 7/15 |
| 2140 | ---- |
| 2141 | doc/{bash.1,bashref.texi} |
| 2142 | - document that the shell uses $TMPDIR when creating temporary files |
| 2143 | |
| 2144 | 7/20 |
| 2145 | ---- |
| 2146 | [bash-3.1-alpha1 frozen] |
| 2147 | |
| 2148 | 7/29 |
| 2149 | ---- |
| 2150 | builtins/evalstring.c |
| 2151 | - make sure that parse_and_execute saves and restores the value of |
| 2152 | loop_level, so loops in sourced scripts and eval'd strings don't |
| 2153 | mess up the shell's parser state |
| 2154 | |
| 2155 | bashline.c |
| 2156 | - change command_subst_completion_function to suppress appending |
| 2157 | any character to a unique completion, instead of a space, unless |
| 2158 | the last word in the quoted command substitution completes to a |
| 2159 | directory name. In that case we append the expected slash |
| 2160 | |
| 2161 | 8/1 |
| 2162 | --- |
| 2163 | builtins/printf.def |
| 2164 | - make sure variables are initialized if their values are tested later |
| 2165 | |
| 2166 | [bash-3.1-alpha1 updated and re-frozen] |
| 2167 | |
| 2168 | 8/2 |
| 2169 | --- |
| 2170 | variables.c |
| 2171 | - make sure to call stifle_history with an `int' instead of an intmax_t. |
| 2172 | Sometimes it makes a difference |
| 2173 | |
| 2174 | 8/3 |
| 2175 | --- |
| 2176 | [bash-3.1-alpha1 released] |
| 2177 | |
| 2178 | support/mksignames.c |
| 2179 | - add `SIGSTKFLT' (RHE3) |
| 2180 | - add `SIGXRES' (Solaris 9) |
| 2181 | |
| 2182 | 8/4 |
| 2183 | --- |
| 2184 | builtins/ulimit.def |
| 2185 | - fix typo to make `x' the right option for locks |
| 2186 | - add new options to short help synopsis |
| 2187 | |
| 2188 | variables.c |
| 2189 | - use get_variable_value instead of direct reference to value_cell |
| 2190 | in make_variable_value when appending to the current value, so |
| 2191 | references to array variables without subscripts will be equivalent |
| 2192 | to element 0 |
| 2193 | |
| 2194 | lib/readline/text.c |
| 2195 | - rewrote rl_change_case to correctly change the case of multibyte |
| 2196 | characters where appropriate |
| 2197 | |
| 2198 | 8/5 |
| 2199 | --- |
| 2200 | configure.in |
| 2201 | - remove call to obsolete macro AC_ACVERSION |
| 2202 | - remove special calls to AC_CYGWIN and AC_MINGW32; AC_CANONICAL_HOST |
| 2203 | takes care of those cases |
| 2204 | |
| 2205 | general.h |
| 2206 | - include `chartypes.h' for definition of ISALPHA |
| 2207 | - fix definitions of ABSPATH and RELPATH for cygwin |
| 2208 | - fix definition of ISDIRSEP for cygwin to allow backslash as a |
| 2209 | directory name separator |
| 2210 | |
| 2211 | 8/9 |
| 2212 | --- |
| 2213 | builtins/setattr.def |
| 2214 | - when setting a variable from the temporary environment in |
| 2215 | set_var_attribute (e.g., `LC_ALL=C export LC_ALL'), make sure to |
| 2216 | call stupidly_hack_special_variables after binding the variable in |
| 2217 | the current context |
| 2218 | |
| 2219 | builtins/printf.def |
| 2220 | - make sure to call stupidly_hack_special_variables if using `printf -v' |
| 2221 | to put formatted output in a shell variable |
| 2222 | |
| 2223 | 8/11 |
| 2224 | ---- |
| 2225 | support/shobj-conf |
| 2226 | - new variable: SHLIB_LIBPREF, prefix for shared library name (defaults |
| 2227 | to `lib' |
| 2228 | - new variable: SHLIB_DLLVERSION, used on Cygwin to set the library |
| 2229 | version number |
| 2230 | - new variable: SHLIB_DOT, separator character between library name and |
| 2231 | suffix and version information (defaults to `.') |
| 2232 | - new stanza for cygwin to generate windows-compatible dll |
| 2233 | |
| 2234 | 8/14 |
| 2235 | ---- |
| 2236 | variables.c |
| 2237 | - new special variable function for Cygwin, so the export environment |
| 2238 | is remade when HOME is changed. The environment is the only way to |
| 2239 | get information from the shell to cygwin dlls, for instanace, when |
| 2240 | bash is compiled to use an already-installed libreadline |
| 2241 | |
| 2242 | variables.h |
| 2243 | - new extern declaration for sv_home |
| 2244 | |
| 2245 | 8/15 |
| 2246 | ---- |
| 2247 | lib/readline/display.c |
| 2248 | - call init_line_structures from rl_redisplay if vis_lbreaks == 0 |
| 2249 | to avoid consequences of a poorly-timed SIGWINCH |
| 2250 | |
| 2251 | 8/16 |
| 2252 | ---- |
| 2253 | subst.c |
| 2254 | - fix logic for performing tilde expansion when in posix mode (don't |
| 2255 | rely on W_TILDEEXP flag always being set, because it won't be when |
| 2256 | expanding the RHS of assignment statement). Use W_TILDEEXP only |
| 2257 | when deciding to expand a word marked as W_ASSIGNMENT that doesn't |
| 2258 | precede a command name |
| 2259 | |
| 2260 | 8/17 |
| 2261 | ---- |
| 2262 | execute_cmd.c |
| 2263 | - in execute_function, when subshell == 1, don't short-cut by using |
| 2264 | the command contained in the group command -- if you do, any |
| 2265 | redirections attached to the group command (function) don't get |
| 2266 | executed |
| 2267 | |
| 2268 | general.h |
| 2269 | - new #define, FS_READABLE, indicates file is readable by current |
| 2270 | user |
| 2271 | |
| 2272 | findcmd.c |
| 2273 | - rewrote file_status to use S_xxx POSIX file mode bits and to add |
| 2274 | support for FS_READABLE (affects ./source and searching $PATH for |
| 2275 | scripts whose names are supplied as arguments on the command line) |
| 2276 | - change find_path_file to look for readable files -- source requires |
| 2277 | it |
| 2278 | - change find_in_path_element to do the right thing when FS_READABLE |
| 2279 | is supplied as a flag |
| 2280 | |
| 2281 | doc/bashref.texi |
| 2282 | - remove note about posix non-compliance in `.': we now require and |
| 2283 | look for readable files when searching $PATH |
| 2284 | |
| 2285 | 8/20 |
| 2286 | ---- |
| 2287 | subst.c |
| 2288 | - fix setifs to handle case where passed variable is non-zero but |
| 2289 | v->value == 0 (as in an unset local variable); treat IFS as unset |
| 2290 | in this case |
| 2291 | |
| 2292 | jobs.c |
| 2293 | - in kill_pid, if asked to killpg a process or pgrp whose pgrp is |
| 2294 | recorded as the same as the shell's, just call killpg and let the |
| 2295 | chips fall where they may -- there may be other processes in that |
| 2296 | pgrp that are not children of the shell, so killing each process |
| 2297 | in the pipeline will not do a complete job, and killpg'ing each |
| 2298 | such process will send too many signals in the majority of cases |
| 2299 | |
| 2300 | builtins/cd.def |
| 2301 | - in posix mode, pwd needs to check that the value it prints and `.' |
| 2302 | are the same file |
| 2303 | |
| 2304 | builtins/read.def |
| 2305 | - if reading input from stdin in a non-interactive shell and calling |
| 2306 | `read', call sync_buffered_stream to seek backward in the input |
| 2307 | stream if necessary (XXX - should we do this for all shell builtins?) |
| 2308 | |
| 2309 | 8/23 |
| 2310 | ---- |
| 2311 | builtins/cd.def |
| 2312 | - in posix mode, if canonicalization of the absolute pathname fails |
| 2313 | because the path length exceeds PATH_MAX, but the length of the passed |
| 2314 | (non-absolute) pathname does not, attempt the chdir, just as when |
| 2315 | not in posix mode |
| 2316 | |
| 2317 | builtins/type.def |
| 2318 | - don't have describe_command call sh_makepath if the full path found |
| 2319 | is already an absolute pathname (sh_makepath will stick $PWD onto the |
| 2320 | front of it) |
| 2321 | |
| 2322 | 8/24 |
| 2323 | ---- |
| 2324 | |
| 2325 | jobs.c |
| 2326 | - in posix mode, don't have start_job print out and indication of |
| 2327 | whether the job started by `bg' is the current or previous job |
| 2328 | - change start_job to return success if a job to be resumed in the |
| 2329 | background is already running. This means that bg won't fail when |
| 2330 | asked to bg a background job, as SUSv3/XPG6 requires |
| 2331 | - new function, init_job_stats, to zero out the global jobstats struct |
| 2332 | |
| 2333 | {jobs,nojobs}.c |
| 2334 | - change kill_pid to handle pids < -1 by killing process groups |
| 2335 | |
| 2336 | jobs.h |
| 2337 | - extern declaration for init_job_stats |
| 2338 | |
| 2339 | lib/readline/history.c |
| 2340 | - check whether or not the history list is null in remove_history |
| 2341 | |
| 2342 | builtins/history.def |
| 2343 | - delete_last_history is no longer static so fc builtin can use it |
| 2344 | |
| 2345 | builtins/fc.def |
| 2346 | - use free_history_entry in fc_replhist instead of freeing struct |
| 2347 | members individually |
| 2348 | - call delete_last_history from fc_replhist instead of using inline |
| 2349 | code |
| 2350 | - if editing (-l not specified), make sure the fc command that caused |
| 2351 | the editing is removed from the history list, as POSIX specifies |
| 2352 | |
| 2353 | builtins/kill.def |
| 2354 | - just call kill_pid with any pid argument and let it handle pids < -1 |
| 2355 | This is the only way to let kill_pid know whether a negative pid or |
| 2356 | a job spec was supplied as an argument to kill |
| 2357 | |
| 2358 | builtins/fg_bg.def |
| 2359 | - force fg_bg to return EXECUTION_SUCCESS explicitly if called by bg |
| 2360 | and start_job returns successfully |
| 2361 | - bg now returns success only if all the specified jobs were resumed |
| 2362 | successfully |
| 2363 | |
| 2364 | execute_cmd.c |
| 2365 | - call init_job_stats from initialize_subshell to zero out the global |
| 2366 | job stats structure |
| 2367 | |
| 2368 | 8/25 |
| 2369 | ---- |
| 2370 | bashline.c |
| 2371 | - change vi_edit_and_execute_command to just call vi when in posix |
| 2372 | mode, instead of checking $FCEDIT and $EDITOR |
| 2373 | |
| 2374 | lib/readline/search.c |
| 2375 | - if in vi_mode, call rl_free_undo_list in make_history_line_current |
| 2376 | to dispose of undo list accumulated while reading the search string |
| 2377 | (if this isn't done, since vi mode leaves the current history |
| 2378 | position at the entry which matched the search, the call to |
| 2379 | rl_revert_line in rl_internal_teardown will mangle the matched |
| 2380 | history entry using a bogus rl_undo_list) |
| 2381 | - call rl_free_undo_list after reading a non-incremental search string |
| 2382 | into rl_line_buffer -- that undo list should be discarded |
| 2383 | |
| 2384 | lib/readline/rlprivate.h |
| 2385 | - add UNDO_LIST * member to search context struct |
| 2386 | |
| 2387 | lib/readline/isearch.c |
| 2388 | - initialize UNDO_LIST *save_undo_list member of search context struct |
| 2389 | |
| 2390 | 8/27 |
| 2391 | ---- |
| 2392 | lib/readline/bind.c |
| 2393 | - change rl_parse_and_bind to strip whitespace from the end of a |
| 2394 | variable value assignment before calling rl_variable_bind |
| 2395 | |
| 2396 | doc/bash.1,lib/readline/doc/{rluser.texi,readline.3} |
| 2397 | - clarified the language concerning parsing values for boolean |
| 2398 | variables in assignment statements |
| 2399 | |
| 2400 | 8/28 |
| 2401 | ---- |
| 2402 | lib/sh/pathphys.c |
| 2403 | - fix small memory leak in sh_realpath reported by Eric Blake |
| 2404 | |
| 2405 | 8/31 |
| 2406 | ---- |
| 2407 | doc/bashref.texi |
| 2408 | - add additional notes to posix mode section |
| 2409 | |
| 2410 | 9/3 |
| 2411 | --- |
| 2412 | parse.y |
| 2413 | - if $'...' occurs within a ${...} parameter expansion within |
| 2414 | double quotes, don't single-quote the expanded result -- the double |
| 2415 | quotes will cause it to be expanded incorrectly |
| 2416 | |
| 2417 | 9/4 |
| 2418 | --- |
| 2419 | builtins/fc.def |
| 2420 | - if STRICT_POSIX is defined, the posix mode default for the editor to |
| 2421 | use is $FCEDIT, then ed |
| 2422 | |
| 2423 | shell.c |
| 2424 | - if STRICT_POSIX is defined, initialize `posixly_correct' to 1 |
| 2425 | |
| 2426 | config.h.in |
| 2427 | - add #undef STRICT_POSIX |
| 2428 | |
| 2429 | 9/5 |
| 2430 | --- |
| 2431 | configure.in |
| 2432 | - add new option argument, --enable-strict-posix-default, configures |
| 2433 | bash to be posix-conformant (including defaulting echo to posix |
| 2434 | conformance) by default |
| 2435 | |
| 2436 | builtins/echo.def |
| 2437 | - if STRICT_POSIX is defined, default echo to xpg-style |
| 2438 | |
| 2439 | doc/bashref.texi |
| 2440 | - describe the --enable-strict-posix-default option to configure |
| 2441 | |
| 2442 | 9/10 |
| 2443 | ---- |
| 2444 | builtins/mkbuiltins.c |
| 2445 | - change to not generate N_(""), because the translated empty string is |
| 2446 | special to GNU gettext |
| 2447 | |
| 2448 | 9/13 |
| 2449 | ---- |
| 2450 | lib/readline/complete.c |
| 2451 | - a negative value for rl_completion_query_items means to not ask |
| 2452 | |
| 2453 | lib/readline/doc/{{rltech,rluser}.texi,readline.3} |
| 2454 | - documented new semantics for rl_completion_query_items/ |
| 2455 | completion-query-items |
| 2456 | |
| 2457 | 9/14 |
| 2458 | ---- |
| 2459 | bashline.c |
| 2460 | - bind M-TAB in emacs mode to dynamic-complete-history even if the |
| 2461 | current binding is `tab-insert' (which is what it is by default), |
| 2462 | not just if it's unbound |
| 2463 | |
| 2464 | 9/15 |
| 2465 | ---- |
| 2466 | eval.c |
| 2467 | - call QUIT before calling dispose_command on current_command after |
| 2468 | the `exec_done' label. If we dispose current_command first, the |
| 2469 | longjmp might restore the value of current_command after we've |
| 2470 | disposed it, and the subsequent call to dispose_command from the |
| 2471 | DISCARD case will free memory twice |
| 2472 | |
| 2473 | 9/16 |
| 2474 | ---- |
| 2475 | lib/sh/strto[iu]max.c |
| 2476 | - make sure the function being declared is not a cpp define before |
| 2477 | defining it -- should fix problems on HP-UX |
| 2478 | |
| 2479 | 9/19 |
| 2480 | ---- |
| 2481 | Makefile.in |
| 2482 | - make sure the binaries for the tests are at the front of $PATH |
| 2483 | |
| 2484 | 9/22 |
| 2485 | ---- |
| 2486 | parse.y |
| 2487 | - new flag for parse_matched_pair: P_COMMAND, indicating that the |
| 2488 | text being parsed is a command (`...`, $(...)) |
| 2489 | - change calls to parse_matched_pair to include P_COMMAND where |
| 2490 | appropriate |
| 2491 | - if P_COMMAND flag is set and the text is unquoted, check for comments |
| 2492 | and don't try to parse embedded quoted strings if in a comment (still |
| 2493 | not exactly right yet) |
| 2494 | |
| 2495 | 9/24 |
| 2496 | ---- |
| 2497 | builtins/history.def |
| 2498 | - if running history -n, don't count these new lines as history lines |
| 2499 | for the current session if the `histappend' shell option is set. |
| 2500 | If we're just appending to the history file, the issue that caused |
| 2501 | history_lines_this_session to be recalculated doesn't apply -- the |
| 2502 | history file won't be missing any entries |
| 2503 | |
| 2504 | lib/readline/isearch.c |
| 2505 | - fix C-w handler for isearch string reader to handle multibyte chars |
| 2506 | |
| 2507 | lib/readline/rlmbutil.h |
| 2508 | - new defines for _rl_to_wupper and _rl_to_wlower |
| 2509 | |
| 2510 | lib/readline/text.c |
| 2511 | - use _rl_to_wupper and _rl_to_wlower as appropriate |
| 2512 | |
| 2513 | 9/26 |
| 2514 | ---- |
| 2515 | execute_cmd.c |
| 2516 | - in shell_execve, if the exec fails due to E2BIG or ENOMEM, just print |
| 2517 | the appropriate error message instead of checking out any interpreter |
| 2518 | specified with #! |
| 2519 | |
| 2520 | 9/30 |
| 2521 | ---- |
| 2522 | bashhist.c |
| 2523 | - make $HISTCMD available anytime remember_on_history is non-zero, |
| 2524 | which indicates that we're saving commands to the history, and |
| 2525 | let it evaluate to 1 if we're not |
| 2526 | |
| 2527 | 10/4 |
| 2528 | ---- |
| 2529 | lib/sh/snprintf.c |
| 2530 | - in floating(), make sure d != 0 before calling chkinfnan -- gcc on the |
| 2531 | version of Solaris 9 I have translates 0 to -inf on the call |
| 2532 | |
| 2533 | [bash-3.1-beta1 frozen] |
| 2534 | |
| 2535 | 10/6 |
| 2536 | ---- |
| 2537 | jobs.c |
| 2538 | - set the_pipeline to NULL right away in cleanup_the_pipeline, and |
| 2539 | dispose a copy of the pointer so we don't mess with the_pipeline |
| 2540 | while we're in the process of destroying it |
| 2541 | - block and unblock SIGCHLD around manipulating the_pipeline in |
| 2542 | cleanup_the_pipeline |
| 2543 | |
| 2544 | 10/7 |
| 2545 | ---- |
| 2546 | [bash-3.1-beta1 released] |
| 2547 | |
| 2548 | lib/readline/isearch.c |
| 2549 | - when switching directions, make sure we turn off the SF_REVERSE |
| 2550 | flag in the search context's flags word if we're going from reverse |
| 2551 | to forward i-search |
| 2552 | |
| 2553 | lib/readline/bind.c |
| 2554 | - new function, rl_variable_value, returns a string representing a |
| 2555 | bindable readline variable's value |
| 2556 | - new auxiliary function, _rl_get_string_variable_value, encapsulates |
| 2557 | everything needed to get a bindable string variable's value |
| 2558 | - rewrote rl_variable_dumper to use _rl_get_string_variable_value |
| 2559 | |
| 2560 | lib/readline/readline.h |
| 2561 | - new extern declaration for rl_variable_value |
| 2562 | |
| 2563 | lib/readline/doc/rltech.texi |
| 2564 | - documented rl_variable_value |
| 2565 | |
| 2566 | bashline.c |
| 2567 | - in command_word_completion_function, if readline sets |
| 2568 | rl_completion_found_quote, but doesn't set rl_completion_quote_character, |
| 2569 | we have an embedded quoted string or backslash-escaped character in |
| 2570 | the passed text. We need to dequote that before calling |
| 2571 | filename_completion_function. So far, this is in place only for |
| 2572 | absolute program names (those containing a `/') |
| 2573 | - in command_word_completion_function, use rl_variable_value to decide |
| 2574 | whether or not we should ignore case, and use strncasecmp instead of |
| 2575 | strncmp where appropriate |
| 2576 | |
| 2577 | 10/11 |
| 2578 | ----- |
| 2579 | builtins/fc.def |
| 2580 | - fixed a typo when using POSIX_FC_EDIT_COMMAND |
| 2581 | |
| 2582 | redir.h |
| 2583 | - new flag values for redirections: RX_INTERNAL and RX_USER (currently |
| 2584 | unused) |
| 2585 | |
| 2586 | redir.c |
| 2587 | - add_undo_redirect and add_undo_close_redirect now set RX_INTERNAL |
| 2588 | flag when making new redirects |
| 2589 | - in do_redirection_internal, only set file descriptors > 2 to CLEXEC |
| 2590 | if they're marked as RX_INTERNAL |
| 2591 | |
| 2592 | 10/12 |
| 2593 | ----- |
| 2594 | jobs.c |
| 2595 | - in wait_for_single_pid, if in posix mode, remove the waited-for pid |
| 2596 | from the list of background pids, forgetting it entirely. POSIX |
| 2597 | conformance tests test for this. |
| 2598 | |
| 2599 | lib/readline/{readline.h,vi_mode.c} |
| 2600 | - new state flag, RL_STATE_VICMDONCE, set after entering vi command |
| 2601 | mode the first time; reset on each call to readline() |
| 2602 | |
| 2603 | 10/13 |
| 2604 | ----- |
| 2605 | lib/readline/undo.c |
| 2606 | - in rl_revert_line, make sure that revert-line in vi mode leaves |
| 2607 | rl_point set to 0 no matter the state of the line buffer |
| 2608 | |
| 2609 | lib/readline/vi_mode.c |
| 2610 | - when entering vi_command mode for the first time, free any existing |
| 2611 | undo list so the previous insertions won't be undone by the `U' |
| 2612 | command. This is how POSIX.2 says `U' should work (and the test |
| 2613 | suite tests for it) |
| 2614 | |
| 2615 | lib/readline/bind.c |
| 2616 | - change rl_parse_and_bind so only `set' commands involving boolean |
| 2617 | readline variables have trailing whitespace stripped from the value |
| 2618 | string |
| 2619 | |
| 2620 | 10/16 |
| 2621 | ----- |
| 2622 | lib/glob/sm_loop.c |
| 2623 | - fix patscan() to correctly scan backslash-escaped characters |
| 2624 | |
| 2625 | 10/18 |
| 2626 | ----- |
| 2627 | lib/sh/{winsize.c,Makefile.in},{jobs,nojobs}.c,Makefile.in,externs.h |
| 2628 | - moved get_new_window_size from jobs.c/nojobs.c to new file, |
| 2629 | lib/sh/winsize.c, made function global |
| 2630 | |
| 2631 | {jobs,nojobs,sig}.c,{jobs,sig}.h |
| 2632 | - moved SIGWINCH handling code to sig.c rather than duplicate it in |
| 2633 | jobs.c and nojobs.c |
| 2634 | - call set_sigwinch_handler from sig.c code rather than job control |
| 2635 | signal initialization |
| 2636 | |
| 2637 | sig.[ch] |
| 2638 | - new variable, sigwinch_received, acts like interrupt_state for |
| 2639 | SIGWINCH, set by sigwinch_sighandler. sigwinch_sighandler no longer |
| 2640 | calls get_new_window_size |
| 2641 | |
| 2642 | parse.y |
| 2643 | - add call to get_new_window_size if sigwinch_received at top of |
| 2644 | shell_getc |
| 2645 | |
| 2646 | 10/19 |
| 2647 | ----- |
| 2648 | lib/malloc/malloc.c |
| 2649 | - to avoid orphaning memory on free if the right bucket is busy, use a |
| 2650 | new function xplit(mem, bucket) to split the block into two or more |
| 2651 | smaller ones and add those to the right bucket (appropriately marking |
| 2652 | it as busy) |
| 2653 | - audit bsplit(), bcoalesce(), and xsplit() for proper use of busy[], |
| 2654 | since they're dealing with two separate buckets |
| 2655 | |
| 2656 | 10/22 |
| 2657 | ----- |
| 2658 | subst.c |
| 2659 | - new flag for string_extract: EX_REQMATCH, means to return an error |
| 2660 | if a matching/closing character is not found before EOS |
| 2661 | - new static flag variables: extract_string_error and extract_string_fatal |
| 2662 | - change expand_word_internal to check for new error returns from |
| 2663 | string_extract and return errors if appropriate |
| 2664 | |
| 2665 | 10/23 |
| 2666 | ----- |
| 2667 | builtins/cd.def |
| 2668 | - make sure we free TDIR in change_to_directory after calling |
| 2669 | set_working_directory (which allocates new memory) and other places |
| 2670 | we short-circuit and return |
| 2671 | |
| 2672 | 10/24 |
| 2673 | ----- |
| 2674 | subst.c |
| 2675 | - modified fix from 10/22 to allow bare ` to pass through (for |
| 2676 | some backwards compatibility and more correctness) |
| 2677 | |
| 2678 | 10/27 |
| 2679 | ----- |
| 2680 | conftypes.h |
| 2681 | - make MacOS X use the RHAPSODY code that gets HOSTTYPE, et al. |
| 2682 | at build rather than configure time, to support universal binaries |
| 2683 | (fix from llattanzi@apple.com) |
| 2684 | |
| 2685 | 10/30 |
| 2686 | ----- |
| 2687 | builtins/evalstring.c |
| 2688 | - make sure we don't turn on CMD_NO_FORK in parse_and_execute if |
| 2689 | we're running a trap command on signal receipt or exit |
| 2690 | |
| 2691 | execute_cmd.c |
| 2692 | - in shell_execve, improve the error message a little bit if the |
| 2693 | interpreter name in a #! exec header ends with a ^M (as in a DOS- |
| 2694 | format file) |
| 2695 | |
| 2696 | 11/1 |
| 2697 | ---- |
| 2698 | lib/readline/vi_mode.c |
| 2699 | - fix vi-mode `r' command to leave the cursor in the right place |
| 2700 | |
| 2701 | [bash-3.1-rc1 frozen] |
| 2702 | |
| 2703 | 11/5 |
| 2704 | ---- |
| 2705 | execute_cmd.c |
| 2706 | - make sure a DEBUG trap doesn't overwrite a command string passed to |
| 2707 | make_child in execute_simple_command |
| 2708 | |
| 2709 | bashline.c |
| 2710 | - rearrange some code in bash_quote_filename so filenames with leading |
| 2711 | tildes containing spaces aren't tilde-expanded before being |
| 2712 | returned to the caller |
| 2713 | |
| 2714 | 11/6 |
| 2715 | ---- |
| 2716 | lib/readline/display.c |
| 2717 | - when deciding where to move the cursor in rl_redisplay and needing |
| 2718 | to move the cursor back after moving it vertically and compensate |
| 2719 | for invisible characters in the prompt string, make sure that |
| 2720 | _rl_last_c_pos is treated as an absolute cursor position in a |
| 2721 | multibyte locale and the wrap offset (number of invisible characters) |
| 2722 | is added explicitly when deciding how many characters to backspace |
| 2723 | |
| 2724 | 11/10 |
| 2725 | ----- |
| 2726 | lib/readline/terminal.c |
| 2727 | - _rl_set_screen_size now interprets a lines or columns argument < 0 |
| 2728 | as an indication not to change the current value |
| 2729 | |
| 2730 | 11/11 |
| 2731 | ----- |
| 2732 | |
| 2733 | lib/readline/terminal.c |
| 2734 | - new function, rl_reset_screen_size, calls _rl_get_screen_size to |
| 2735 | reset readline's idea of the terminal size |
| 2736 | - don't call _rl_get_screen_size in _rl_init_terminal_io if both |
| 2737 | _rl_screenheight and _rl_screenwidth are > 0 |
| 2738 | - don't initialize _rl_screenheight and _rl_screenwidth to 0 in |
| 2739 | _rl_init_terminal_io; let caller take care of it |
| 2740 | - set _rl_screenheight and _rl_screenwidth to 0 before calling |
| 2741 | _rl_init_terminal_io |
| 2742 | |
| 2743 | lib/readline/readline.h |
| 2744 | - new extern declaration for rl_reset_screen_size |
| 2745 | |
| 2746 | lib/readline/doc/rltech.texi |
| 2747 | - documented rl_reset_screen_size |
| 2748 | |
| 2749 | variables.c |
| 2750 | - if readline is being used, compile in a special var function for |
| 2751 | assignments to LINES and COLUMNS that calls rl_set_screen_size or |
| 2752 | rl_reset_screen_size as appropriate. Only do this in posix mode |
| 2753 | and only when STRICT_POSIX is defined at compile time |
| 2754 | - new semaphore variable, winsize_assignment, set while doing an |
| 2755 | assignment to LINES or COLUMNS |
| 2756 | - new variable, winsize_assigned, says LINES or COLUMNS was assigned |
| 2757 | to or found in the environment |
| 2758 | - if in the middle of an assignment to LINES or COLUMNS, make |
| 2759 | sh_set_lines_and_columns a no-op |
| 2760 | |
| 2761 | lib/sh/winsize.c |
| 2762 | - get_new_window_size now takes two int * arguments, to return the |
| 2763 | screen dimensions |
| 2764 | |
| 2765 | externs.h |
| 2766 | - change extern declaration for get_new_window_size |
| 2767 | |
| 2768 | {jobs,nojobs}.c, parse.y |
| 2769 | - change callers of get_new_window_size |
| 2770 | |
| 2771 | 11/12 |
| 2772 | ----- |
| 2773 | lib/readline/terminal.c |
| 2774 | - new variable, rl_prefer_env_winsize, gives LINES and COLUMNS |
| 2775 | precedence over values from the kernel when computing window size |
| 2776 | |
| 2777 | lib/readline/readline.h |
| 2778 | - extern declaration for rl_prefer_env_winsize |
| 2779 | |
| 2780 | lib/readline/doc/rltech.texi |
| 2781 | - document rl_prefer_env_winsize |
| 2782 | |
| 2783 | 11/13 |
| 2784 | ----- |
| 2785 | lib/readline/rltty.c |
| 2786 | - change rl_prep_terminal to make sure we set and reset the tty |
| 2787 | special characters in the vi insertion keymap if in vi mode. This |
| 2788 | matters if we get accept-line for the previous line while in vi |
| 2789 | command mode |
| 2790 | |
| 2791 | 11/14 |
| 2792 | ----- |
| 2793 | builtins/pushd.def |
| 2794 | - make sure any call to cd_builtin includes a leading `--' from the |
| 2795 | argument list (or constructs one) |
| 2796 | |
| 2797 | 11/16 |
| 2798 | ----- |
| 2799 | pcomplete.c |
| 2800 | - fix small memory leak in gen_wordlist_matches |
| 2801 | |
| 2802 | [bash-3.1-rc2 frozen] |
| 2803 | |
| 2804 | 11/21 |
| 2805 | ----- |
| 2806 | [bash-3.1-rc2 released] |
| 2807 | |
| 2808 | 11/23 |
| 2809 | ----- |
| 2810 | lib/readline/display.c |
| 2811 | - changes to rl_redisplay to compensate for update_line updating |
| 2812 | _rl_last_c_pos without taking invisible characters in the line into |
| 2813 | account. Important in multibyte locales where _rl_last_c_pos is an |
| 2814 | absolute cursor position |
| 2815 | - changes to _rl_move_cursor_relative to account for _rl_last_c_pos |
| 2816 | being an absolute cursor position in a multibyte character locale |
| 2817 | - rewrote _rl_move_cursor_relative to make it a little simpler |
| 2818 | |
| 2819 | 11/29 |
| 2820 | ----- |
| 2821 | lib/readline/display.c |
| 2822 | - changes to rl_redisplay and update_line for update_line to communicate |
| 2823 | upward that it took the number of invisible characters on the current |
| 2824 | line into account when modifying _rl_last_c_pos |
| 2825 | - in update_line, adjust _rl_last_c_pos by wrap_offset before calling |
| 2826 | _rl_move_cursor_relative, so we pass correct information about the |
| 2827 | true cursor position |
| 2828 | |
| 2829 | 12/1 |
| 2830 | ---- |
| 2831 | configure.in |
| 2832 | - changed release status to `release' |
| 2833 | |
| 2834 | [bash-3.1 frozen] |
| 2835 | |
| 2836 | 12/8 |
| 2837 | ---- |
| 2838 | [bash-3.1 released] |
| 2839 | |
| 2840 | 12/9 |
| 2841 | ---- |
| 2842 | doc/{bash.1,version.texi},lib/readline/doc/version.texi |
| 2843 | - remove `beta1' from man page footer and texinfo documents |
| 2844 | |
| 2845 | variables.c |
| 2846 | - make sure winsize_assignment is protected by #ifdef READLINE, so |
| 2847 | minimal shell will compile |
| 2848 | |
| 2849 | builtins/read.def |
| 2850 | - make sure error cases free memory and run any unwind-protects to |
| 2851 | avoid memory leaks |
| 2852 | |
| 2853 | 12/10 |
| 2854 | ----- |
| 2855 | execute_cmd.c |
| 2856 | - change execute_command_internal to set $PIPESTATUS for ((...)) and |
| 2857 | [[ ... ]] commands |
| 2858 | |
| 2859 | doc/{bash.1,bashref.texi,version.texi} |
| 2860 | - add documentation for ulimit -[iqx] and bump revision date |
| 2861 | |
| 2862 | 12/12 |
| 2863 | ----- |
| 2864 | parse.y |
| 2865 | - make sure parse_compound_assignment saves and restores the |
| 2866 | PST_ASSIGNOK parser state flag around its calls to read_token. |
| 2867 | Fixes bug reported by Mike Frysinger |
| 2868 | |
| 2869 | 12/13 |
| 2870 | ----- |
| 2871 | parse.y |
| 2872 | - change parse_compound_assignment to save and restore the value of |
| 2873 | last_read_token. Not sure why it was set unconditionally in the |
| 2874 | first place after parsing the complete compound assignment |
| 2875 | |
| 2876 | 12/14 |
| 2877 | ----- |
| 2878 | lib/readline/text.c |
| 2879 | - don't use return value of rl_kill_text (which always succeeds and |
| 2880 | returns the number of characters killed) in rl_delete as an indication |
| 2881 | of success or failure |
| 2882 | - ditto for return value of rl_delete_text |
| 2883 | |
| 2884 | lib/readline/readline.c |
| 2885 | - don't return the value of the called readline function as the return |
| 2886 | value from _rl_dispatch_subseq; -1 means something different to the |
| 2887 | callers (return 0 all the time to indicate that a readline function |
| 2888 | was found and dispatched). Fix from Andreas Schwab for <DEL><DEL> |
| 2889 | bug in callback interface first reported by Mike Frysinger |
| 2890 | |
| 2891 | execute_cmd.c |
| 2892 | - fixed a typo in execute_case_command |
| 2893 | |
| 2894 | 12/15 |
| 2895 | ----- |
| 2896 | aclocal.m4 |
| 2897 | - add check for wctype() to BASH_CHECK_MULTIBYTE, define HAVE_WCTYPE |
| 2898 | |
| 2899 | config.h.in |
| 2900 | - add HAVE_WCTYPE #define |
| 2901 | |
| 2902 | config-bot.h |
| 2903 | - add HAVE_WCTYPE to the set of checks for HANDLE_MULTIBYTE. This |
| 2904 | should catch the deficient NetBSD multibyte support |
| 2905 | |
| 2906 | 12/16 |
| 2907 | ----- |
| 2908 | parse.y |
| 2909 | - use CTLESC instead of literal '\001' when decode_prompt_string |
| 2910 | prefixes RL_PROMPT_START_IGNORE and RL_PROMPT_END_IGNORE |
| 2911 | |
| 2912 | 12/20 |
| 2913 | ----- |
| 2914 | lib/readline/display.c |
| 2915 | - don't treat RL_PROMPT_START_IGNORE specially inside a sequence of |
| 2916 | ignored characters |
| 2917 | - keep track of the start of the current sequence of ignored |
| 2918 | characters; make sure that an empty sequence of such characters |
| 2919 | really is an empty sequence, not one that happens to end with '\001' |
| 2920 | (RL_PROMPT_START_IGNORE) |
| 2921 | |
| 2922 | 12/21 |
| 2923 | ----- |
| 2924 | subst.c |
| 2925 | - change expand_word_internal to process rest of `tilde-word' as a |
| 2926 | regular part of the word if tilde expansion leaves the tilde-word |
| 2927 | unchanged. This means that ~$USER expands to ~chet, which seems |
| 2928 | more intuitive, and is effectively what bash-3.0 did |
| 2929 | |
| 2930 | 12/23 |
| 2931 | ----- |
| 2932 | subst.c |
| 2933 | - when making a local array variable in do_compound_assignment, make |
| 2934 | sure that we don't use a variable of the same name from a previous |
| 2935 | context |
| 2936 | |
| 2937 | doc/bash.1 |
| 2938 | - documented expansions for word and patterns in case statement |
| 2939 | |
| 2940 | builtins/ulimit.def,doc/{bashref.texi,bash.1} |
| 2941 | - added new -e and -r (nice and rtprio) options to ulimit; documented |
| 2942 | them |
| 2943 | |
| 2944 | 12/26 |
| 2945 | ----- |
| 2946 | variables.c |
| 2947 | - use `hmax' instead of `num' in sv_histsize to avoid integer overflow |
| 2948 | problems with intmax_t |
| 2949 | |
| 2950 | builtins/read.def |
| 2951 | - add unwind-protect to restore rl_attempted_completion_function in |
| 2952 | case of a timeout |
| 2953 | |
| 2954 | {bashline,variables}.c |
| 2955 | - move initialization of HISTSIZE from initialization path to |
| 2956 | load_history, so it can be overridden by a value assigned in a |
| 2957 | startup file |
| 2958 | |
| 2959 | lib/readline/misc.c |
| 2960 | - add a missing `return r' so that rl_digit_loop returns a meaningful |
| 2961 | value |
| 2962 | |
| 2963 | lib/readline/{bind,callback,display,isearch,rltty,search,text,vi_mode}.c |
| 2964 | - minor cleanups to satisfy compiler warnings, mostly removing unused |
| 2965 | variables |
| 2966 | |
| 2967 | 12/27 |
| 2968 | ----- |
| 2969 | support/Makefile.in |
| 2970 | - add LIBS_FOR_BUILD support; defaults to ${LIBS} |
| 2971 | |
| 2972 | Makefile.in |
| 2973 | - add LIBS_FOR_BUILD with no default value; use when linking programs |
| 2974 | using CC_FOR_BUILD (e.g., bashversion) |
| 2975 | |
| 2976 | 12/28 |
| 2977 | ----- |
| 2978 | lib/readline/bind.c |
| 2979 | - fix rl_translate_keyseq bad translation of \M-\C-x sequences |
| 2980 | |
| 2981 | execute_cmd.c |
| 2982 | - in execute_arith_command, if the expression expands to more than one |
| 2983 | word, make sure we join the words into a single string and pass the |
| 2984 | entire thing to evalexp() |
| 2985 | |
| 2986 | expr.c |
| 2987 | - new functions: _is_arithop(c), returns true if C is a valid single- |
| 2988 | character arithmetic operator; _is_multiop(c), returns true if C is |
| 2989 | a token corresponding to a valid multi-character arithmetic operator |
| 2990 | - if we encounter a character that isn't a valid arithmetic |
| 2991 | operator, throw an error. Try to be intelligent about what type of |
| 2992 | error message to print |
| 2993 | |
| 2994 | subst.c |
| 2995 | - new function, expand_arith_string, calls expand_string_if_necessary; |
| 2996 | used where an arithmetic expression needs to be expanded |
| 2997 | |
| 2998 | subst.h |
| 2999 | - new extern declaration for expand_arith_string |
| 3000 | |
| 3001 | arrayfunc.c |
| 3002 | - in array_expand_index, call expand_arith_string to expand the |
| 3003 | subscript in a fashion consistent with other arithmetic expressions |
| 3004 | |
| 3005 | subst.c |
| 3006 | - fix parameter_brace_patsub so that we don't try to anchor the pattern |
| 3007 | at the beginning or end of the string if we're doing global |
| 3008 | replacement -- that combination doesn't doesn't make sense, and |
| 3009 | the changed behavior is compatible with ksh93 |
| 3010 | |
| 3011 | doc/{bash.1,bashref.texi} |
| 3012 | - changed description of pattern substitution to match the new |
| 3013 | semantics |
| 3014 | |
| 3015 | tests/new-exp.tests |
| 3016 | - change tests to remove all ${pat//#rep} and ${pat//%rep} |
| 3017 | expansions, since they don't mean the same thing anymore |
| 3018 | |
| 3019 | 12/29 |
| 3020 | ----- |
| 3021 | support/signames.c |
| 3022 | - new file, initialize_signames() function from old mksignames.c. This |
| 3023 | file builds the signal_names array |
| 3024 | |
| 3025 | support/mksignames.c |
| 3026 | - strip out initialize_signames(), move to signames.c. This file only |
| 3027 | writes signames.h |
| 3028 | - set up to only write a stub signames.h if CROSS_COMPILING is defined, |
| 3029 | with extern declaration for initialize_signames |
| 3030 | - if not cross compiling, #define initialize_signames to nothing |
| 3031 | |
| 3032 | Makefile.in |
| 3033 | - mksignames is now linked from mksignames.o and buildsignames.o |
| 3034 | - add rules to build signames.o, assuming we're building it as part |
| 3035 | of the shell (cross-compiling) |
| 3036 | |
| 3037 | trap.c |
| 3038 | - call initialize_signames from initialize_traps |
| 3039 | |
| 3040 | configure.in |
| 3041 | - set SIGNAMES_O to nothing (normal) or signames.o (cross-compiling), |
| 3042 | substitute into Makefile |
| 3043 | - don't set SIGNAMES_H if cross-compiling any more |
| 3044 | |
| 3045 | 12/30 |
| 3046 | ----- |
| 3047 | command.h |
| 3048 | - new word flag: W_NOPROCSUB, inhibits process substitution on a word |
| 3049 | |
| 3050 | subst.c |
| 3051 | - change expand_word_internal to suppress process substitution if the |
| 3052 | word has the W_NOPROCSUB flag |
| 3053 | |
| 3054 | shell.c |
| 3055 | - --wordexp turns on W_NOPROCSUB in addition to W_NOCOMSUB |
| 3056 | |
| 3057 | subst.c |
| 3058 | - change string_list_dollar_at and string_list_dollar_star so that |
| 3059 | MB_CUR_MAX is used to size an array only when using gcc, since gcc |
| 3060 | can handle non-constant array sizes using a mechanism like alloca. |
| 3061 | Other compilers, e.g. Sun's compiler, do not implement that |
| 3062 | extension |
| 3063 | |
| 3064 | 12/31 |
| 3065 | ----- |
| 3066 | builtins/mkbuiltins.c |
| 3067 | - when cross-compiling, don't include <config.h>, since it's for the |
| 3068 | target rather than the host system. Instead, choose a reasonable |
| 3069 | set of default #defines based on a minimal POSIX system |
| 3070 | |
| 3071 | jobs.c |
| 3072 | - change find_process to handle a NULL return value from find_pipeline |
| 3073 | - return immediately from delete_job if jobs[index] is already NULL or |
| 3074 | if it has a null pipeline associated with it |
| 3075 | - in delete_job, if find_last_proc returns NULL, don't try to call |
| 3076 | bgp_delete |
| 3077 | |
| 3078 | 1/7/2006 |
| 3079 | -------- |
| 3080 | doc/bash.1 |
| 3081 | - patch from Tim Waugh to replace some literal single quotes with |
| 3082 | \(aq, the groff special character for it |
| 3083 | |
| 3084 | jobs.c |
| 3085 | - in realloc_jobs_list, make sure to zero out slots after j_lastj |
| 3086 | in the new list |
| 3087 | |
| 3088 | 1/9 |
| 3089 | --- |
| 3090 | support/mksignames.c |
| 3091 | - make sure to include <signal.h> to get right value of NSIG from |
| 3092 | (usually) <sys/signal.h> |
| 3093 | |
| 3094 | 1/10 |
| 3095 | ---- |
| 3096 | parse.y |
| 3097 | - when calling parse_matched_pair on a $(...) command substitution, |
| 3098 | don't pass the P_DQUOTE flag so that single quotes don't get |
| 3099 | stripped from $'...' inside the command substitution. Bug report |
| 3100 | and fix from Mike Stroyan <mike.stroyan@hp.com> |
| 3101 | |
| 3102 | jobs.c |
| 3103 | - start maintaining true count of living children in js.c_living |
| 3104 | - call reset_current in realloc_jobs_list, since old values for current |
| 3105 | and previous job are most likely incorrect |
| 3106 | - don't allocate a new list in realloc_jobs_list if the old size and |
| 3107 | new size are the same; just compact the existing list |
| 3108 | - make sure realloc_jobs_list updates value of js.j_njobs |
| 3109 | - add some more itrace messages about non-null jobs after j_lastj in |
| 3110 | jobs array |
| 3111 | |
| 3112 | 1/11 |
| 3113 | ---- |
| 3114 | bashjmp.h |
| 3115 | - new value for second argument to longjmp: SIGEXIT. Reserved for |
| 3116 | future use |
| 3117 | |
| 3118 | 1/12 |
| 3119 | ---- |
| 3120 | jobs.c |
| 3121 | - add logic to make_child to figure out when pids wrap around |
| 3122 | - turn second argument to delete_job into flags word, added flag to |
| 3123 | prevent adding proc to bgpids list |
| 3124 | |
| 3125 | 1/13 |
| 3126 | ---- |
| 3127 | lib/readline/vi_mode.c |
| 3128 | - move code that moves forward a character out of rl_vi_append_mode |
| 3129 | into a separate function, _rl_vi_append_forward |
| 3130 | - change _rl_vi_append_mode to save `a' as the last command, so it |
| 3131 | can be redone properly |
| 3132 | - new function _rl_vi_backup, moves point back a character taking |
| 3133 | multibyte locales into account |
| 3134 | - change rl_vi_redo to handle redoing an `a' command specially -- |
| 3135 | it should be redone like `i' but after moving forward a character |
| 3136 | - change rl_vi_redo to use _rl_vi_backup to move point backward |
| 3137 | after redoing `i' or `a' |
| 3138 | |
| 3139 | jobs.c |
| 3140 | - new function, delete_old_job (pid), checks whether or not PID is in |
| 3141 | a job in the jobs list. If so, and the job is dead, it just removes |
| 3142 | the job from the list. If so, and the job is not dead, it zeros |
| 3143 | the pid in the appropriate PROCESS so pid aliasing doesn't occur |
| 3144 | - make_child calls delete_old_job to potentially remove an already-used |
| 3145 | instance of the pid just forked from the jobs list if pids have |
| 3146 | wrapped around. Finally fixes the bug reported by Tim Waugh |
| 3147 | <twaugh@redhat.com> |
| 3148 | |
| 3149 | trap.c |
| 3150 | - new define, GETORIGSIG(sig), gets the original handling for SIG and |
| 3151 | sets SIG_HARD_IGNORE if that handler is SIG_IGN |
| 3152 | - call GETORIGSIG from initialize_traps, get_original_signal, and |
| 3153 | set_signal |
| 3154 | |
| 3155 | jobs.c |
| 3156 | - in wait_for, if the original SIGINT handler is SIG_IGN, don't set |
| 3157 | the handler to wait_sigint_handler. This keeps scripts started in |
| 3158 | the background (and ignoring SIGINT) from dying due to SIGINT while |
| 3159 | they're waiting for a child to exit. Bug reported by Ingemar |
| 3160 | Nilsson <init@kth.se> |
| 3161 | |
| 3162 | lib/readline/vi_mode.c |
| 3163 | - don't save text to buffer unless undo pointer points to a record of |
| 3164 | type UNDO_INSERT; zero it out instead. This fixes bug reported by |
| 3165 | Craig Turner <craig@synect.com> with redoing `ctd[ESC]' (empty |
| 3166 | insert after change to) |
| 3167 | |
| 3168 | shell.c |
| 3169 | - change set_shell_name so invocations like "-/bin/bash" are marked as |
| 3170 | login shells |
| 3171 | |
| 3172 | doc/bash.1 |
| 3173 | - add note about destroying functions with `unset -f' to the section |
| 3174 | on shell functions |
| 3175 | |
| 3176 | lib/readline/terminal.c |
| 3177 | - if readline hasn't been initialized (_rl_term_autowrap == -1, the |
| 3178 | value it's now initialized with), call _rl_init_terminal_io from |
| 3179 | _rl_set_screen_size before deciding whether or not to decrement |
| 3180 | _rl_screenwidth. Fixes bug from Mike Frysinger <vapier@gentoo.org> |
| 3181 | |
| 3182 | 1/14 |
| 3183 | ---- |
| 3184 | lib/readline/input.c |
| 3185 | - allow rl_set_keyboard_input_timeout to set the timeout to 0, for |
| 3186 | applications that want to use select() like a poll without any |
| 3187 | waiting |
| 3188 | |
| 3189 | lib/readline/doc/rltech.texi |
| 3190 | - documented valid values for timeout in rl_set_keyboard_input_timeout |
| 3191 | |
| 3192 | jobs.c |
| 3193 | - in stop_pipeline, don't have the parent shell call give_terminal_to |
| 3194 | if subshell_environment contains SUBSHELL_ASYNC (no background |
| 3195 | process should ever give the terminal to anything other than |
| 3196 | shell_pgrp) |
| 3197 | - in make_child, don't give the terminal away if subshell_environment |
| 3198 | contains SUBSHELL_ASYNC |
| 3199 | |
| 3200 | 1/15 |
| 3201 | ---- |
| 3202 | subst.c |
| 3203 | - in parameter_brace_expand, if extracting ${#varname}, only allow |
| 3204 | `}' to end the expansion, since none of the other expansions are |
| 3205 | valid. Fixes Debian bug reported by Jan Nordhorlz <jckn@gmx.net> |
| 3206 | |
| 3207 | 1/17 |
| 3208 | ---- |
| 3209 | parse.y |
| 3210 | - in parse_matched_pair, protect all character tests with the MBTEST |
| 3211 | macro |
| 3212 | - in parse_dparen, take out extra make_word after call to alloc_word_desc |
| 3213 | (mem leak) |
| 3214 | |
| 3215 | 1/18 |
| 3216 | ---- |
| 3217 | parse.y |
| 3218 | - in parse_matched_pair, add P_ALLOWESC to flags passed to recursive |
| 3219 | parse_matched_pair call when encountering a single or double quote |
| 3220 | inside a ``-style command substitution |
| 3221 | |
| 3222 | execute_cmd.c |
| 3223 | - add call to QUIT at beginning of execute_command_internal; better |
| 3224 | responsiveness to SIGINT |
| 3225 | |
| 3226 | 1/21 |
| 3227 | ---- |
| 3228 | lib/readline/bind.c |
| 3229 | - change rl_invoking_keyseqs_in_map to honor the setting of |
| 3230 | convert-meta when listing key bindings, since if convert-meta is off, |
| 3231 | using '\M-' as the prefix for bindings in, for instance, |
| 3232 | emacs-escape-keymap, is wrong. This affects `bind -p' output |
| 3233 | - change rl_untranslate_keyseq to add '\e' instead of '\C-[' for |
| 3234 | ESC |
| 3235 | |
| 3236 | execute_cmd.c |
| 3237 | - add call to QUIT at end of execute_command |
| 3238 | |
| 3239 | 1/23 |
| 3240 | ---- |
| 3241 | lib/readline/display.c |
| 3242 | - changed two places in update_line where a check of whether the cursor |
| 3243 | is before the last invisible character in the prompt string to |
| 3244 | differentiate between the multibyte character case (where |
| 3245 | _rl_last_c_pos is a physical cursor position) and the single-byte |
| 3246 | case (where it is a buffer index). This prevents many unnecessary |
| 3247 | \r-redraw the line sequences. Reported by Dan Jacobson. |
| 3248 | |
| 3249 | 1/24 |
| 3250 | ---- |
| 3251 | quit.h |
| 3252 | - wrap QUIT macro in do...while(0) like other compound statement |
| 3253 | macros |
| 3254 | - CHECK_TERMSIG define (placeholder for now); future use will be to |
| 3255 | handle any received signals that should cause the shell to |
| 3256 | terminate (e.g., SIGHUP) |
| 3257 | |
| 3258 | {input,jobs,nojobs}.c |
| 3259 | - add calls to CHECK_TERMSIG where appropriate (reading input and |
| 3260 | waiting for children) |
| 3261 | - include quit.h if necessary |
| 3262 | |
| 3263 | 1/25 |
| 3264 | ---- |
| 3265 | parse.y |
| 3266 | - undo change that makes `)' in a compound assignment delimit a token. |
| 3267 | It messes up arithmetic expressions in assignments to `let', among |
| 3268 | other things |
| 3269 | |
| 3270 | sig.h,{jobs,nojobs,sig,trap}.c,builtins/trap.def |
| 3271 | - rename termination_unwind_protect to termsig_sighandler |
| 3272 | |
| 3273 | sig.c |
| 3274 | - split termsig_sighandler into two functions: termsig_sighandler, which |
| 3275 | runs as a signal handler and sets a flag noting that a terminating |
| 3276 | signal was received, and termsig_handler, which runs when it is `safe' |
| 3277 | to handle the signal and exit |
| 3278 | - new terminate_immediately variable, similar to interrupt_immediately |
| 3279 | - termsig_sighandler calls termsig_handler immediately if |
| 3280 | terminate_immediately is non-zero |
| 3281 | |
| 3282 | quit.h |
| 3283 | - change CHECK_TERMSIG macro to check terminating_signal and call |
| 3284 | termsig_handler if it's non-zero |
| 3285 | - add same check of terminating_signal and call to termsig_handler to |
| 3286 | QUIT macro |
| 3287 | |
| 3288 | {jobs,nojobs}.c |
| 3289 | - change call to termsig_sighandler to call termsig_handler directly, |
| 3290 | as was intended |
| 3291 | |
| 3292 | parse.y,builtins/read.def |
| 3293 | - set terminate_immediately to non-zero value when reading interactive |
| 3294 | input, as is done with interrupt_immediately |
| 3295 | |
| 3296 | 1/26 |
| 3297 | ---- |
| 3298 | doc/{bash.1,bashref.texi} |
| 3299 | - reworded the POSIX standard references to remove mention of POSIX.2 |
| 3300 | or 1003.2 -- it's all the 1003.1 standard now. Recommended by |
| 3301 | Arnold Robbins |
| 3302 | |
| 3303 | 1/27 |
| 3304 | ---- |
| 3305 | lib/readline/complete.c |
| 3306 | - move call to filename dequoting function into |
| 3307 | rl_filename_completion_function; call only if directory completion |
| 3308 | hook isn't set. This means that directory-completion-hook now needs |
| 3309 | to dequote the directory name. We don't want to dequote the directory |
| 3310 | name before calling the directory-completion-hook. Bug reported by |
| 3311 | Andrew Parker <andrewparker@bigfoot.com> |
| 3312 | |
| 3313 | bashline.c |
| 3314 | - add necessary directory name dequoting to bash_directory_expansion |
| 3315 | and bash_directory_completion_hook |
| 3316 | |
| 3317 | lib/readline/doc/rltech.texi |
| 3318 | - add note to description of rl_directory_completion_hook that it |
| 3319 | needs to dequote the directory name even if no other expansions are |
| 3320 | performed |
| 3321 | |
| 3322 | 1/28 |
| 3323 | ---- |
| 3324 | braces.c |
| 3325 | - make sure that we skip over braces that don't start a valid matched |
| 3326 | brace expansion construct in brace_expand -- there might be a valid |
| 3327 | brace expansion after the unmatched `{' later in the string |
| 3328 | - brace_gobbler now checks that when looking for a `}' to end a brace |
| 3329 | expansion word, there is an unquoted `,' or `..' that's not inside |
| 3330 | another pair of braces. Fixes the a{b{c,d}e}f problem reported by |
| 3331 | Tim Waugh |
| 3332 | |
| 3333 | builtins/declare.def |
| 3334 | - when not in posix mode, and operating on shell functions, typeset |
| 3335 | and declare do not require their variable operands to be valid |
| 3336 | shell identifiers. The other `attribute' builtins work this way. |
| 3337 | Fixes inconsistency reported by Mike Frysinger <vapier@gentoo.org> |
| 3338 | |
| 3339 | {configure,config.h}.in |
| 3340 | - add test for setregid, define HAVE_SETREGID and HAVE_DECL_SETREGID |
| 3341 | as appropriate |
| 3342 | - add test for eaccess, define HAVE_EACCESS if found |
| 3343 | |
| 3344 | lib/sh/eaccess.c |
| 3345 | - new file, with sh_stat and sh_eaccess functions, moved from test.c |
| 3346 | - renamed old sh_eaccess as sh_stataccess, since it uses the stat(2) |
| 3347 | information to determine file accessibility |
| 3348 | - new function, sh_euidaccess, to call when uid != euid or gid != egid; |
| 3349 | temporarily swaps uid/euid and gid/egid around call to access |
| 3350 | - rewrote sh_eaccess to call eaccess, access, sh_euidaccess or |
| 3351 | sh_stataccess as appropriate. access(2) will take into account |
| 3352 | things like ACLs, read-only file systems, file flags, and so on. |
| 3353 | |
| 3354 | lib/sh/Makefile.in,Makefile.in |
| 3355 | - add necessary entries for eaccess.[co] |
| 3356 | |
| 3357 | test.c |
| 3358 | - change calls to test_stat to call sh_stat |
| 3359 | |
| 3360 | {test,general}.c |
| 3361 | - change calls to test_eaccess to call sh_eaccess |
| 3362 | |
| 3363 | externs.h |
| 3364 | - new extern declaration for sh_eaccess |
| 3365 | |
| 3366 | test.[ch] |
| 3367 | - remove test_stat and test_eaccess |
| 3368 | |
| 3369 | 1/29 |
| 3370 | ---- |
| 3371 | braces.c |
| 3372 | - make change from 1/28 dependant on CSH_BRACE_COMPAT not being |
| 3373 | defined (since old bash behavior is what csh does, defining |
| 3374 | CSH_BRACE_COMPAT will produce old bash behavior) |
| 3375 | |
| 3376 | 1/30 |
| 3377 | ---- |
| 3378 | bashline.c |
| 3379 | - last argument of bash_default_completion is now a flags word: |
| 3380 | DEFCOMP_CMDPOS (in command position) is only current value |
| 3381 | - attempt_shell_completion now computes flags before calling |
| 3382 | bash_default_completion |
| 3383 | - if no_empty_command_completion is set, bash does not attempt command |
| 3384 | word completion even if not at the beginning of the line, as long |
| 3385 | as the word to be completed is empty and start == end (catches |
| 3386 | beginning of line and all whitespace preceding point) |
| 3387 | |
| 3388 | 2/4 |
| 3389 | --- |
| 3390 | lib/readline/display.c |
| 3391 | - change _rl_make_prompt_for_search to use rl_prompt and append the |
| 3392 | search character to it, so the call to expand_prompt in rl_message |
| 3393 | will process the non-printing characters correctly. Bug reported |
| 3394 | by Mike Stroyan <mike.stroyan@hp.com> |
| 3395 | |
| 3396 | 2/5 |
| 3397 | --- |
| 3398 | lib/readline/display.c |
| 3399 | - fix off-by-one error when comparing against PROMPT_ENDING_INDEX, |
| 3400 | which caused a prompt with invisible characters to be redrawn one |
| 3401 | extra time in a multibyte locale. Change from <= to < fixes |
| 3402 | multibyte locale, but I added 1 to single-byte definition of |
| 3403 | PROMPT_ENDING_INDEX (worth checking) to compensate. Bug reported |
| 3404 | by Egmont Koblinger <egmont@uhulinux.hu> |
| 3405 | |
| 3406 | 2/8 |
| 3407 | --- |
| 3408 | lib/readline/terminal.c |
| 3409 | - call _emx_get_screensize with wr, wc like ioctl code for consistency |
| 3410 | - new function, _win_get_screensize, gets screen dimensions using |
| 3411 | standard Windows API for mingw32 (code from Denis Pilat) |
| 3412 | - call _win_get_screensize from _rl_get_screen_size on mingw32 |
| 3413 | |
| 3414 | lib/readline/rlconf.h |
| 3415 | - define SYS_INPUTRC (/etc/inputrc) as system-wide default inputrc |
| 3416 | filename |
| 3417 | |
| 3418 | support/shobj-conf |
| 3419 | - changes to make loadable builtins work on MacOS X 10.[34] |
| 3420 | |
| 3421 | builtins/pushd.def |
| 3422 | - changes to make it work as a loadable builtin compiled with gcc4 |
| 3423 | |
| 3424 | 2/9 |
| 3425 | --- |
| 3426 | lib/readline/bind.c |
| 3427 | - add SYS_INPUTRC as last-ditch default (if DEFAULT_INPUTRC does not |
| 3428 | exist or can't be read) in rl_read_init_file |
| 3429 | |
| 3430 | lib/readline/doc/rluser.texi |
| 3431 | - add description of /etc/inputrc as ultimate default startup file |
| 3432 | |
| 3433 | 2/10 |
| 3434 | ---- |
| 3435 | lib/readline/bind.c |
| 3436 | - fix problem with rl_function_of_keyseq that returns a non-keymap |
| 3437 | bound to a portion of the passed key sequence without processing |
| 3438 | the entire thing. We can bind maps with existing non-map |
| 3439 | functions using the ANYOTHERKEY binding code. |
| 3440 | |
| 3441 | variables.c |
| 3442 | - shells running in posix mode do not set $HOME, as POSIX apparently |
| 3443 | requires |
| 3444 | |
| 3445 | 2/15 |
| 3446 | ---- |
| 3447 | braces.c |
| 3448 | - mkseq() now takes the increment as an argument; changed callers |
| 3449 | |
| 3450 | 2/16 |
| 3451 | ---- |
| 3452 | builtins/hash.def |
| 3453 | - print `hash table empty' message to stdout instead of stderr |
| 3454 | |
| 3455 | 2/17 |
| 3456 | ---- |
| 3457 | lib/readline/readline.c |
| 3458 | - when resetting rl_prompt in rl_set_prompt, make sure rl_display_prompt |
| 3459 | is set when the function returns |
| 3460 | |
| 3461 | 2/18 |
| 3462 | ---- |
| 3463 | lib/readline/display.c |
| 3464 | - further fixes to _rl_make_prompt_for_search from Eric Blake to deal |
| 3465 | with multiple calls to expand_prompt |
| 3466 | |
| 3467 | 2/21 |
| 3468 | ---- |
| 3469 | builtins/hash.def |
| 3470 | - don't print `hash table empty' message in posix mode |
| 3471 | |
| 3472 | 2/27 |
| 3473 | ---- |
| 3474 | lib/glob/sm_loop.c |
| 3475 | - change extmatch() to turn off FNM_PERIOD in flags passed to recursive |
| 3476 | calls to gmatch() when calling it with a substring after the start |
| 3477 | of the string it receives. Changed `+', `*', `?, `@', and `!' cases |
| 3478 | to do the right thing. Fixes bug reported by Benoit Vila |
| 3479 | <bvila@free.fr> |
| 3480 | |
| 3481 | braces.c |
| 3482 | - add QUIT; statements to mkseq to make large sequence generation |
| 3483 | interruptible |
| 3484 | |
| 3485 | 2/28 |
| 3486 | ---- |
| 3487 | lib/glob/glob.c |
| 3488 | - initialize nalloca in glob_vector |
| 3489 | |
| 3490 | 3/1 |
| 3491 | --- |
| 3492 | lib/glob/glob.c |
| 3493 | - in glob_vector, when freeing up the linked list after some error, |
| 3494 | make sure to set `tmplink' to 0 if `firstlink' is set to 0, else we |
| 3495 | get multiple-free errors |
| 3496 | |
| 3497 | 3/5 |
| 3498 | --- |
| 3499 | trap.c |
| 3500 | - inheritance of the DEBUG, RETURN, and ERR traps is now dependent |
| 3501 | only on the `functrace' and `errtrace' shell options, as the |
| 3502 | documentation says, rather than on whether or not the shell is in |
| 3503 | debugging mode. Reported by Philip Susi <psusi@cfl.rr.com> |
| 3504 | |
| 3505 | parse.y |
| 3506 | - in parse_matched_pair, don't recursively parse ${...} or other |
| 3507 | ${...} constructs inside `` |
| 3508 | - in parse_matched_pair, remove special code that recursively parses |
| 3509 | quoted strings inside `` constructs. For Bourne shell compatibility |
| 3510 | |
| 3511 | 3/6 |
| 3512 | --- |
| 3513 | builtins/pushd.def |
| 3514 | - let get_directory_stack take take an `int flags' argument and convert |
| 3515 | $HOME to ~ if flags&1 is non-zero |
| 3516 | |
| 3517 | builtins/common.h |
| 3518 | - change extern declaration for get_directory_stack |
| 3519 | |
| 3520 | variables.c |
| 3521 | - call get_directory_stack with an arg of 0 to inhibit converting |
| 3522 | $HOME to ~ in the result. Fixes cd ${DIRSTACK[1]} problem |
| 3523 | reported by Len Lattanzi <llattanzi@apple.com> (cd fails because |
| 3524 | the tildes won't be expanded after variable expansion) |
| 3525 | |
| 3526 | jobs.c |
| 3527 | - changed hangup_all_jobs slightly so stopped jobs marked J_NOHUP |
| 3528 | won't get a SIGCONT |
| 3529 | |
| 3530 | general.c |
| 3531 | - changed check_binary_file() to check for a NUL byte instead of a |
| 3532 | non-printable character. Might at some point want to check |
| 3533 | entire (possibly multibyte) characters instead of just bytes. Hint |
| 3534 | from ksh via David Korn |
| 3535 | |
| 3536 | 3/7 |
| 3537 | --- |
| 3538 | builtins/reserved.def |
| 3539 | - changed runs of spaces to tabs in variables help text to make |
| 3540 | indentation better when displayed |
| 3541 | |
| 3542 | builtins/mkbuiltins.c |
| 3543 | - changes to avoid the annoying extra space that keeps gettext from |
| 3544 | being passed an empty string |
| 3545 | |
| 3546 | 3/9 |
| 3547 | --- |
| 3548 | lib/glob/glob.c |
| 3549 | - make sure globbing is interrupted if the shell receives a terminating |
| 3550 | signal |
| 3551 | |
| 3552 | 3/14 |
| 3553 | ---- |
| 3554 | lib/readline/search.c |
| 3555 | - call rl_message with format argument of "%" in _rl_nsearch_init |
| 3556 | to avoid `%' characters in the prompt string from being interpreted |
| 3557 | as format specifiers to vsnprintf/vsprintf |
| 3558 | |
| 3559 | 3/19 |
| 3560 | ---- |
| 3561 | parse.y, eval.c, input.h |
| 3562 | - change execute_prompt_command to execute_variable_command; takes the |
| 3563 | variable name as a new second argument |
| 3564 | |
| 3565 | 3/25 |
| 3566 | ---- |
| 3567 | bashline.c |
| 3568 | - command_word_completion_function keeps track of when it's searching |
| 3569 | $PATH and doesn't return directory names as matches in that case. |
| 3570 | Problem reported by Pascal Terjan <pterjan@mandriva.com> |
| 3571 | - command_word_completion_function returns what it's passed as a |
| 3572 | possible match if it's the name of a directory in the current |
| 3573 | directory (only non-absolute pathnames are so tested). |
| 3574 | |
| 3575 | 3/27 |
| 3576 | ---- |
| 3577 | subst.c |
| 3578 | - expand_arith_string takes a new argument: quoted. Either 0 (outside |
| 3579 | subst.c) or Q_DOUBLE_QUOTES (substitution functions); changed callers |
| 3580 | |
| 3581 | subst.h |
| 3582 | - changed extern declaration for expand_arith_string |
| 3583 | |
| 3584 | arrayfunc.c |
| 3585 | - changed call to expand_arith_string in array_expand_index |
| 3586 | |
| 3587 | 3/31 |
| 3588 | ---- |
| 3589 | lib/readline/histfile.c |
| 3590 | - change read_history_range to allow windows-like \r\n line endings |
| 3591 | |
| 3592 | execute_cmd.c |
| 3593 | - add new variable, line_number_for_err_trap, currently set but not |
| 3594 | used |
| 3595 | |
| 3596 | 4/2 |
| 3597 | --- |
| 3598 | lib/sh/strtrans.c |
| 3599 | - add code to echo -e and echo with xpg_echo enabled to require |
| 3600 | a leading 0 to specify octal constants |
| 3601 | |
| 3602 | 4/3 |
| 3603 | --- |
| 3604 | subst.c |
| 3605 | - slight change to wcsdup() replacement: use memcpy instead of wcscpy |
| 3606 | |
| 3607 | parse.y |
| 3608 | - before turning on W_COMPASSIGN, make sure the final character in the |
| 3609 | token is a `(' (avoids problems with things like a=(4*3)/2) |
| 3610 | |
| 3611 | 4/4 |
| 3612 | --- |
| 3613 | lib/sh/snprintf.c |
| 3614 | - in number() and lnumber(), turn off PF_ZEROPAD if explicit precision |
| 3615 | supplied in format |
| 3616 | - change number() and lnumber() to correctly implement zero-padding |
| 3617 | specified by a non-zero `.precision' part of the format |
| 3618 | |
| 3619 | subst.c |
| 3620 | - new flag for extract_delimited_string: EX_COMMAND. For $(...), so |
| 3621 | we can do things like skip over delimiters in comments. Added to |
| 3622 | appropriate callers |
| 3623 | - changes to extract_delimited_string to skip over shell comments when |
| 3624 | extracting a command for $(...) (EX_COMMAND is contained in the |
| 3625 | flags argument) |
| 3626 | |
| 3627 | 4/5 |
| 3628 | --- |
| 3629 | subst.c |
| 3630 | - first argument to skip_single_quoted is now a const char * |
| 3631 | - new function, chk_arithsub, checks for valid arithmetic expressions |
| 3632 | by balancing parentheses. Fix based on a patch from Len Lattanzi |
| 3633 | |
| 3634 | 4/6 |
| 3635 | --- |
| 3636 | {configure,config.h}.in |
| 3637 | - add separate test for isnan in libc, instead of piggybacking on |
| 3638 | isinf-in-libc test |
| 3639 | |
| 3640 | lib/sh/snprintf.c |
| 3641 | - separate the isnan replacement function so it's guarded by its own |
| 3642 | HAVE_ISNAN_IN_LIBC define |
| 3643 | |
| 3644 | lib/sh/wcsdup.c |
| 3645 | - new file, contains replacement wcsdup library function from subst.c |
| 3646 | with change back to using wcscpy |
| 3647 | |
| 3648 | Makefile.in,lib/sh/Makefile.in |
| 3649 | - make sure wcsdup.c is compiled and linked in |
| 3650 | |
| 3651 | subst.c |
| 3652 | - wcsdup now found in libsh; removed static definition |
| 3653 | |
| 3654 | 4/10 |
| 3655 | ---- |
| 3656 | lib/readline/callback.c |
| 3657 | - loop over body of rl_callback_read_char as long as there is additional |
| 3658 | input rather than just calling readline_internal_char, which does |
| 3659 | not handle multi-character key sequences or escape-prefixed chars |
| 3660 | |
| 3661 | lib/readline/macro.c |
| 3662 | - make sure we turn off RL_STATE_MACROINPUT when the macro stack is |
| 3663 | empty if we are reading additional input with RL_STATE_MOREINPUT |
| 3664 | |
| 3665 | support/shobj-conf |
| 3666 | - Mac OS X no longer likes the `-bundle' option to gcc when creating a |
| 3667 | dynamic shared library |
| 3668 | |
| 3669 | 4/11 |
| 3670 | ---- |
| 3671 | lib/tilde/tilde.c |
| 3672 | - don't try to dereference user_entry if HAVE_GETPWENT isn't defined |
| 3673 | |
| 3674 | lib/readline/input.c |
| 3675 | - make sure chars_avail is not used without being assigned a value in |
| 3676 | rl_gather_tyi |
| 3677 | - use _kbhit() to check for available input on Windows consoles, in |
| 3678 | rl_gather_tyi and _rl_input_available |
| 3679 | |
| 3680 | 4/21 |
| 3681 | ---- |
| 3682 | lib/readline/display.c |
| 3683 | - calculate (in expand_prompt) and keep track of length of local_prompt |
| 3684 | in local_prompt_len; use where appropriate |
| 3685 | - when using o_pos to check whether or not we need to adjust |
| 3686 | _rl_last_c_pos after calling update_line, assume that it's correct |
| 3687 | (a buffer index in non-multibyte locales and a cursor position in |
| 3688 | multibyte locales) and adjust with wrap_offset as appropriate |
| 3689 | - in update_line, set cpos_adjusted to 1 after calling |
| 3690 | _rl_move_cursor_relative to move to the end of the displayed prompt |
| 3691 | string |
| 3692 | - in _rl_move_cursor_relative, check that the multibyte display |
| 3693 | position is after the last invisible character in the prompt string |
| 3694 | before offsetting it by the number of invisible characters in the |
| 3695 | prompt (woff) |
| 3696 | |
| 3697 | 4/26 |
| 3698 | ---- |
| 3699 | lib/readline/doc/{rluser.texi,readline.3} |
| 3700 | - make sure to note that key bindings don't allow any whitespace |
| 3701 | between the key name or sequence to be bound and the colon |
| 3702 | |
| 3703 | 4/28 |
| 3704 | ---- |
| 3705 | lib/readline/display.c |
| 3706 | - in update_line, make sure we compare _rl_last_c_pos as strictly less |
| 3707 | than PROMPT_ENDING_INDEX, since it's 0-based, to avoid multiple |
| 3708 | prompt redraws |
| 3709 | |
| 3710 | 5/4 |
| 3711 | --- |
| 3712 | parse.y |
| 3713 | - in decode_prompt_string, only prefix the expansion of \[ or \] |
| 3714 | with CTLESC if the corresponding readline escape character is |
| 3715 | CTLESC (coincidentally the same as \[) or CTLNUL. Bug report sent |
| 3716 | by Mike Frysinger <vapier@gentoo.org> prompted the discovery |
| 3717 | |
| 3718 | aclocal.m4 |
| 3719 | - slight change to test for /dev/fd to compensate for a linux |
| 3720 | failing; suggested by Mike Frysinger <vapier@gentoo.org> |
| 3721 | |
| 3722 | 5/9 |
| 3723 | --- |
| 3724 | arrayfunc.c |
| 3725 | - broke assign_array_var_from_string into two functions: |
| 3726 | expand_compound_array_assignment and assign_compound_array_list; |
| 3727 | assign_array_var_from_string just calls those functions now |
| 3728 | |
| 3729 | arrayfunc.h |
| 3730 | - new extern declarations for expand_compound_array_assignment and |
| 3731 | assign_compound_array_list |
| 3732 | |
| 3733 | subst.c |
| 3734 | - in do_compound_assignment, call expand_compound_array_assignment |
| 3735 | before creating the local variable so a previous inherited |
| 3736 | value can be used when expanding the rhs of the compound assignment |
| 3737 | statement |
| 3738 | |
| 3739 | 5/11 |
| 3740 | ---- |
| 3741 | doc/{bash.1,bashref.texi} |
| 3742 | - clarifed `trap' description to make it clear that trapped signals |
| 3743 | that are not set to SIG_IGN are reset when a subshell is created |
| 3744 | |
| 3745 | 5/18 |
| 3746 | ---- |
| 3747 | locale.c |
| 3748 | - change reset_locale_vars to call setlocale (LC_ALL, "") if LANG |
| 3749 | is unset or NULL |
| 3750 | - if LANG is unset or NULL, reset the export environment before |
| 3751 | calling setlocale in reset_locale_vars, and trust that it will |
| 3752 | change the environment setlocale() inspects |
| 3753 | |
| 3754 | 5/21 |
| 3755 | ---- |
| 3756 | lib/readline/history.c |
| 3757 | - new function, HIST_ENTRY *alloc_history_entry (char *string, char *ts); |
| 3758 | creates a new history entry with text STRING and timestamp TS (both |
| 3759 | of which may be NULL) |
| 3760 | - new function, HIST_ENTRY *copy_history_entry (HIST_ENTRY *hist), |
| 3761 | which copies the line and timestamp entries to new memory but just |
| 3762 | copies the data member, since that's an opaque pointer |
| 3763 | - new function, void replace_history_data (int which, histdata_t *old, histdata_t *new) |
| 3764 | which replaces the `data' member of specified history entries with |
| 3765 | NEW, as long as it is OLD. WHICH says which history entries to |
| 3766 | modify |
| 3767 | - add calls to replace_history_data in rl_free_undo_list and |
| 3768 | rl_do_undo |
| 3769 | |
| 3770 | lib/readline/undo.c |
| 3771 | - new function, alloc_undo_entry (enum undo_code what, int start, int end, char *text) |
| 3772 | takes care of allocating and populating a struct for an individual |
| 3773 | undo list entry |
| 3774 | - new function: _rl_copy_undo_entry(UNDO_LIST *entry) |
| 3775 | - new function: _rl_copy_undo_list(UNDO_LIST *head) |
| 3776 | |
| 3777 | lib/readline/rlprivate.h |
| 3778 | - new extern declarations for _rl_copy_undo_{entry,list} |
| 3779 | |
| 3780 | execute_cmd.c |
| 3781 | - change execute_cond_node so that quoting the rhs of the =~ |
| 3782 | operator forces string matching, like the == and != operators |
| 3783 | |
| 3784 | 5/23 |
| 3785 | ---- |
| 3786 | redir.c |
| 3787 | - add_undo_redirect now takes as an additional argument the type of |
| 3788 | redirection we're trying to undo |
| 3789 | - don't add a "preservation" redirection for fds > SHELL_FD_BASE if |
| 3790 | the redirection is closing the fd |
| 3791 | |
| 3792 | 5/24 |
| 3793 | ---- |
| 3794 | subst.c |
| 3795 | - make sure that parameter_brace_substring leaves this_command_name |
| 3796 | set to either NULL or its previous value after setting it so that |
| 3797 | arithmetic evaluation errors while expanding substring values |
| 3798 | contain meaningful information |
| 3799 | |
| 3800 | 6/9 |
| 3801 | --- |
| 3802 | execute_cmd.c |
| 3803 | - make sure that SUBSHELL_ASYNC and SUBSHELL_PIPE are set as flag bits |
| 3804 | in subshell_environment, rather than setting only a single value |
| 3805 | - change execute_subshell_builtin_or_function to give the `return' |
| 3806 | builtin a place to longjmp to when executed in a subshell or pipeline |
| 3807 | (mostly as the last command in a pipeline). Bug reported by |
| 3808 | Oleg Verych <olecom@gmail.com> |
| 3809 | - in execute_simple_command, make sure to call execute_disk_command |
| 3810 | with the_printed_command_except_trap to keep DEBUG trap command |
| 3811 | strings from overwriting the command strings associated with jobs |
| 3812 | and printed in job control messages. Bug reported by Daniel Kahn |
| 3813 | Gillmor <dkg-debian.org@fifthhorseman.net> |
| 3814 | |
| 3815 | [bash-3.2-alpha frozen] |
| 3816 | |
| 3817 | 6/22 |
| 3818 | ---- |
| 3819 | syntax.h |
| 3820 | - add new CBLANK (for [:blank:] class) flag value for syntax table and |
| 3821 | shellblank(c) character test macro |
| 3822 | |
| 3823 | mksyntax.c |
| 3824 | - add support for setting CBLANK flag in the syntax table depending on |
| 3825 | whether or not isblank(x) returns true for character x |
| 3826 | |
| 3827 | locale.c |
| 3828 | - change locale_setblanks to set or unset CBLANK flag for each |
| 3829 | character when locale changes |
| 3830 | |
| 3831 | parse.y |
| 3832 | - change call to whitespace(c) in lexical analyzer (read_token()) to |
| 3833 | call shellblank(c) instead, so locale-specific blank characters are |
| 3834 | treated as white space. Fixes bug reported by Serge van deb Boom |
| 3835 | <svdb+bug-bash@stack.nl> |
| 3836 | |
| 3837 | print_cmd.c |
| 3838 | - when printing redirections, add a space between <, >, and <> and the |
| 3839 | following word, to avoid conflicts with process substitution. Bug |
| 3840 | reported by Ittay Dror <ittyad@qlusters.com> |
| 3841 | |
| 3842 | 6/26 |
| 3843 | ---- |
| 3844 | configure.in |
| 3845 | - set CROSS_COMPILE to the empty string by default, so we don't inherit |
| 3846 | a random value from the environment. Bug reported by |
| 3847 | Lee Revell <rlrevell@joe-job.com> |
| 3848 | |
| 3849 | 6/29 |
| 3850 | ---- |
| 3851 | lib/glob/xmbsrtowcs.c |
| 3852 | - make sure destp is non-null before assigning a 0 to *destp in |
| 3853 | xdupmbstowcs. Fix from Louiwa Salem <loulwas@us.ibm.com> |
| 3854 | |
| 3855 | execute_cmd.c |
| 3856 | - fix execute_in_subshell to make sure asynchronous isn't set to 0 |
| 3857 | before subshell_environment is set appropriately and |
| 3858 | setup_async_signals is run. Based on report by Louiwa Salem |
| 3859 | <loulwas@us.ibm.com> |
| 3860 | |
| 3861 | lib/readline/bind.c |
| 3862 | - in rl_generic_bind(), make sure that the keys array is freed before |
| 3863 | an error return. Fix from Louiwa Salem <loulwas@us.ibm.com> |
| 3864 | |
| 3865 | 7/1 |
| 3866 | --- |
| 3867 | builtins/read.def |
| 3868 | - make sure all editing code is protected with #ifdef READLINE, esp. |
| 3869 | unwind-protect that restores the default completion function |
| 3870 | |
| 3871 | lib/readline/display.c |
| 3872 | - make sure to set local_prompt_len in rl_message() [in bash-3.2-alpha] |
| 3873 | |
| 3874 | 7/5 |
| 3875 | --- |
| 3876 | builtins/printf.def |
| 3877 | - add more of echo's write error handling to printf. Suggested by |
| 3878 | martin.wilck@fujitsu-siemens.com |
| 3879 | |
| 3880 | 7/7 |
| 3881 | --- |
| 3882 | lib/readline/display.c |
| 3883 | - save and restore local_prompt_len in rl_{save,restore}_prompt |
| 3884 | [in bash-3.2-alpha] |
| 3885 | |
| 3886 | 7/8 |
| 3887 | --- |
| 3888 | [bash-3.2-alpha released] |
| 3889 | |
| 3890 | 7/9 |
| 3891 | --- |
| 3892 | lib/readline/display.c |
| 3893 | - make sure that _rl_move_cursor_relative sets cpos_adjusted when it |
| 3894 | offsets `dpos' by wrap_offset in a multi-byte locale. Bug reported |
| 3895 | by Andreas Schwab and Egmont Koblinger |
| 3896 | |
| 3897 | subst.c |
| 3898 | - make sure that the call to mbstowcs in string_extract_verbatim is |
| 3899 | passed a string with enough space for the closing NUL. Reported |
| 3900 | by Andreas Schwab |
| 3901 | |
| 3902 | 7/18 |
| 3903 | ---- |
| 3904 | lib/readline/{display,terminal}.c |
| 3905 | - remove #ifdefs for HACK_TERMCAP_MOTION so we can use |
| 3906 | _rl_term_forward_char in the redisplay code unconditionally |
| 3907 | |
| 3908 | lib/readline/rlprivate.h |
| 3909 | - new extern declaration for _rl_term_forward_char |
| 3910 | |
| 3911 | lib/readline/display.c |
| 3912 | - in _rl_move_cursor_relative, use `dpos' instead of `new' when |
| 3913 | deciding whether or not a CR is faster than moving the cursor from |
| 3914 | its current position |
| 3915 | - in _rl_move_cursor_relative, we can use _rl_term_forward_char to |
| 3916 | move the cursor forward in a multibyte locale, if it's available. |
| 3917 | Since that function doesn't have a handle on where the cursor is in |
| 3918 | the display buffer, it has to output a cr and print all the data. |
| 3919 | Fixes rest of problem reported by Egmont Koblinger |
| 3920 | - change variable denoting the position of the cursor in the line buffer |
| 3921 | from c_pos (variable local to rl_redisplay) to cpos_buffer_position |
| 3922 | (variable local to file) for future use by other functions |
| 3923 | |
| 3924 | 7/25 |
| 3925 | ---- |
| 3926 | lib/malloc/{stats,table}.h |
| 3927 | - include <string.h> for prototypes for memset, strlen |
| 3928 | |
| 3929 | lib/termcap/{termcap,tparam}.c |
| 3930 | - include <string.h> and provide macro replacement for bcopy if |
| 3931 | necessary |
| 3932 | |
| 3933 | 7/27 |
| 3934 | ---- |
| 3935 | lib/readline/histexpand.c |
| 3936 | - add support for `<<<' here-string redirection operator to |
| 3937 | history_tokenize_word. Bug reported by agriffis@gentoo.org |
| 3938 | |
| 3939 | externs.h |
| 3940 | - don't add prototype for strerror() if HAVE_STRERROR defined |
| 3941 | |
| 3942 | 7/29 |
| 3943 | ---- |
| 3944 | subst.c |
| 3945 | - in list_string, use `string' instead of `s' -- s is not initialized |
| 3946 | |
| 3947 | 8/9 |
| 3948 | --- |
| 3949 | subst.c |
| 3950 | - fix parameter_brace_expand to set W_HASQUOTEDNULL in the WORD_DESC it |
| 3951 | returns if the result of parameter_brace_substring is a quoted null |
| 3952 | ("\177"). Fixes bug reported by Igor Peshansky <pechtcha@cs.nyu.edu> |
| 3953 | |
| 3954 | 8/16 |
| 3955 | ---- |
| 3956 | lib/readline/readline.h |
| 3957 | - new #define, READERR, intended to be used to denote read/input errors |
| 3958 | |
| 3959 | lib/readline/input.c |
| 3960 | - in rl_getc, if read() returns an error other than EINTR (after the |
| 3961 | EWOULDBLOCK/EAGAIN cases are handled), return READERR rather than |
| 3962 | converting return value to EOF if readline is reading a top-level |
| 3963 | command (RL_STATE_READCMD) |
| 3964 | |
| 3965 | lib/readline/readline.c |
| 3966 | - if rl_read_key returns READERR to readline_internal_char[loop], |
| 3967 | abort as if it had read EOF on an empty line, without any conversion |
| 3968 | to newline, which would cause a partial line to be executed. This |
| 3969 | fixes the bug reported by Mathieu Bonnet <mathieu.bonnet@nalkym.org> |
| 3970 | |
| 3971 | aclocal.m4 |
| 3972 | - when testing for validity of /dev/fd/3, use /dev/null instead of |
| 3973 | standard input, since the standard input fails with linux and `su'. |
| 3974 | Bug reported by Greg Shafer <gschafer@zip.com.au> |
| 3975 | |
| 3976 | 8/17 |
| 3977 | ---- |
| 3978 | Makefile.in |
| 3979 | - switch the TAGS and tags targets so TAGS is the output of `etags' and |
| 3980 | tags is the output of `ctags'. Suggested by Masatake YAMATO |
| 3981 | |
| 3982 | 8/25 |
| 3983 | ---- |
| 3984 | execute_cmd.c |
| 3985 | - change code to match documentation: set BASH_COMMAND (which takes its |
| 3986 | value from the_printed_command_except_trap) only when not running a |
| 3987 | trap. Rocky says the debugger is ok with this, and this is what his |
| 3988 | original diffs did |
| 3989 | |
| 3990 | 8/29 |
| 3991 | ---- |
| 3992 | variables.c |
| 3993 | - change set_if_not to create shell_variables if it is NULL, since |
| 3994 | -o invocation options can cause variables to be set before the |
| 3995 | environment is scanned |
| 3996 | |
| 3997 | [bash-3.2-beta frozen] |
| 3998 | |
| 3999 | 9/5 |
| 4000 | --- |
| 4001 | [bash-3.2-beta released] |
| 4002 | |
| 4003 | 9/8 |
| 4004 | --- |
| 4005 | variables.c |
| 4006 | - change dispose_used_env_vars to call maybe_make_export_env |
| 4007 | immediately if we're disposing a temporary environment, since |
| 4008 | `environ' points to the export environment and getenv() will use |
| 4009 | that on systems that don't allow getenv() to be replaced. This |
| 4010 | could cause the temporary environment to affect the shell. Bug |
| 4011 | reported by Vasco Pedro <vp@di.uevora.pt> |
| 4012 | |
| 4013 | builtins/echo.def,doc/{bash.1,bashref.texi} |
| 4014 | - clarify that `echo -e' and echo when the `xpg_echo' shell option is |
| 4015 | enabled require the \0 to precede any octal constant to be expanded. |
| 4016 | Reported by Vasco Pedro <vp@di.uevora.pt> |
| 4017 | |
| 4018 | 9/12 |
| 4019 | ---- |
| 4020 | builtins/printf.def |
| 4021 | - make sure `%q' format specifier outputs '' for empty string arguments |
| 4022 | Bug reported by Egmont Koblinger <egmont@uhulinux.hu> |
| 4023 | |
| 4024 | make_cmd.c |
| 4025 | - change make_here_document to echo lines in here-doc if set -v has |
| 4026 | been executed. Reported by Eduardo Ochs <eduardoochs@gmail.com> |
| 4027 | |
| 4028 | aclocal.m4 |
| 4029 | - change BASH_CHECK_MULTIBYTE: |
| 4030 | o replace check for wctomb with check for wcrtomb |
| 4031 | o add checks for wcscoll, iswctype, iswupper, iswlower, |
| 4032 | towupper, towlower |
| 4033 | o add call to AC_FUNC_MBRTOWC to check for mbrtowc and mbstate_t |
| 4034 | define HAVE_MBSTATE_T manually |
| 4035 | o add checks for wchar_t, wctype_t, wint_t |
| 4036 | |
| 4037 | config.h.in |
| 4038 | - add defines for wcscoll, iswctype, iswupper, iswlower, towupper, |
| 4039 | towlower functions |
| 4040 | - replace define for wctomb with one for wcrtomb |
| 4041 | - add defines for wchar_t, wint_t, wctype_t types |
| 4042 | |
| 4043 | config-bot.h, lib/readline/rlmbutil.h |
| 4044 | - add check for HAVE_LOCALE_H before defining HANDLE_MULTIBYTE |
| 4045 | - add checks for: ISWCTYPE, ISWLOWER, ISWUPPER, TOWLOWER, TOWUPPER |
| 4046 | - add checks for: WCTYPE_T, WCHAR_T, WCTYPE_T |
| 4047 | |
| 4048 | 9/13 |
| 4049 | ---- |
| 4050 | lib/readline/display.c |
| 4051 | - when displaying prompts longer than the screenwidth in rl_redisplay, |
| 4052 | and looking for the index of the last character whose buffer index |
| 4053 | is <= the screen width to set up the inv_lbreaks array, make sure to |
| 4054 | catch the case where the index == the screen width (an off-by-one |
| 4055 | error occurs otherwise with prompts one character longer than the |
| 4056 | screen width). Bug reported by Alexey Toptygin <alexeyt@freeshell.org> |
| 4057 | |
| 4058 | configure.in |
| 4059 | - change DEBUGGER_START_FILE to start with ${ac_default_prefix}/share, |
| 4060 | like bashdb installs itself. Reported by Nick Brown |
| 4061 | <nickbroon@blueyonder.co.uk> |
| 4062 | |
| 4063 | 9/14 |
| 4064 | ---- |
| 4065 | lib/readline/display.c |
| 4066 | - make multibyte code that computes the buffer indices of line breaks |
| 4067 | for a multi-line prompt dependent on MB_CUR_MAX, so we don't take |
| 4068 | the function call hit unless we're in a locale that can have |
| 4069 | multibyte characters |
| 4070 | |
| 4071 | 9/19 |
| 4072 | ---- |
| 4073 | subst.c |
| 4074 | - make dequote_list extern so other parts of the shell can use it |
| 4075 | |
| 4076 | subst.h |
| 4077 | - extern declaration for dequote_list |
| 4078 | |
| 4079 | builtins/read.def |
| 4080 | - call dequote_list before assigning words read to array variable if |
| 4081 | we saw an escape character. Old code left spurious CTLESCs in the |
| 4082 | string after processing backslashes. Bug reported by Daniel Dawson |
| 4083 | <ddawson@icehouse.net> |
| 4084 | |
| 4085 | 9/21 |
| 4086 | ---- |
| 4087 | [bash-3.2 frozen] |
| 4088 | |
| 4089 | 10/9 |
| 4090 | ---- |
| 4091 | support/shobj-coonf |
| 4092 | - change -fpic to -fPIC for FreeBSD systems (needed for SPARC at least) |
| 4093 | |
| 4094 | 10/11 |
| 4095 | ----- |
| 4096 | [bash-3.2 released] |
| 4097 | |
| 4098 | 10/12 |
| 4099 | ----- |
| 4100 | parse.y |
| 4101 | - change parse_matched_pair to make sure `` command substitution does |
| 4102 | not check for shell comments while parsing. Bug reported against |
| 4103 | bash-3.2 by Greg Schaefer <gschafer@zip.com.au> |
| 4104 | |
| 4105 | 10/14 |
| 4106 | ----- |
| 4107 | parse.y |
| 4108 | - add new parser_state flag: PST_REGEXP; means we are parsing a |
| 4109 | regular expression following the =~ conditional operator |
| 4110 | - cond_node sets PST_REGEXP after reading the `=~' operator |
| 4111 | - change read_token to call read_token_word immediately if the |
| 4112 | PST_REGEXP bit is set in parser_state |
| 4113 | - change read_token_word to skip over `(' and `|' if PST_REGEXP is |
| 4114 | set, since those characters are legitimate regexp chars (but still |
| 4115 | parse matched pairs of parens) |
| 4116 | |
| 4117 | 10/16 |
| 4118 | ----- |
| 4119 | builtins/ulimit.def |
| 4120 | - add -e and -r to $SHORT_DOC usage string |
| 4121 | |
| 4122 | po/ru.po |
| 4123 | - fix encoding; Russian text in the file is actually encoded in KOI8-R |
| 4124 | |
| 4125 | 10/23 |
| 4126 | ----- |
| 4127 | shell.c |
| 4128 | - make sure that the call to move_to_high_fd in open_shell_script |
| 4129 | passes 1 for the `check_new' parameter so open high file descriptors |
| 4130 | don't get closed and reused. Bug reported by Mike Stroyan |
| 4131 | <mike.stroyan@hp.com> |
| 4132 | |
| 4133 | doc/bashref.texi |
| 4134 | - fixes for typos and misspellings sent in by Brian Gough |
| 4135 | |
| 4136 | 10/24 |
| 4137 | ----- |
| 4138 | support/shobj-conf |
| 4139 | - make netbsd shared library creation like openbsd's until I hear |
| 4140 | differently (called using `gcc -shared') |
| 4141 | |
| 4142 | 10/26 |
| 4143 | ----- |
| 4144 | subst.c |
| 4145 | - fix bug in parameter_brace_patsub so if the first character of the |
| 4146 | expanded pattern is a `/', it is not taken as a global replacement |
| 4147 | specifier. Bug reported on forums.nekochan.net |
| 4148 | |
| 4149 | 10/27 |
| 4150 | ----- |
| 4151 | builtins/printf.def |
| 4152 | - if we need an extern declaration for asprintf, make sure we include |
| 4153 | stdarg.h or varargs.h, whichever is appropriate |
| 4154 | - if we do not have asprintf, add an extern declaration using |
| 4155 | stdarg format. This fixes the bugs with %G on IRIX reported by |
| 4156 | Matthew Woehlke <mwoehlke@tibco.com> and Stuart Shelton |
| 4157 | <srcshelton@gmail.com> |
| 4158 | |
| 4159 | |
| 4160 | lib/sh/snprintf.c |
| 4161 | - add note to not call log_10 with 0 argument -- we don't want to do |
| 4162 | what real log10 does (-infinity/raise divide-by-zero exception) |
| 4163 | - make sure numtoa (used by dtoa) takes the precision into account |
| 4164 | when computing the fractional part with an argument of `0.0' |
| 4165 | - make sure `g' and `G' formats don't print radix char if there are |
| 4166 | no characters to be printed after it (change to floating()) |
| 4167 | - change callers of log_10 (exponent, 'g' and 'G' cases in |
| 4168 | vsnprintf_internal) to not call it with 0 for argument. This fixes |
| 4169 | the hang reported on IRIX by Matthew Woehlke <mwoehlke@tibco.com> |
| 4170 | and Stuart Shelton <mwoehlke@tibco.com> |
| 4171 | |
| 4172 | 10/28 |
| 4173 | ----- |
| 4174 | builtins/{caller,pushd}.def |
| 4175 | - changed longdoc strings in loadable builtin section to be single |
| 4176 | strings, as put in the build directory builtins.c file, to aid |
| 4177 | translators |
| 4178 | |
| 4179 | 11/1 |
| 4180 | ---- |
| 4181 | execute_cmd.c |
| 4182 | - reset subshell_environment to 0 after make_child() call in |
| 4183 | execute_null_command. Fix provided by Roy Marples |
| 4184 | <uberlord@gentoo.org> |
| 4185 | |
| 4186 | 11/7 |
| 4187 | ---- |
| 4188 | lib/tilde/tilde.c |
| 4189 | lib/readline/{util,undo,callback,input,isearch,kill}.c |
| 4190 | - make sure that memory allocated with xmalloc is freed with xfree |
| 4191 | |
| 4192 | 11/9 |
| 4193 | ---- |
| 4194 | lib/readline/display.c |
| 4195 | - make sure that _rl_redisplay_after_sigwinch clears the last displayed |
| 4196 | line instead of the current line (instead of assuming that the |
| 4197 | cursor is on the last line). Fixes bug reported by Egmont |
| 4198 | Koblinger <egmont@uhulinux.hu> |
| 4199 | |
| 4200 | 11/10 |
| 4201 | ----- |
| 4202 | lib/readline/display.c |
| 4203 | - make sure that _rl_col_width is never called with MB_CUR_MAX == 1, |
| 4204 | since it doesn't count invisible characters and they are not |
| 4205 | compensated for. Added a warning in _rl_col_width if called when |
| 4206 | MB_CUR_MAX == 1. Bug reported and solution suggested by Eric |
| 4207 | Blake <ebb9@byu.net> |
| 4208 | |
| 4209 | 11/11 |
| 4210 | ----- |
| 4211 | lib/readline/display.c |
| 4212 | - make sure _rl_wrapped_line is initialized to inv_lbsize int chars. |
| 4213 | inv_lbsize and vis_lbsize are the same at that point, but it makes |
| 4214 | the intent clearer. Fix from jan.kratochvil@redhat.com. |
| 4215 | - in rl_redisplay, make sure we call memset on _rl_wrapped_line with |
| 4216 | its full initialized size: inv_lbsize*sizeof(int). Fix from |
| 4217 | jan.kratochvil@redhat.com. |
| 4218 | - wrap the invisible and visible line variables and _rl_wrapped_line |
| 4219 | into line_state structures, which can be swapped more efficiently. |
| 4220 | Have to watch the wrapped_line field, since there's now one for |
| 4221 | each struct. Changes from jan.kratochvil@redhat.com. |
| 4222 | |
| 4223 | lib/readline/complete.c |
| 4224 | - in stat_char, check for `//server' on cygwin and return `/', since |
| 4225 | it will always behave as a directory. Fix from Eric Blake |
| 4226 | |
| 4227 | lib/readline/histfile.c |
| 4228 | - Cygwin's mmap() works in recent versions, so don't #undef HAVE_MMAP. |
| 4229 | Recommendation from Eric Blake |
| 4230 | |
| 4231 | lib/readline/rlwinsize.h |
| 4232 | - make sure tcflow() is defined on SCO Unix. Fix from William Bader |
| 4233 | |
| 4234 | aclocal.m4 |
| 4235 | - add check for localeconv to AM_INTL_SUBDIR macro |
| 4236 | |
| 4237 | config.h.in |
| 4238 | - add HAVE_LOCALECONV |
| 4239 | |
| 4240 | lib/sh/snprintf.c |
| 4241 | - add check for HAVE_LOCALECONV for GETLOCALEDATA macro |
| 4242 | |
| 4243 | general.[ch] |
| 4244 | - first argument to legal_number is now `const char *' |
| 4245 | |
| 4246 | 11/14 |
| 4247 | ----- |
| 4248 | lib/readline/{readline,rlprivate}.h |
| 4249 | - move rl_display_prompt declaration from rlprivate.h to readline.h |
| 4250 | |
| 4251 | lib/readline/util.h |
| 4252 | - new function: rl_free(void *mem), for use by users of readline dlls |
| 4253 | on Windows |
| 4254 | |
| 4255 | lib/readline/readline.h |
| 4256 | - new extern declaration for rl_free |
| 4257 | |
| 4258 | lib/readline/doc/rltech.texi |
| 4259 | - document rl_free and rl_display_prompt for use by application writers |
| 4260 | |
| 4261 | 11/15 |
| 4262 | ----- |
| 4263 | aclocal.m4 |
| 4264 | - change tests for /dev/fd and /dev/stdin to use constructs of the form |
| 4265 | (exec test ... ) instead of test ... to avoid bash's /dev/fd and |
| 4266 | /dev/stdin emulation |
| 4267 | |
| 4268 | 11/16 |
| 4269 | ----- |
| 4270 | jobs.c |
| 4271 | - in delete_job, reset_current was being called before the job slot |
| 4272 | was cleared -- moved after job_slots[job] was set to NULL. Fixes |
| 4273 | bug reported by Dan Jacobson <jidanni@jidanni.org> |
| 4274 | |
| 4275 | 11/19 |
| 4276 | ----- |
| 4277 | findcmd.c |
| 4278 | - when the checkhash option is set, fix the check for the hashed |
| 4279 | pathname being an existing executable file. Old code required a |
| 4280 | hash table deletion and re-addition. Bug reported by Linda |
| 4281 | Walsh <bash@tlinx.org> |
| 4282 | |
| 4283 | 11/21 |
| 4284 | ----- |
| 4285 | subst.c |
| 4286 | - in pos_params, handle case of `start' == 0 by making the list of |
| 4287 | positional parameters begin with $0 |
| 4288 | - in parameter_brace_substring, increment `len' if start == 0, sicne |
| 4289 | we will be adding $0 to the beginning of the list when we process it |
| 4290 | |
| 4291 | doc/{bash.1,bashref.texi} |
| 4292 | - document new behavior of `0' offset when using substring expansion |
| 4293 | with the positional parameters |
| 4294 | |
| 4295 | support/shobj-conf |
| 4296 | - changes to shared object creation for loadable builtins on Mac OS X |
| 4297 | 10.4 to use libtool instead of ld by specifying -dynamiclib |
| 4298 | argument and changing options to be appropriate for libtool. This |
| 4299 | winds up creating a dynamic shared library instead of an executable |
| 4300 | |
| 4301 | 11/24 |
| 4302 | ----- |
| 4303 | {jobs,nojobs}.c |
| 4304 | - don't set last_asynchronous_pid to the child's pid in the child |
| 4305 | for asynchronous jobs (for compatibility -- all other posix shells |
| 4306 | seem to do it this way). This means that (echo $! )& echo $! should |
| 4307 | display two different pids. Fix from discussion on the |
| 4308 | austin-group-l list |
| 4309 | |
| 4310 | builtins/mkbuiltins.c |
| 4311 | - change builtins.c file generation so short doc strings are marked for |
| 4312 | gettext and available for subsequent translation. Suggestion by |
| 4313 | Benno Schulenberg <bensberg@justemail.net> |
| 4314 | |
| 4315 | builtins/{bind,cd,hash,inlib,printf,pushd,test,times,ulimit}.def |
| 4316 | lib/malloc/malloc.c |
| 4317 | {shell,subst}.c |
| 4318 | - fix a few strings that were not marked as translatable. Fix from |
| 4319 | Benno Schulenberg <bensberg@justemail.net> |
| 4320 | |
| 4321 | lib/readline/misc.c |
| 4322 | - new function, _rl_revert_all_lines(void). Goes through history, |
| 4323 | reverting all entries to their initial state by undoing any undo |
| 4324 | lists. |
| 4325 | |
| 4326 | lib/readline/rlprivate.h |
| 4327 | - extern declaration for _rl_revert_all_lines |
| 4328 | |
| 4329 | rldefs.h |
| 4330 | - add #undef HAVE_STRCOLL if STRCOLL_BROKEN is defined, prep to move |
| 4331 | from config.h.in. Problem reported by Valerly Ushakov |
| 4332 | <uwe@ptc.spbu.ru> |
| 4333 | |
| 4334 | 11/25 |
| 4335 | ----- |
| 4336 | lib/readline/readline.c |
| 4337 | - call _rl_revert_all_lines from readline_internal_teardown if the |
| 4338 | variable _rl_revert_all_at_newline is non-zero |
| 4339 | - declare _rl_revert_all_lines initially 0 |
| 4340 | |
| 4341 | 11/27 |
| 4342 | ----- |
| 4343 | doc/{bash.1,bashref.texi} |
| 4344 | - make sure to be explicit that `typeset +r' cannot remove the readonly |
| 4345 | attribute from a variable |
| 4346 | |
| 4347 | 11/28 |
| 4348 | ----- |
| 4349 | lib/sh/zmapfd.c |
| 4350 | - new file, implements zmapfd(), which takes a file and returns its |
| 4351 | contents in a string |
| 4352 | |
| 4353 | externs.h |
| 4354 | - extern declaration for zmapfd |
| 4355 | |
| 4356 | 11/29 |
| 4357 | ----- |
| 4358 | builtins/evalfile.c |
| 4359 | - in _evalfile, use zmapfd to read the contents of the file into a |
| 4360 | string, rather than using the size reported by stat and reading that |
| 4361 | many characters, if the file is not a regular file (for things like |
| 4362 | named pipes, stat reports the size as 0) |
| 4363 | |
| 4364 | 12/3 |
| 4365 | ---- |
| 4366 | lib/sh/snprintf.c |
| 4367 | - make sure number() sets the FL_UNSIGNED flag for %x and %X, so |
| 4368 | fmtulong treats them as unsigned numbers. Fixes bug reported by |
| 4369 | James Botte <James.M.Botte@lowes.com> |
| 4370 | |
| 4371 | 12/13 |
| 4372 | ----- |
| 4373 | lib/readline/util.c |
| 4374 | - new function, _rl_ttymsg, for internal warning messages -- does |
| 4375 | redisplay after printing message |
| 4376 | - new function, _rl_errmsg, for internal warning/error messages -- |
| 4377 | does not do redisplay after printing message |
| 4378 | |
| 4379 | lib/readline/rlprivate.h |
| 4380 | - new extern declaration for _rl_ttymsg, _rl_errmsg |
| 4381 | |
| 4382 | lib/readline/{bind,callback,complete,display,rltty}.c |
| 4383 | - use _rl_ttymsg/_rl_errmsg instead of direct writes to stderr |
| 4384 | |
| 4385 | lib/sh/tmpfile.c |
| 4386 | - in get_tmpdir(), make sure that $TMPDIR names a writable directory; |
| 4387 | otherwise skip it. This catches names longer than PATH_MAX, but in |
| 4388 | case it doesn't test that the length does not exceed PATH_MAX. Fixes |
| 4389 | heap overrun bug reported by Eric Blake <ebb9@byu.net> |
| 4390 | |
| 4391 | 12/16 |
| 4392 | ----- |
| 4393 | builtin/{set,declare,shopt,trap,wait,bind,complete,enable,fc,history,read,setattr}.def |
| 4394 | doc/{bash.1,bashref.texi} |
| 4395 | - improvements and clarifications to the help text associated with |
| 4396 | several builtins, in some cases bringing them into line with the |
| 4397 | man page text. From Benno Schulenberg <bensberg@justemail.net> |
| 4398 | |
| 4399 | doc/{bash.1,bashref.texi} |
| 4400 | - add `E' and `T' to the synopsis of the set builtin. |
| 4401 | From Benno Schulenberg <bensberg@justemail.net> |
| 4402 | |
| 4403 | builtins/{break,exit,fg_bg,hash,jobs,type,ulimit}.def |
| 4404 | builtins/{common,evalfile}.c |
| 4405 | {error,expr,jobs,mksyntax,nojobs,shell,subst,version,siglist}.c |
| 4406 | - add gettextizing marks to untranslated strings |
| 4407 | From Benno Schulenberg <bensberg@justemail.net> |
| 4408 | |
| 4409 | 12/19 |
| 4410 | ----- |
| 4411 | builtins/common.c |
| 4412 | - change display_signal_list (used by `trap -l' and `kill -l') to use |
| 4413 | five columns instead of 4 to display signal names |
| 4414 | |
| 4415 | builtins/help.def |
| 4416 | - use the true terminal width instead of assuming 80 when displaying |
| 4417 | help topics, leaving two characters of whitespace between horizontal |
| 4418 | descriptions instead of 1 |
| 4419 | - change to print in columns with entries sorted down rather than across |
| 4420 | (that is, like `ls' rather than `ls -x'). Change inspired by Benno |
| 4421 | Schulenberg <bensberg@justemail.net> |
| 4422 | |
| 4423 | jobs.h |
| 4424 | - give values to the JOB_STATE enumerations so they can be used as |
| 4425 | bitmasks, too |
| 4426 | |
| 4427 | 12/22 |
| 4428 | ----- |
| 4429 | doc/{bash.1,bashref.texi} |
| 4430 | - change description of `set' to make it clearer that you can use |
| 4431 | `+' to turn off options |
| 4432 | - clarify in the description of word splitting that sequences of |
| 4433 | IFS whitespace at the beginning or end of the string are ignored |
| 4434 | |
| 4435 | 12/26 |
| 4436 | ----- |
| 4437 | doc/bashref.texi |
| 4438 | - move `shopt' builtin to its own section; change internal references |
| 4439 | from `Bash Builtins' to the new shopt builtin |
| 4440 | - new section for builtins that modify shell behavior in `Shell |
| 4441 | Builtin Commands'; move set and shopt to new section. Changes |
| 4442 | inspired by Benno Schulenberg <bensberg@justemail.net> |
| 4443 | |
| 4444 | {redir,subst}.c |
| 4445 | - add MT_USETMPDIR flag to calls to sh_mktmpfd and sh_mktmpname. Bug |
| 4446 | reported by Eric Blake <ebb9@byu.net> |
| 4447 | |
| 4448 | {configure,Makefile}.in |
| 4449 | - changes so that the pathname for DEBUGGER_START_FILE is substituted |
| 4450 | into pathnames.h at make time (allowing more flexibility in setting |
| 4451 | `prefix' or `datadir') instead of at configure time. Suggested by |
| 4452 | Nick Brown <nickbroon@blueyonder.co.uk> |
| 4453 | |
| 4454 | shell.c |
| 4455 | - declaration for have_devfd; initialized from HAVE_DEV_FD |
| 4456 | - declaration for check_jobs_at_exit; initialized to 0 |
| 4457 | - declaration for autocd; initialized to 0 |
| 4458 | |
| 4459 | variables.c |
| 4460 | - new dynamic variable, BASHPID, always set from return value from |
| 4461 | getpid() (changes even when $$ doesn't change). Idea from Bruce |
| 4462 | Korb <bruce.corb@3pardata.com> |
| 4463 | |
| 4464 | builtins/exit.def |
| 4465 | - if check_jobs_at_exit is non-zero, list jobs if there are any stopped |
| 4466 | or running background jobs; don't exit shell if any running jobs |
| 4467 | |
| 4468 | execute_cmd.c |
| 4469 | - in execute_simple_command, if the first word of a simple command is |
| 4470 | a directory name (after looking for builtins, so `.' isn't caught) |
| 4471 | that isn't found in $PATH, and `autocd' is non-zero, prefix a "cd" |
| 4472 | to the command words |
| 4473 | |
| 4474 | builtins/shopt.def |
| 4475 | - new `checkjobs' option, changes value of check_jobs_at_exit |
| 4476 | - new `autocd' option, changes value of autocd |
| 4477 | |
| 4478 | pcomplete.c |
| 4479 | - add COMP_TYPE, set to rl_completion_type, to list of variables set |
| 4480 | by bind_compfunc_variables and unset by unbind_compfunc_variables |
| 4481 | |
| 4482 | doc/{bash.1,bashref.texi} |
| 4483 | - document BASHPID |
| 4484 | - document new shopt `checkjobs' option |
| 4485 | - document new shopt `autocd' option |
| 4486 | - document COMP_TYPE completion variable |
| 4487 | |
| 4488 | 12/29 |
| 4489 | ----- |
| 4490 | aclocal.m4 |
| 4491 | - in BASH_SYS_SIGLIST, check HAVE_DECL_SYS_SIGLIST instead of the |
| 4492 | obsolete and no-longer-supported SYS_SIGLIST_DECLARED |
| 4493 | |
| 4494 | 12/30 |
| 4495 | ----- |
| 4496 | lib/readline/vi_mode.c |
| 4497 | - add ` (backquote) to the list of vi motion characters |
| 4498 | - in rl_vi_delete_to, rl_vi_change_to, and rl_vi_yank_to, don't delete |
| 4499 | character under the cursor if the motion command moves the cursor |
| 4500 | backward, so add F and T to the commands that don't cause the |
| 4501 | mark to be adjusted |
| 4502 | - add ` to the characters that don't cause the mark to be adjusted |
| 4503 | when used as a motion command, since it's defined to behave that way |
| 4504 | - when a motion character that may adjust the mark moves point |
| 4505 | backward, don't adjust the mark so the character under the cursor |
| 4506 | isn't deleted |
| 4507 | |
| 4508 | lib/readline/complete.c |
| 4509 | - add variable rl_sort_completion_matches; allows application to |
| 4510 | inhibit match list sorting |
| 4511 | - add variable rl_completion_invoking_key; allows applications to |
| 4512 | discover the key that invoked rl_complete or rl_menu_complete |
| 4513 | |
| 4514 | lib/readline/readline.h |
| 4515 | - extern declarations for rl_completion_invoking_key and |
| 4516 | rl_sort_completion_matches |
| 4517 | |
| 4518 | lib/readline/doc/rltech.texi |
| 4519 | - documented rl_completion_invoking_key and rl_sort_completion_matches |
| 4520 | |
| 4521 | pcomplete.c |
| 4522 | - export variable COMP_KEY to completion functions; initialized from |
| 4523 | rl_completion_invoking_key; unset along with rest of completion |
| 4524 | variables |
| 4525 | |
| 4526 | doc/{bash.1,bashref.texi},lib/readline/doc/rluser.texi |
| 4527 | - document COMP_KEY |
| 4528 | |
| 4529 | [many files] |
| 4530 | - changes to make variables and function parameters `const' for better |
| 4531 | text sharing. Changes originally from Andreas Mohr |
| 4532 | <andi@rhlx01.fht-esslingen.de> |
| 4533 | |
| 4534 | 1/4/2007 |
| 4535 | -------- |
| 4536 | lib/intl/Makefile.in |
| 4537 | - use cmp before copying libgnuintl.h to libintl.h -- maybe save a few |
| 4538 | rebuilds |
| 4539 | |
| 4540 | lib/builtins/Makefile |
| 4541 | - fixes to build LIBINTL_H if necessary, dependency on this for |
| 4542 | mkbuiltins.o prevented `make -j 6' from working correctly |
| 4543 | |
| 4544 | 1/8 |
| 4545 | --- |
| 4546 | subst.c |
| 4547 | - new function, fifos_pending(), returns the count of FIFOs in |
| 4548 | fifo_list (process substitution) |
| 4549 | |
| 4550 | subst.h |
| 4551 | - extern declaration for fifos_pending() |
| 4552 | |
| 4553 | execute_cmd.c |
| 4554 | - in execute_simple_command, if CMD_NO_FORK is set before we call |
| 4555 | execute_disk_command, make sure there are no FIFOs in the expanded |
| 4556 | words (from process substitution) and turn off CMD_NO_FORK if there |
| 4557 | are, so they can get unlinked when the command finishes |
| 4558 | |
| 4559 | 1/10 |
| 4560 | ---- |
| 4561 | subst.c |
| 4562 | - read_comsub now takes a flags parameter and returns appropriate W_* |
| 4563 | flags in it |
| 4564 | - command_substitute now returns a WORD_DESC *, with the string it used |
| 4565 | to return as the `word' and `flags' filled in appropriately |
| 4566 | |
| 4567 | subst.h |
| 4568 | - changed extern declaration for command_substitute |
| 4569 | |
| 4570 | {pcomplete,subst}.c |
| 4571 | - changed callers of command_substitute appropriately |
| 4572 | |
| 4573 | subst.c |
| 4574 | - string_extract_verbatim now takes an additional int flags argument; |
| 4575 | changed callers |
| 4576 | |
| 4577 | 1/11 |
| 4578 | ---- |
| 4579 | support/texi2html |
| 4580 | - fix problem that caused index links to not be generated if the first |
| 4581 | index node had a name different than the node name |
| 4582 | |
| 4583 | doc/bashref.texi |
| 4584 | - encapsulated all indexes into a single `Indexes' appendix; works |
| 4585 | around bug fixed in texi2html |
| 4586 | |
| 4587 | 1/12 |
| 4588 | ---- |
| 4589 | subst.c |
| 4590 | - add call to sv_histtimefmt in initialize_variables so HISTTIMEFORMAT |
| 4591 | from the environment is honored. Fix from Ark Submedes (heh) |
| 4592 | <archimerged@gmail.com> |
| 4593 | |
| 4594 | lib/readline/histfile.c |
| 4595 | - make sure that the first character following the history comment |
| 4596 | character at the beginning of a line is a digit before interpreting |
| 4597 | it as a timestamp for the previous line |
| 4598 | |
| 4599 | doc/{bash.1,bashref.texi},lib/readline/doc/hsuser.texi |
| 4600 | - added detail to make it clear exactly how history timestamps are |
| 4601 | saved to and read from the history file |
| 4602 | |
| 4603 | subst.c |
| 4604 | - change quote_escapes to add CTLESC before spaces if IFS is null, |
| 4605 | just in case we have to split on literal spaces later on (e.g., in |
| 4606 | case of unquoted $@). Corresponding changes to dequote_escapes. |
| 4607 | Fixes a couple of problems reported by Brett Stahlman |
| 4608 | <brettstahlman@comcast.net> |
| 4609 | |
| 4610 | 1/14 |
| 4611 | ---- |
| 4612 | subst.c |
| 4613 | - make same change to read_comsub to add CTLESC before ' ' if $IFS is |
| 4614 | null, since we will split on literal spaces later |
| 4615 | |
| 4616 | 1/15 |
| 4617 | ---- |
| 4618 | array.c |
| 4619 | - new function, array_quote_escapes (ARRAY *a), calls quote_escapes |
| 4620 | on each element of the array in the same way array_quote calls |
| 4621 | quote_string |
| 4622 | - call array_quote_escapes if match is not quoted in array_patsub |
| 4623 | - array_slice is now used, so remove the #ifdef INCLUDE_UNUSED define |
| 4624 | - change structure of array_subrange to call array_slice to create a |
| 4625 | new array with the desired subset of elements, then call array_quote |
| 4626 | or array_quote_escapes as necessary, like array_patsub. Convert to |
| 4627 | a string by calling array_to_string on the sliced-out array |
| 4628 | |
| 4629 | array.h |
| 4630 | - new extern declaration for array_quote_escapes |
| 4631 | |
| 4632 | subst.c |
| 4633 | - since array_patsub now calls quote_escapes as necessary, callers |
| 4634 | don't need to call it after array_patsub returns. Fixes first bug |
| 4635 | reported by Brett Stahlman <brettstahlman@comcast.net> |
| 4636 | - since array_subrange now calls quote_escapes as necessary, callers |
| 4637 | don't need to call it after array_patsub returns. Same fix as |
| 4638 | for array_patsub |
| 4639 | |
| 4640 | 1/31 |
| 4641 | ---- |
| 4642 | configure.in |
| 4643 | - add -DSOLARIS to LOCAL_CFLAGS for solaris x |
| 4644 | |
| 4645 | config-bot.h |
| 4646 | - don't #undef HAVE_GETCWD if GETCWD_BROKEN and SOLARIS are both |
| 4647 | defined. Solaris's loopback mount implementation breaks some of the |
| 4648 | file system assumptions the replacement getcwd uses. |
| 4649 | |
| 4650 | builtins/common.c |
| 4651 | - if GETCWD_BROKEN is defined, call getcwd with PATH_MAX for the size |
| 4652 | argument, so it will allocate a buffer for the current working dir |
| 4653 | with that size, instead of one that's `big enough' |
| 4654 | |
| 4655 | config.h.in |
| 4656 | - add #undef PRI_MACROS_BROKEN for AIX 4.3.3 |
| 4657 | |
| 4658 | pathexp.h |
| 4659 | - new flag value for quote_string_for_globbing: QGLOB_REGEXP (quoting |
| 4660 | an ERE for matching as a string) |
| 4661 | |
| 4662 | pathexp.c |
| 4663 | - change quote_string_for_globbing to understand QGLOB_REGEXP |
| 4664 | |
| 4665 | execute_cmd.c |
| 4666 | - change execute_cond_node to pass 2 (regexp match), 1 (shell pattern |
| 4667 | match), or 0 (no matching) to cond_expand_word |
| 4668 | |
| 4669 | subst.c |
| 4670 | - change cond_expand_word to translate SPECIAL==2 into passing |
| 4671 | QGLOB_REGEXP to quote_string_for_globbing |
| 4672 | |
| 4673 | locale.c |
| 4674 | - by default, if all else fails, set shell's idea of locale to "" |
| 4675 | instead of its idea of `default_locale' -- the library functions |
| 4676 | behave better with that value |
| 4677 | |
| 4678 | 2/2 |
| 4679 | --- |
| 4680 | builtins/printf.def |
| 4681 | - if PRI_MACROS_BROKEN is defined, #undef PRIdMAX (AIX 4.3.3 broken) |
| 4682 | |
| 4683 | 2/3 |
| 4684 | --- |
| 4685 | Makefile.in,{builtins,doc}/Makefile.in,lib/*/Makefile.in |
| 4686 | - add assignment for datarootdir as per GNU coding standards |
| 4687 | |
| 4688 | Makefile.in,builtins/Makefile.in,lib/intl/Makefile.in,po/Makefile.in.in |
| 4689 | - use @localedir@ instead of $(datadir)/locale in assignment |
| 4690 | |
| 4691 | 2/13 |
| 4692 | ---- |
| 4693 | jobs.c |
| 4694 | - fix compact_jobs_list to not return js.j_lastj, since that is in use |
| 4695 | and should not be overwritten. Fix from Len Lattanzi |
| 4696 | <llattanzi@apple.com> |
| 4697 | |
| 4698 | 2/16 |
| 4699 | ---- |
| 4700 | lib/readline/text.c |
| 4701 | - change rl_forward_char to allow moving to the end of the line when |
| 4702 | using the arrow keys in vi insertion mode, rather than having the |
| 4703 | behavior identical between vi command and insertion modes. Change |
| 4704 | suggested by Hugh Sasse <hgs@dmu.ac.uk> |
| 4705 | |
| 4706 | 2/19 |
| 4707 | ---- |
| 4708 | CWRU/audit-patch |
| 4709 | - patch from Steve Grubb of RedHat <sgrubb@redhat.com> to make bash |
| 4710 | audit root's behavior by logging commands using his audit |
| 4711 | framework. Enabled if the shell's name is `aubash'. |
| 4712 | |
| 4713 | 3/8 |
| 4714 | --- |
| 4715 | jobs.c |
| 4716 | - use WSTATUS (p->status) instead of bare p->status. Fix from |
| 4717 | Jim Brown <jim.brown@rsmas.miami.edu> |
| 4718 | |
| 4719 | 3/9 |
| 4720 | --- |
| 4721 | lib/readline/{complete,input,isearch,misc,readline,text,vi_mode}.c |
| 4722 | - make sure cases where rl_read_key returns -1 (usually due to EIO |
| 4723 | because the controlling tty has gone away) are handled correctly. |
| 4724 | Prompted by report from Thomas Loeber <ifp@loeber1.de> |
| 4725 | |
| 4726 | 3/10 |
| 4727 | ---- |
| 4728 | sig.c |
| 4729 | - new function, top_level_cleanup, callable from contexts where some |
| 4730 | cleanup needs to be performed before a non-fatal call to |
| 4731 | jump_to_top_level |
| 4732 | |
| 4733 | sig.h |
| 4734 | - new extern declaration for top_level_cleanup |
| 4735 | |
| 4736 | builtins/common.c |
| 4737 | - add calls to top_level_cleanup before calls to jump_to_top_level |
| 4738 | in a builtin command context (no_args(), get_numeric_arg()). Fixes |
| 4739 | bug reported by Ian Watson |
| 4740 | |
| 4741 | lib/readline/display.c |
| 4742 | - in _rl_move_cursor_relative, use `new' when comparing against |
| 4743 | the last invisible character in the prompt, since they both denote |
| 4744 | buffer indices when in a multibyte locale, whereas `dpos' is a |
| 4745 | display position |
| 4746 | |
| 4747 | 3/13 |
| 4748 | ---- |
| 4749 | lib/readline/complete.c |
| 4750 | - set rl_completion_append_character to the default (' ') in |
| 4751 | set_completion_defaults(). Fixes bug reported by David Emerson |
| 4752 | <demerson3x@angelbase.com> |
| 4753 | |
| 4754 | 3/23 |
| 4755 | ---- |
| 4756 | builtins/evalfile.c |
| 4757 | - make sure read() returns a value >= 0 before using it as an index |
| 4758 | into string[] |
| 4759 | - use a variable of type `ssize_t' for return value from read() |
| 4760 | - only try to read the entire contents of a regular file in one shot |
| 4761 | if the file size is less than SSIZE_MAX. These fix problems |
| 4762 | reported by hooanon05@yahoo.co.jp. |
| 4763 | |
| 4764 | include/typemax.h |
| 4765 | - define SSIZE_MAX as 32767 if it's not defined |
| 4766 | |
| 4767 | lib/readline/display.c |
| 4768 | - in rl_redisplay() and update_line(), if redrawing the prompt because |
| 4769 | it contains invisible characters, make sure we redraw the character |
| 4770 | indicating a modified history line and take it into account when |
| 4771 | computing _rl_last_c_pos |
| 4772 | - in update_line, if deleting characters and redrawing the new text, |
| 4773 | make sure we adjust _rl_last_c_pos by wrap_offset in a multibyte |
| 4774 | locale if the text we're drawing starts before or at the last |
| 4775 | invisible character in the prompt string. Fixes bug reported on |
| 4776 | bug-readline by J Pelkey <pelkeyj@gmail.com> |
| 4777 | |
| 4778 | parse.y |
| 4779 | - when adding at CTLESC character to the current token, do not |
| 4780 | escape it with CTLESC if pass_next_character indicates that the |
| 4781 | CTLESC was escaped by a backslash. Fixes bug reported by |
| 4782 | Paul Bagshaw <paul.bagshaw@orange-ftgroup.com>. |
| 4783 | |
| 4784 | 3/25 |
| 4785 | ---- |
| 4786 | lib/readline/text.c |
| 4787 | - in rl_forward_char, short-circuit the loop if in emacs mode and |
| 4788 | rl_point == rl_end. Fixes problem with multibyte locales |
| 4789 | reported by Len Lattanzi <llattanzi@apple.com> |
| 4790 | |
| 4791 | 3/29 |
| 4792 | ---- |
| 4793 | command.h |
| 4794 | - new flag for subshell_environment: SUBSHELL_PROCSUB, for process |
| 4795 | substitution |
| 4796 | |
| 4797 | subst.c |
| 4798 | - add SUBSHELL_PROCSUB to subshell_environment in process_substitute |
| 4799 | |
| 4800 | 3/30 |
| 4801 | ---- |
| 4802 | doc/Makefile.in |
| 4803 | - fix installation of bash.info to understand that it is in the build |
| 4804 | directory, not the source directory |
| 4805 | |
| 4806 | mailcheck.c |
| 4807 | - new function, init_mail_dates, calls remember_mail_dates only if |
| 4808 | there are no mailboxes in `mailfiles' |
| 4809 | - new function, init_mail_file, initializes a FILEINFO, using the |
| 4810 | last time mail was checked as the mtime and atime (or the time the |
| 4811 | shell was started if last_time_mail_checked is uninitialized) |
| 4812 | - call init_mail_file instead of update_mail_file in add_mail_file, |
| 4813 | called from remember_mail_dates (which is supposed to initialize |
| 4814 | the list of mail files) |
| 4815 | - new convenience functions, alloc_mail_file and dispose_mail_file to |
| 4816 | allocate and free FILEINFO structs |
| 4817 | |
| 4818 | mailcheck.h |
| 4819 | - extern declaration for init_mail_dates |
| 4820 | |
| 4821 | shell.c |
| 4822 | - call init_mail_dates instead of remember_mail_dates |
| 4823 | |
| 4824 | 4/4 |
| 4825 | --- |
| 4826 | builtins/read.def |
| 4827 | - changes to print $PS2 when a line is continued with a backslash in |
| 4828 | an interactive shell. This is as POSIX requires |
| 4829 | |
| 4830 | 4/5 |
| 4831 | --- |
| 4832 | subst.c |
| 4833 | - make sure quote_escapes is only ever called when the word to be |
| 4834 | escaped is not marked as double-quoted -- cleaner, and allows us |
| 4835 | to make certain assumptions |
| 4836 | |
| 4837 | 4/6 |
| 4838 | --- |
| 4839 | subst.c |
| 4840 | - change all EX_* defines to begin with SX_ |
| 4841 | - new flag, SX_NOCTLESC, obeyed by string_extract_verbatim, tells it |
| 4842 | to not obey CTLESC quoting |
| 4843 | - change quote_escapes to not quote CTLESC with CTLESC if one of the |
| 4844 | chars in $IFS is CTLESC, since the return value from quote_string |
| 4845 | will be passed to word splitting and filename generation |
| 4846 | - change read_comsub to do the same thing for unquoted command |
| 4847 | substitutions |
| 4848 | - change list_string to pass SX_NOCTLESC if CTLESC is one of the |
| 4849 | chars in $IFS, so it will split on CTLESC instead of using it as a |
| 4850 | quote character |
| 4851 | |
| 4852 | 4/7 |
| 4853 | --- |
| 4854 | subst.c |
| 4855 | - slight change to string_extract_verbatim to allow CTLESC to quote |
| 4856 | CTLNUL even if SX_NOCTLESC is set in the flags passed, to protect |
| 4857 | the CTLNULs from future calls to remove_quoted_nulls. Only |
| 4858 | matters when $IFS contains CTLESC |
| 4859 | - changes to cope with $IFS containing CTLNUL in the same way as the |
| 4860 | CTLESC changes |
| 4861 | |
| 4862 | builtins/read.def |
| 4863 | - changes to cope with $IFS containing CTLNUL in the same way as the |
| 4864 | CTLESC changes |
| 4865 | |
| 4866 | 4/16 |
| 4867 | ---- |
| 4868 | lib/sh/strftime.c |
| 4869 | - a couple of fixes to the `%z' code |
| 4870 | |
| 4871 | eval.c |
| 4872 | - add an fflush after printing the auto-logout message |
| 4873 | |
| 4874 | 4/24 |
| 4875 | ---- |
| 4876 | subst.c |
| 4877 | - add call to top_level_cleanup in exp_jump_to_top_level to get things |
| 4878 | like unwind-protects and the loop levels cleaned up |
| 4879 | |
| 4880 | {arrayfunc,expr,variables}.c |
| 4881 | - add calls to top_level_cleanup before jump_to_top_level() |
| 4882 | |
| 4883 | 4/27 |
| 4884 | ---- |
| 4885 | builtins/complete.def |
| 4886 | - make sure the `command' argument to the -C option is printed with |
| 4887 | single quotes, since multi-word commands will require them. Bug |
| 4888 | reported by martin@snowplow.org |
| 4889 | |
| 4890 | execute_cmd.c |
| 4891 | - change execute_builtin_or_function and execute_subshell_builtin_or_function |
| 4892 | to call fflush(stdout) after the builtin or function returns, to |
| 4893 | make sure that all output is flushed before the call returns. It |
| 4894 | matters on cygwin. Fix suggested by Eric Blake <ebb9@byu.net> |
| 4895 | |
| 4896 | redir.c |
| 4897 | - in do_redirection_internal, if the file descriptor being acted upon |
| 4898 | is the same one used by the stdout stream, call fflush(stdout) to |
| 4899 | make sure all output is flushed before changing the underlying fd |
| 4900 | out from underneath stdio. Fix suggested by Eric Blake <ebb9@byu.net> |
| 4901 | |
| 4902 | |
| 4903 | 4/30 |
| 4904 | ---- |
| 4905 | |
| 4906 | builtins/common.c |
| 4907 | - new function, sh_chkwrite(int), fflushes stdout and checks for error; |
| 4908 | printing an error message and returning a new exit status if there's |
| 4909 | an error on stdout. Takes exit status as argument; returns new exit |
| 4910 | status (EXECUTION_FAILURE if write error) |
| 4911 | |
| 4912 | builtins/common.h |
| 4913 | - new extern declaration for sh_chkwrite |
| 4914 | |
| 4915 | builtins/{alias,cd,complete,echo,fc,history,pushd,shopt,times,trap,type,ulimit,umask}.def |
| 4916 | - change to use sh_chkwrite to report write errors |
| 4917 | |
| 4918 | builtins/fc.def |
| 4919 | - if an error occurs while writing commands from the history to a file |
| 4920 | to be executed, report a write error and return failure without |
| 4921 | attempting to execute any commands |
| 4922 | |
| 4923 | 5/1 |
| 4924 | --- |
| 4925 | builtins/{bind,declare,set,setattr}.def |
| 4926 | - change to use sh_chkwrite to report write errors |
| 4927 | |
| 4928 | 5/2 |
| 4929 | --- |
| 4930 | lib/readline/input.c |
| 4931 | - fix off-by-one errors in _rl_get_char (pop_index) and rl_stuff_char |
| 4932 | (push_index) that caused the 511th character in the buffer to be |
| 4933 | discarded. Fixes bug reported by Tom Bjorkholm <tom.bjorkholm@ericsson.com> |
| 4934 | |
| 4935 | 5/8 |
| 4936 | --- |
| 4937 | subst.c |
| 4938 | - fix parameter_brace_remove_pattern to pass getpattern() newly-allocated |
| 4939 | memory. If word expansions (particularly brace expansions) are |
| 4940 | required, the expansion code will free the string passed to |
| 4941 | expand_word_internal, and we don't want to free unallocated memory |
| 4942 | (patstr++) or have duplicate frees (patstr). Fixes bug reported on |
| 4943 | Red Hat bugzilla |
| 4944 | |
| 4945 | 5/9 |
| 4946 | --- |
| 4947 | lib/readline/signals.c |
| 4948 | - fix bug in rl_set_signals that caught SIGINT twice and didn't catch |
| 4949 | SIGTERM. Bug reported by Ed Kwan <ed.kwan@onstor.com> |
| 4950 | |
| 4951 | 5/18 |
| 4952 | ---- |
| 4953 | jobs.c |
| 4954 | - change compact_jobs_list to return 1 if js.j_lastj == 0 and there is |
| 4955 | a job in jobs[0]; compact_jobs_list should never return an index |
| 4956 | already occupied |
| 4957 | - change reset_job_indices to avoid infinite looping when js.j_firstj |
| 4958 | == 0 or js.j_firstj == js.j_jobslots upon function entry. Fixes |
| 4959 | bug reported by osicka@post.cz |
| 4960 | |
| 4961 | 5/20 |
| 4962 | ---- |
| 4963 | |
| 4964 | execute_cmd.c |
| 4965 | - new variable, executing_builtin, keeps track of number of "levels" |
| 4966 | of builtins being executed; incremented by execute_builtin; saved |
| 4967 | and restored by execute_simple_command |
| 4968 | |
| 4969 | subst.c |
| 4970 | - new variable, assigning_in_environment, set and unset around calls |
| 4971 | to assign_in_env by the expansion code |
| 4972 | |
| 4973 | variables.c |
| 4974 | - use executing_builtin and assigning_in_environment to decide whether |
| 4975 | or not to look into temporary_env when calling find_variable_internal. |
| 4976 | Fixes problem reported by Kevin Quinn <kevquinn@gentoo.org> |
| 4977 | |
| 4978 | 5/22 |
| 4979 | ---- |
| 4980 | redir.c |
| 4981 | - change add_undo_redirect to differentiate between file descriptors |
| 4982 | greater than SHELL_FD_BASE (currently 10) used internally to save |
| 4983 | others and then being the targets of user redirection and fds that |
| 4984 | are just the target of user redirections. The former need to have |
| 4985 | an `exec undo' redirect added to undo it in case exec throws away |
| 4986 | redirections; the latter does not. We use the close-on-exec flag |
| 4987 | for this: if it's set, we assume that the file descriptor is being |
| 4988 | used internally to save another. Fixes problem reported by Ian |
| 4989 | Jackson <ian@davenant.greenend.org.uk> |
| 4990 | |
| 4991 | shell.c |
| 4992 | - new function, init_interactive_script(), does interactive initialization |
| 4993 | for a script run with `bash -i script' -- does everything the same |
| 4994 | as init_interactive except set `interactive == 1', which causes the |
| 4995 | shell to read from the standard input, after calling |
| 4996 | init_noninteractive |
| 4997 | - call init_interactive_script if a script is run as `bash -i script'. |
| 4998 | Fixes problem reported by Joseph Michaud <jmichaud@sgi.com> |
| 4999 | |
| 5000 | 5/24 |
| 5001 | ---- |
| 5002 | builtins/printf.def |
| 5003 | - change vbadd to only call FASTCOPY if the passed buffer length is |
| 5004 | > 1 |
| 5005 | - if the `-v' option is supplied and `vbuf' is already non-null from a |
| 5006 | previous `printf -v var' call, set vbuf[0]=0 explicitly instead of |
| 5007 | relying on vbadd to do it -- vbadd may not be called. |
| 5008 | - fix PRETURN macro to set vbuf[0] == 0 if vbuf is not freed. These |
| 5009 | should fix problem reported by Elmar Stellnberger <estellnb@yahoo.de> |
| 5010 | |
| 5011 | lib/readline/display.c |
| 5012 | - fix update_line to deal with the case where col_lendiff > 0 (meaning |
| 5013 | the new string takes up more screen real estate than the old) but |
| 5014 | lendiff < 0 (meaning that it takes fewer bytes to do so). This can |
| 5015 | happen when a multibyte prompt string is replaced with a longer one |
| 5016 | containing only single-byte characters (e.g., when doing a reverse |
| 5017 | i-search). Fixes gentoo bug reported by Peter Volkov |
| 5018 | <torre_cremata@mail.ru> |
| 5019 | |
| 5020 | builtins/read.def |
| 5021 | - make sure we only print $PS2 if the standard input is a terminal |
| 5022 | - new function, read_mbchar, to read a multibyte character so we |
| 5023 | can make sure we read entire multibyte chars when `read -n' is |
| 5024 | used, rather than bytes. Only called when -n is supplied. |
| 5025 | Fixes problem reported by Stanislav Brabec <sbrabec@suse.cz> |
| 5026 | |
| 5027 | 5/25 |
| 5028 | ---- |
| 5029 | externs.h |
| 5030 | - new #defines for third argument to named_function_string: |
| 5031 | FUNC_MULTILINE (don't suppress newlines) and FUNC_EXTERNAL (convert |
| 5032 | to external display form) |
| 5033 | |
| 5034 | subst.h |
| 5035 | - new extern declaration for remove_quoted_escapes |
| 5036 | |
| 5037 | subst.c |
| 5038 | - remove_quoted_escapes is now global |
| 5039 | |
| 5040 | print_cmd.c |
| 5041 | - in named_function_string, if FUNC_EXTERNAL is in the flags argument, |
| 5042 | call remove_quoted_escapes to convert from internal to external form. |
| 5043 | Fixes bug reported by Bo Andresen <bo.andresen@zlin.dk> |
| 5044 | |
| 5045 | variables.c,builtins/{declare,setattr,type}.def |
| 5046 | - use FUNC_MULTILINE in calls to named_function_string as appropriate |
| 5047 | - add FUNC_EXTERNAL to calls to named_function_string as appropriate |
| 5048 | |
| 5049 | 5/27 |
| 5050 | ---- |
| 5051 | {make_cmd,variables}.c |
| 5052 | - changes to enable the shell to compile when debugger support is |
| 5053 | configured out (function_def hash table and access functions). Fixes |
| 5054 | bug reported by Horst Wente <horst.wente@acm.org> |
| 5055 | |
| 5056 | builtins/help.def |
| 5057 | - fix bug in `help' two-column printing to avoid referencing |
| 5058 | shell_builtins[num_shell_builtins] |
| 5059 | |
| 5060 | error.c |
| 5061 | - in get_name_for_error, use dollar_vars[0] if the name returned from |
| 5062 | looking in $BASH_SOURCE[0] is the empty string as well as if it's |
| 5063 | null |
| 5064 | |
| 5065 | 5/31 |
| 5066 | ---- |
| 5067 | arrayfunc.c |
| 5068 | - change array_value_internal to set *RTYPE to 1 if the reference is |
| 5069 | array[*] and 2 if the reference is array[@] |
| 5070 | |
| 5071 | subst.c |
| 5072 | - in parameter_brace_expand_word, set the flags returned by the word |
| 5073 | desc to include W_HASQUOTEDNULL if array_value returns QUOTED_NULL |
| 5074 | for an array reference like x[*] and the word is quoted. Fixes bug |
| 5075 | reported by Christophe Martin <schplurtz@free.fr> |
| 5076 | |
| 5077 | 6/1 |
| 5078 | --- |
| 5079 | jobs.c |
| 5080 | - several changes to preserve errno if tcgetpgrp/tcgetattr/tcsetattr |
| 5081 | fail, for subsequent error messages |
| 5082 | - change initialize_job_control to turn off job control if the terminal |
| 5083 | pgrp == -1 or is not equal to shell_pgrp (with an error message) |
| 5084 | - in initialize_job_control, if the shell has been forced interactive |
| 5085 | with -i, make sure stderr is hooked to a tty before using it as |
| 5086 | the controlling terminal. If it's not, try to open /dev/tty and |
| 5087 | assign it to shell_tty. Fixes problems reported by Derek Fawcus |
| 5088 | <dfawcus@cisco.com> |
| 5089 | |
| 5090 | 6/13 |
| 5091 | ---- |
| 5092 | support/shobj-conf |
| 5093 | - changes to support shared object and shared library creation on AIX |
| 5094 | 5.x and later versions. From Niklas Edmundsson <nikke@acc.umu.se> |
| 5095 | |
| 5096 | 6/17 |
| 5097 | ---- |
| 5098 | builtins/mkbuiltins.c |
| 5099 | - new array of builtins, posix_builtins, containing builtins listed |
| 5100 | as special to the command search order by POSIX |
| 5101 | - add POSIX_BUILTIN to the builtin flags if the builtin name is one |
| 5102 | that's special to the posix command search order |
| 5103 | |
| 5104 | builtins.h |
| 5105 | - new define, POSIX_BUILTIN, means that a builtin is special to the |
| 5106 | posix command search order |
| 5107 | |
| 5108 | 6/22 |
| 5109 | ---- |
| 5110 | lib/readline/display.c |
| 5111 | - new macro, WRAP_OFFSET, intended to replace W_OFFSET. Takes prompt |
| 5112 | strings longer than one physical line with invisible characters on |
| 5113 | the second line into account when calculating the number of |
| 5114 | invisible characters on the current screen line |
| 5115 | - use WRAP_OFFSET where appropriate (update_line, _rl_move_cursor_relative) |
| 5116 | - change update_line to deal with adjusting _rl_last_c_pos in a |
| 5117 | multibyte environment when the prompt has invisible chars on the |
| 5118 | second line and redisplay has output the invisible characters |
| 5119 | - change _rl_move_cursor_relative to adjust _rl_last_c_pos in a |
| 5120 | multibyte environment when the prompt has invisible chars on the |
| 5121 | second line and the redisplay draws the invisible character. Fixes |
| 5122 | redisplay bug reported by Andreas Schwab <schwab@suse.de> |
| 5123 | |
| 5124 | |
| 5125 | 7/11 |
| 5126 | ---- |
| 5127 | |
| 5128 | lib/readline/rltty.c |
| 5129 | - enable flush-output code for systems other than AIX 4.1. Problem |
| 5130 | reported by Jan Kratochvil <jan.kratochvil@redhat.com> |
| 5131 | |
| 5132 | 7/12 |
| 5133 | ---- |
| 5134 | lib/readline/display.c |
| 5135 | - set prompt_invis_chars_first_line from the portion of the prompt |
| 5136 | following the final newline, instead of from the prefix. Fixes |
| 5137 | bug reported on the Ubuntu bug list by dAniel hAhler |
| 5138 | <ubuntu@thequod.de> |
| 5139 | |
| 5140 | 7/13 |
| 5141 | ---- |
| 5142 | variables.c |
| 5143 | - use native __QNX__ and __QNXNTO__ cpp defines instead of qnx and |
| 5144 | qnx6, respectively. Patch from Sean Boudreau <seanb@qnx.com> |
| 5145 | |
| 5146 | lib/sh/getcwd.c |
| 5147 | - #undef HAVE_LSTAT on qnx, so it uses stat instead. Patch from |
| 5148 | Sean Boudreau <seanb@qnx.com> |
| 5149 | |
| 5150 | 7/21 |
| 5151 | ---- |
| 5152 | builtins/common.c |
| 5153 | - change sh_invalidnum to be a little smarter about octal and hex |
| 5154 | numbers and change the message appropriately. Bug originally |
| 5155 | reported on coreutils list by Jürgen Niinre <Jyrgen.Niinre@emt.ee> |
| 5156 | |
| 5157 | 7/26 |
| 5158 | ---- |
| 5159 | test.c |
| 5160 | - make sure the string passed to test_unop has only a single character |
| 5161 | following the `-'. Fixes bug reported by Michael A. Smith |
| 5162 | <michael@smith-li.com> |
| 5163 | |
| 5164 | parse.y |
| 5165 | - better input validation: make sure a word looks like a conditional |
| 5166 | unary operator (-X) before calling test_unop |
| 5167 | |
| 5168 | 7/28 |
| 5169 | ---- |
| 5170 | trap.c |
| 5171 | - in trap_handler, if it's called directly from the signal handler |
| 5172 | (e.g., SIGINT sighandler, set by set_sigint_handler), but the |
| 5173 | trap disposition has been reset to the default between the |
| 5174 | assignment and receipt of the signal, check that the signal is |
| 5175 | trapped and issue a warning if the shell was compiled with |
| 5176 | debugging enabled. Fixes bug reported by Fergus Henderson |
| 5177 | <fergus@google.com> |
| 5178 | |
| 5179 | 8/1 |
| 5180 | --- |
| 5181 | lib/readline/{util,histexpand}.c |
| 5182 | - fixes for small memory leaks from Michael Snyder <msnyder@sonic.net> |
| 5183 | |
| 5184 | 8/18 |
| 5185 | ---- |
| 5186 | Makefile.in |
| 5187 | - add dependency on builtins/builtext.h to nojobs.o list. Fixes |
| 5188 | `make -j 5' issue reported by Chris MacGregor <chris@bouncingdog.com> |
| 5189 | |
| 5190 | examples/loadables/Makefile.in |
| 5191 | - add @LDFLAGS@ to SHOBJ_LDFLAGS assignment -- experimental. Suggested |
| 5192 | by Mike Frysinger <vapier@gentoo.org> |
| 5193 | |
| 5194 | examples/loadables/{basename,cut,dirname,finfo,head,ln,logname,mkdir,pathchk,print,printenv,push,realpath,rmdir,sleep,tee,truefalse,tty,uname,unlink,whoami}.c |
| 5195 | - fix up some includes. Fix from Mike Frysinger <vapier@gentoo.org> |
| 5196 | |
| 5197 | 8/21 |
| 5198 | ---- |
| 5199 | histexpand.c |
| 5200 | - fix another memory leak in history_find_word. Bug report originally |
| 5201 | from Michael Snyder <msnyder@sonic.net>; test case suggested by Jim |
| 5202 | Blandy <jimb@codesourcery.com> |
| 5203 | |
| 5204 | 8/26 |
| 5205 | ---- |
| 5206 | subst.c |
| 5207 | - change to do_assignment_internal to make an assignment to a variable |
| 5208 | with the `noassign' internal attribute not a variable assignment |
| 5209 | error. |
| 5210 | - fix do_assignment_internal so assignment to a `noassign' variable |
| 5211 | does not cause it to suddenly become visible if it's currently |
| 5212 | invisible |
| 5213 | |
| 5214 | 9/3 |
| 5215 | --- |
| 5216 | stringlib.c |
| 5217 | - change strsub to check whether or not temp is non-null before |
| 5218 | trying to null-terminate it. Also make sure temp is allocated |
| 5219 | even if the pattern and replacement strings are empty, and set |
| 5220 | to a copy of string (like ${foo//}) |
| 5221 | Bug report from Timo Lindfors <timo.lindfors@iki.fi> |
| 5222 | |
| 5223 | 9/10 |
| 5224 | ---- |
| 5225 | {config.h,Makefile,configure}.in,aclocal.m4 |
| 5226 | - new tests for fpurge and __fpurge |
| 5227 | |
| 5228 | lib/sh/fpurge.c, externs.h |
| 5229 | - new file, fpurge(3) implementation with external decl in externs.h |
| 5230 | |
| 5231 | builtins/common.c |
| 5232 | - add call to fpurge(stdout) to sh_chkwrite |
| 5233 | |
| 5234 | {redir,execute_cmd}.c |
| 5235 | - add call to fpurge(stdout) after fflush(stdout) before changing |
| 5236 | stdout file descriptor and after a builtin or function executes |
| 5237 | |
| 5238 | 9/12 |
| 5239 | ---- |
| 5240 | expr.c |
| 5241 | - make sure noeval is set to 0 when a longjmp occurs, since it will |
| 5242 | not be reset otherwise, and it can be set to 1 while processing |
| 5243 | a {pre,post}-increment or {pre,post}-decrement token |
| 5244 | - set noeval to 0 at the beginning of evalexp, since it's never |
| 5245 | called recursively |
| 5246 | |
| 5247 | 9/14 |
| 5248 | ---- |
| 5249 | config-top.h |
| 5250 | - new builder-modifiable define: DONT_REPORT_BROKEN_PIPE_WRITE_ERRORS |
| 5251 | Turning it on will cause errors from EPIPE to not be reported by |
| 5252 | the normal shell write error message mechanism |
| 5253 | |
| 5254 | builtins/common.c |
| 5255 | - if DONT_REPORT_BROKEN_PIPE_WRITE_ERRORS is defined, don't print an |
| 5256 | error message from sh_wrerror if errno == EPIPE. Suggestion from |
| 5257 | Petr Sumbera <petr.sumbera@sun.com> |
| 5258 | |
| 5259 | 9/19 |
| 5260 | ---- |
| 5261 | {jobs,nojobs}.c,jobs.h |
| 5262 | - add code to retry fork() after EAGAIN, with a progressively longer |
| 5263 | sleep between attempts, up to FORKSLEEP_MAX (16) seconds. Suggested |
| 5264 | by Martin Koeppe <mkoeppe@gmx.de> |
| 5265 | |
| 5266 | 9/21 |
| 5267 | ---- |
| 5268 | version.c |
| 5269 | - change copyright year to 2007 |
| 5270 | |
| 5271 | 9/25 |
| 5272 | ---- |
| 5273 | pathexp.c |
| 5274 | - change quote_string_for_globbing to add a backslash in front of a |
| 5275 | backslash appearing in the pathname string, since the globbing |
| 5276 | code will interpret backslashes as quoting characters internally. |
| 5277 | Bug reported by <herbert@gondor.apana.org.au> on the debian list |
| 5278 | (443685) |
| 5279 | |
| 5280 | 10/8 |
| 5281 | ---- |
| 5282 | lib/readline/display.c |
| 5283 | - in update_line, make sure _rl_last_c_pos is > 0 before setting |
| 5284 | cpos_adjusted (or we actually moved the cursor to column 0 in |
| 5285 | _rl_move_cursor_relative). Fixes redisplay bug with prompt with |
| 5286 | only invisible characters reported by dAniel hAhler |
| 5287 | <ubuntu@thequod.de> |
| 5288 | |
| 5289 | 10/10 |
| 5290 | ----- |
| 5291 | lib/readline/display.c |
| 5292 | - in rl_redisplay, when calculating the new physical cursor position |
| 5293 | in a multibyte locale (`tx'), do not call rl_backspace if tx ends |
| 5294 | up < 0. Rest of fix for bug reported by dAniel hAhler |
| 5295 | <ubuntu@thequod.de> |
| 5296 | |
| 5297 | 10/12 |
| 5298 | ----- |
| 5299 | lib/sh/getcwd.c |
| 5300 | - fix memory overwrite problem that's possible if buf is NULL and |
| 5301 | passed size is greater than the pathname length. Reported by |
| 5302 | Ian Campbell <ian.campbell@xensource.com> |
| 5303 | |
| 5304 | builtins/ulimit.def |
| 5305 | - change the multiplier for the -c and -f options (`blocks') to 512, |
| 5306 | the traditional value (and the one POSIX specifies). Bug reported |
| 5307 | by Pete Graner <pgraner@redhat.com> |
| 5308 | |
| 5309 | braces.c |
| 5310 | - pass process substitution through unchanged the same as command |
| 5311 | substitution. Prompted by suggestion from Stephane Chazelas |
| 5312 | <stephane_chazelas@yahoo.fr> |
| 5313 | |
| 5314 | lib/readline/input.c |
| 5315 | - in rl_unget_char, fix off-by-one error when resetting pop_index if |
| 5316 | it's < 0. Bug reported by Uwe Doering <gemini@geminix.org> |
| 5317 | |
| 5318 | builtins/type.def |
| 5319 | - change exit status of `type' to not successful if any of the |
| 5320 | requested commands are not found. Reported by Stephane Chazleas |
| 5321 | <stephane_chazelas@yahoo.fr> |
| 5322 | |
| 5323 | pcomplete.c |
| 5324 | - change command_line_to_word_list to use rl_completer_word_break_characters |
| 5325 | instead of the shell metacharacters to split words, so programmable |
| 5326 | completion does the same thing readline does internally. Reported |
| 5327 | by Vasily Tarasov <vtaras@sw.ru> |
| 5328 | |
| 5329 | 10/16 |
| 5330 | ----- |
| 5331 | bashline.c |
| 5332 | - When completing a command name beginning with a tilde and containing |
| 5333 | escaped specical characters, dequote the filename before prefixing |
| 5334 | it to the matches, so the escapes are not quoted again. Reported |
| 5335 | by neil@s-z.org |
| 5336 | |
| 5337 | 10/17 |
| 5338 | ----- |
| 5339 | expr.c |
| 5340 | - in readtok(), don't reset lasttp if we've consumed the whitespace |
| 5341 | at the end of the expression string. Fixes error message problem |
| 5342 | reported by <anmaster@tele2.se> |
| 5343 | |
| 5344 | 11/1 |
| 5345 | ---- |
| 5346 | builtins/printf.def |
| 5347 | - change asciicode() to return intmax_t; add multibyte character |
| 5348 | support instead of assuming ASCII (depending on behavior of system |
| 5349 | multibyte support functions). Fixes bug reported by Rich |
| 5350 | Felker <dalias@aerifal.cx> |
| 5351 | |
| 5352 | 11/5 |
| 5353 | ---- |
| 5354 | execute_cmd.c |
| 5355 | - if redirections attached to a compound command fail, make sure to |
| 5356 | set last_command_exit_value when returning EXECUTION_FAILURE. |
| 5357 | Fixes bug reported separately by Andreas Schwab <schwab@suse.de> |
| 5358 | and Paul Eggert <eggert@cs.ucla.edu> |
| 5359 | |
| 5360 | 11/9 |
| 5361 | ---- |
| 5362 | builtins/read.def |
| 5363 | - make sure the return value from get_word_from_string is freed if |
| 5364 | non-null. Fixes memory leak bug reported by Lars Ellenberg |
| 5365 | <lars.ellenberg@linbit.com> |
| 5366 | |
| 5367 | 11/10 |
| 5368 | ----- |
| 5369 | variables.c |
| 5370 | - use getpid() as value of seeded_subshell to avoid problems with |
| 5371 | random number generator not getting re-seeded correctly when |
| 5372 | subshells are created. Fix from Tomas Janousek <tjanouse@redhat.com> |
| 5373 | |
| 5374 | lib/readline/display.c |
| 5375 | - in update_line(), when outputting characters at the end of the line, |
| 5376 | e.g., when displaying the prompt string, adjust _rl_last_c_pos by |
| 5377 | wrap_offset if the text we're drawing begins before the last |
| 5378 | invisible character in the line. Similar to fix from 5/24. Fixes |
| 5379 | bug reported by Miroslav Lichvar <mlichvar@redhat.com> |
| 5380 | |
| 5381 | 11/14 |
| 5382 | ----- |
| 5383 | subst.c |
| 5384 | - fix $[ expansion case to deal with extract_arithmetic_subst |
| 5385 | returning NULL (if the `]' is missing) and return the construct |
| 5386 | unchanged in that case. Fixes tab completion bug reported by |
| 5387 | Heikki Hokkanen <hoxu@users.sf.net> (debian bug 451263) |
| 5388 | |
| 5389 | lib/readline/mbutil.c |
| 5390 | - fix _rl_find_next_mbchar_internal to deal with invalid multibyte |
| 5391 | character sequences when finding non-zero-length chars. Fixes |
| 5392 | bug reported by Morita Sho <morita-pub-en-debian@inz.sakura.ne.jp> |
| 5393 | |
| 5394 | 11/15 |
| 5395 | ----- |
| 5396 | variables.c |
| 5397 | - add new function `seedrand' to seed the bash random number |
| 5398 | generator from more random data. Suggestion from Steve Grubb |
| 5399 | <sgrubb@redhat.com> |
| 5400 | - replace the rng in brand() with a slightly better one from FreeBSD |
| 5401 | (filtered through Mac OS X 10.5). Replacement suggested by |
| 5402 | Steve Grubb <sgrubb@redhat.com> |
| 5403 | |
| 5404 | 11/21 |
| 5405 | ----- |
| 5406 | configure.in |
| 5407 | - darwin 9 also requires linking against libreadline.a and |
| 5408 | libhistory.a because of Apple's questionable decision to ship a |
| 5409 | libreadline "replacement" that doesn't provide all functions |
| 5410 | |
| 5411 | doc/{bash.1,bashref.texi} |
| 5412 | - slight change to the text describing the effect of set -e when |
| 5413 | in a || or && list |
| 5414 | |
| 5415 | 12/5 |
| 5416 | ---- |
| 5417 | jobs.c |
| 5418 | - fix raw_job_exit_status to correct mixing of int/WAIT values (need |
| 5419 | to return a WAIT) |
| 5420 | - arrange so that children run as part of command substitutions also |
| 5421 | set the SIGINT handler to wait_sigint_handler, since they effectively |
| 5422 | don't do job control |
| 5423 | - in wait_for, if a child run as part of a command substitution exits |
| 5424 | due to SIGINT, resend the SIGINT to the waiting shell with kill(2). |
| 5425 | This makes sure the exit status propagates |
| 5426 | |
| 5427 | doc/{bash.1,bashref.texi} |
| 5428 | - tighten up the language describing when bash tries to see if its |
| 5429 | stdin is a socket, so it can run the startup files. Suggested by |
| 5430 | Vincent Lefevre <vincent@vinc17.org> |
| 5431 | |
| 5432 | eval.c |
| 5433 | - in the DISCARD case of a longjmp to top_level, make sure |
| 5434 | last_command_exit_value is set to EXECUTION_FAILURE if it's 0, |
| 5435 | but leave existing non-zero values alone |
| 5436 | |
| 5437 | subst.c |
| 5438 | - in command_substitute, don't reset pipeline_pgrp in the child |
| 5439 | process -- this means that second and subsequent children spawned by |
| 5440 | this comsub shell get put into the wrong process group, not the |
| 5441 | shell's. Fix for bug reported by Ingo Molnar <mingo@elte.hu> |
| 5442 | |
| 5443 | 12/6 |
| 5444 | ---- |
| 5445 | support/shobj-conf |
| 5446 | - make sure the cases for darwin8.x (Mac OS X 10.4.x) are extended to |
| 5447 | darwin9.x (Mac OS X 10.5.x). Fixes problem originally reported |
| 5448 | against readline-5.2 by schneecrash@gmail.com |
| 5449 | |
| 5450 | 12/8 |
| 5451 | ---- |
| 5452 | subst.c |
| 5453 | - make sure to add the results of (successful) tilde expansion as a |
| 5454 | quoted string, to inhibit pathname expansion and word splitting. |
| 5455 | From recent Austin Group interpretation. |
| 5456 | |
| 5457 | include/shtty.h, lib/sh/shtty.c |
| 5458 | - add ttfd_onechar, ttfd_noecho, ttfd_eightbit, ttfd_nocanon, and |
| 5459 | ttfd_cbreak to set tty attributes associated with a particular |
| 5460 | file descriptor (which is presumed to point to a terminal). Support |
| 5461 | for fix for bug reported by b_bashbug@thebellsplace.com |
| 5462 | |
| 5463 | lib/readline/display.c |
| 5464 | - make sure we only use rl_invis_chars_first_line when the number of |
| 5465 | physical characters exceeds the screen width, since that's the |
| 5466 | only time expand_prompt sets it to a valid value |
| 5467 | |
| 5468 | 12/12 |
| 5469 | ----- |
| 5470 | builtins/set.def |
| 5471 | - change set_minus_o_option to return EX_USAGE if an invalid option |
| 5472 | name is supplied. All callers can handle it. |
| 5473 | - change set_builtin to return what set_minus_o_option returns if it's |
| 5474 | not EXECUTION_SUCCESS. This allows EX_USAGE errors to abort a |
| 5475 | shell running in posix mode |
| 5476 | |
| 5477 | 12/14 |
| 5478 | ----- |
| 5479 | builtins/read.def |
| 5480 | - generalize the calls to the tty attribute functions to maintain a |
| 5481 | local copy of the terminal attributes and use the fd supplied as |
| 5482 | the argument to the -u option (default 0). Fix for bug reported |
| 5483 | by b_bashbug@thebellsplace.com |
| 5484 | |
| 5485 | doc/bashref.texi, lib/readline/doc/{history,rlman,rluser,rluserman}.texi |
| 5486 | - Slight changes to conform to the latest FSF documentation standards. |
| 5487 | Patch from Karl Berry <karl@freefriends.org> |
| 5488 | |
| 5489 | 12/20 |
| 5490 | ----- |
| 5491 | execute_cmd.c |
| 5492 | - after calling clear_unwind_protect_list, make sure we reset |
| 5493 | parse_and_execute_level to 0, since there's nothing left to |
| 5494 | restore it if top_level_cleanup tests it. Fixes bug reported |
| 5495 | by Len Lattanzi <llattanzi@apple.com> |
| 5496 | |
| 5497 | 12/31 |
| 5498 | ----- |
| 5499 | lib/sh/getcwd.c |
| 5500 | - new function, _path_checkino, checks whether the inode corresponding |
| 5501 | to the path constructed from the first two arguments is the same as |
| 5502 | the inode number passed as the third argument |
| 5503 | - if BROKEN_DIRENT_D_INO is defined, meaning the d_ino/d_fileno |
| 5504 | member of struct dirent doesn't contain valid values, use |
| 5505 | _path_checkino instead of directly comparing against d_fileno. |
| 5506 | Fixes Interix problem reported by Michael Haubenwallner |
| 5507 | <haubi@gentoo.org> |
| 5508 | |
| 5509 | 1/7/2008 |
| 5510 | -------- |
| 5511 | array.c |
| 5512 | - fix array_subrange to separate elements in returned string with |
| 5513 | first char of $IFS if QUOTED is non-zero, since this indicates |
| 5514 | the caller used ${array[@]:foo}. Fixes bug reported by Lea |
| 5515 | Wiemann <lewiemann@gmail.com> |
| 5516 | |
| 5517 | 1/8 |
| 5518 | --- |
| 5519 | subst.c |
| 5520 | - new function returning a string containing the first character of |
| 5521 | $IFS: char *ifs_firstchar(int *) |
| 5522 | |
| 5523 | subst.h |
| 5524 | - extern declaration for ifs_firstchar() |
| 5525 | |
| 5526 | array.c |
| 5527 | - call ifs_firstchar() to get first character of $IFS when needed |
| 5528 | (array_subrange() and array_patsub()) |
| 5529 | |
| 5530 | 1/11 |
| 5531 | ---- |
| 5532 | lib/readline/display.c |
| 5533 | - use sentinel variable set at end of init_line_structures to decide |
| 5534 | whether to call it from rl_redisplay, since early SIGWINCH on |
| 5535 | Mac OS X that hits during this function can cause _rl_wrapped_line |
| 5536 | to be referenced before initialization. Fix for bug reported by |
| 5537 | Len Lattanzi <llattanzi@apple.com> |
| 5538 | |
| 5539 | subst.[ch] |
| 5540 | - skip_to_delim is now compiled into the shell all the time, not just |
| 5541 | when readline is linked in |
| 5542 | |
| 5543 | subst.c |
| 5544 | - use skip_to_delim to find the `/' denoting the end of a pattern |
| 5545 | in pattern substitution, since it knows more shell syntax than |
| 5546 | quoted_strchr and understands multibyte characters. Fixes bug |
| 5547 | reported by Dmitry V Golovashkin <Dmitry.Golovashkin@sas.com> |
| 5548 | |
| 5549 | 1/15 |
| 5550 | ---- |
| 5551 | subst.c |
| 5552 | - add `flags' argument to skip_to_delim telling it whether or not to |
| 5553 | set no_longjmp_on_fatal_error; set this flag when calling from the |
| 5554 | readline completion code |
| 5555 | |
| 5556 | subst.h |
| 5557 | - update extern declaration for skip_to_delim |
| 5558 | |
| 5559 | 1/17 |
| 5560 | ---- |
| 5561 | subst.c |
| 5562 | - expand_prompt_string takes a third argument: the initial flags for |
| 5563 | the WORD |
| 5564 | |
| 5565 | subst.h |
| 5566 | - change extern declaration for expand_prompt_string to add third arg |
| 5567 | |
| 5568 | bashline.c |
| 5569 | - pass W_NOCOMSUB as third argment to expand_prompt_string when |
| 5570 | calling from bash_directory_completion_hook, since we don't want |
| 5571 | to do command substitution from the completion code |
| 5572 | |
| 5573 | parse.y |
| 5574 | - change call to expand_prompt_string |
| 5575 | |
| 5576 | 1/18 |
| 5577 | ---- |
| 5578 | doc/Makefile.in |
| 5579 | - added an `install_builtins' rule to install the builtins.1 man page, |
| 5580 | preprocessing it with sed to force `.so man1/bash.1', which some |
| 5581 | versions of man require. Suggestion from Peter Breitenlohner |
| 5582 | <peb@mppmu.mpg.de> |
| 5583 | - new target `install_everything' that will install normal documentation |
| 5584 | and builtins man page |
| 5585 | - changed uninstall target to remove bash_builtins page from man |
| 5586 | directory |
| 5587 | |
| 5588 | lib/readline/vi_mode.c |
| 5589 | - new function, rl_vi_insert_mode, which calls rl_vi_start_inserting |
| 5590 | to make sure the value of `last command to repeat' is set correctly. |
| 5591 | Fix from Thomas Janousek <tjanouse@redhat.com> |
| 5592 | - add support for redoing inserts made with the `I' command. Fix |
| 5593 | from Thomas Janousek <tjanouse@redhat.com> |
| 5594 | - add support for redoing inserts made with the `A' command |
| 5595 | |
| 5596 | lib/readline/readline.h |
| 5597 | - new extern declaration for rl_vi_insert_mode |
| 5598 | |
| 5599 | lib/readline/{misc,readline,vi_mode,vi_keymap}.c |
| 5600 | - change calls to rl_vi_insertion_mode to rl_vi_insert_mode |
| 5601 | |
| 5602 | 1/19 |
| 5603 | ---- |
| 5604 | builtins/read.def |
| 5605 | - change timeout behavior when not reading from a tty device to save |
| 5606 | any partial input in the variable list, but still return failure. |
| 5607 | This also causes variables specified as arguments to read to be |
| 5608 | set to null when there is no input available. Fix inspired by |
| 5609 | Brian Craft <bcboy@thecraftstudio.com> |
| 5610 | |
| 5611 | 1/21 |
| 5612 | ---- |
| 5613 | builtins/fc.def |
| 5614 | - change computation of last_hist to use remember_on_history instead |
| 5615 | of a hard-coded `1'. This keeps fc -l -1 in PROMPT_COMMAND from |
| 5616 | looking too far back |
| 5617 | |
| 5618 | 1/25 |
| 5619 | ---- |
| 5620 | lib/readline/complete.c |
| 5621 | - fix fnwidth to use string[pos] instead of *string when testing the |
| 5622 | current character for a control character or rubout |
| 5623 | |
| 5624 | 2/2 |
| 5625 | --- |
| 5626 | general.c |
| 5627 | - change posix_initialize to turn off source/. searching $PWD when |
| 5628 | the file sourced is not found in $PATH. Fixes bug reported by |
| 5629 | Paolo Bonzini <bonzini@gnu.org> and Eric Blake <ebb9@byu.net> |
| 5630 | |
| 5631 | 2/9 |
| 5632 | --- |
| 5633 | builtins/*.def |
| 5634 | - changes to text and formatting suggested by Jan Schampera |
| 5635 | <jan.schampera@web.de> |
| 5636 | |
| 5637 | 2/16 |
| 5638 | ---- |
| 5639 | bashline.c |
| 5640 | - change command_word_completion_function to use the word completion |
| 5641 | found by readline, which matters only when ignoring case is on |
| 5642 | and the completion found in the file system differs in case from |
| 5643 | the text the user typed (this is what readline does for normal |
| 5644 | filename completion). Fixes issue reported by Jian Wang |
| 5645 | <jwang@a10networks.com.cn>. |
| 5646 | |
| 5647 | 2/18 |
| 5648 | ---- |
| 5649 | builtins/source.def |
| 5650 | - if the filename passed as an argument contains a `/', don't search |
| 5651 | $PATH. Not sure why it wasn't like this before |
| 5652 | |
| 5653 | 2/21 |
| 5654 | ---- |
| 5655 | lib/readline/terminal.c |
| 5656 | - change rl_crlf so that the MINT system on ATARI systems adds a |
| 5657 | carriage return before the \n |
| 5658 | |
| 5659 | 2/22 |
| 5660 | ---- |
| 5661 | doc/{bash.1,bashref.texi} |
| 5662 | - added text to the EXIT STATUS section noting that exit statuses |
| 5663 | fall between 0 and 255, inclusive |
| 5664 | |
| 5665 | support/mkversion.sh |
| 5666 | - output a #define for DEFAULT_COMPAT_LEVEL (${major}${minor}; e.g. 32) |
| 5667 | to version.h |
| 5668 | |
| 5669 | version.c |
| 5670 | - int variable, shell_compatibility_level, set to DEFAULT_COMPAT_LEVEL |
| 5671 | by default |
| 5672 | |
| 5673 | builtins/shopt.def |
| 5674 | - new shopt variable, compat31, sets shell_compatibility_level to 31 |
| 5675 | (or back to default if unset) |
| 5676 | |
| 5677 | execute_cmd.c |
| 5678 | - in execute_cond_node, restore bash-3.1 behavior of quoted rhs of |
| 5679 | regexp matches if shell_compatibility_level == 31 |
| 5680 | |
| 5681 | 2/28 |
| 5682 | ---- |
| 5683 | lib/readline/rltty.c |
| 5684 | - set readline_echoing_p = 1 if tcgetattr fails and sets errno to |
| 5685 | EINVAL, as Linux does when the fd is a pipe. Reported by Mike |
| 5686 | Frysinger <vapier@gentoo.org> |
| 5687 | |
| 5688 | 3/6 |
| 5689 | --- |
| 5690 | {MANIFEST,Makefile.in},lib/sh/{casemod,uconvert,ufuncs}.c |
| 5691 | - new library sources from bash-4.0-devel tree |
| 5692 | |
| 5693 | lib/sh/spell.c |
| 5694 | - moved cdspell() here from builtins/cd.def, renamed dirspell() |
| 5695 | |
| 5696 | externs.h |
| 5697 | - new declarations for extern functions from new library files |
| 5698 | - new extern declaration for lib/sh/spell.c:dirspell() |
| 5699 | |
| 5700 | builtins/cd.def |
| 5701 | - call extern library function dirspell(); remove static cdspell() |
| 5702 | |
| 5703 | builtins/read.def |
| 5704 | - when read times out, make sure input_string is null-terminated before |
| 5705 | assigning any partial input read to the named variables |
| 5706 | |
| 5707 | 3/10 |
| 5708 | ---- |
| 5709 | lib/glob/xmbsrtowcs.c |
| 5710 | - cut the number of memory allocations in xdupmbstowcs by not keeping |
| 5711 | track of the indices if the caller hasn't asked for it |
| 5712 | |
| 5713 | 3/17 |
| 5714 | ---- |
| 5715 | builtins/fc.def |
| 5716 | - make sure the adjustment to i in fc_gethnum uses the same formula |
| 5717 | fc_builtin uses to calculate last_hist |
| 5718 | - make sure that every time fc_gethnum is called, the fc command last |
| 5719 | in the history list has not yet been deleted, since fc_gethnum |
| 5720 | assumes that it has not. Fix from John Haxby <john.haxby@oracle.com> |
| 5721 | |
| 5722 | lib/readline/complete.c |
| 5723 | - new private library function, _rl_reset_completion_state(), used to |
| 5724 | reset any completion state internal to the library when a signal |
| 5725 | is received |
| 5726 | - call _rl_reset_completion_state() before returning from |
| 5727 | rl_complete_internal |
| 5728 | |
| 5729 | lib/readline/rlprivate.h |
| 5730 | - new extern declaration for _rl_reset_completion_state |
| 5731 | |
| 5732 | lib/readline/signals.c |
| 5733 | - call _rl_reset_completion_state from rl_signal_handler on SIGINT. |
| 5734 | This fixes one of the problems identified by Mika Fischer |
| 5735 | <mf+ubuntu@zoopnet.de> |
| 5736 | |
| 5737 | pcomplete.c |
| 5738 | - programmable_completions now saves pointer to the compspec it's |
| 5739 | working with in new global variable CURCS |
| 5740 | - new function, pcomp_set_readline_variables, that sets or unsets |
| 5741 | readline variables based on a passed flags value (COPT_FILENAMES, |
| 5742 | etc.) |
| 5743 | - new function, pcomp_set_compspec_options, to set or unset bits in |
| 5744 | the options word of a passed compspec (default CURCS) |
| 5745 | - only call bash_dequote_filename (via rl_filename_dequoting_function) |
| 5746 | from pcomp_filename_completion_function if the readline state |
| 5747 | word indicates word completion is in progress |
| 5748 | |
| 5749 | pcomplete.h |
| 5750 | - new extern declaration for curcs |
| 5751 | - new extern declaration for pcomp_set_readline_variables |
| 5752 | - new extern declaration for pcomp_set_compspec_options |
| 5753 | |
| 5754 | bashline.c |
| 5755 | - fix bash_dequote_filename to implement shell quoting conventions: |
| 5756 | 1. Inhibit backslash stripping within single quotes |
| 5757 | 2. Inhibit backslash stripping within double quotes only if |
| 5758 | the following character is one of the special ones |
| 5759 | - call pcomp_set_readline_variables from attempt_shell_completion |
| 5760 | instead of doing the equivalent inline |
| 5761 | |
| 5762 | 3/18 |
| 5763 | ---- |
| 5764 | bracecomp.c |
| 5765 | - make sure we sort array of matches in byte order (using strcmp). so |
| 5766 | the brace calculations work correctly even when the locale orders |
| 5767 | characters like aAbBcC...zZ. Fixes bug reported by Torsten Nahm |
| 5768 | <torstennahm@torstennahm.de> |
| 5769 | |
| 5770 | 3/20 |
| 5771 | ---- |
| 5772 | lib/readline/{rltty,signals}.c |
| 5773 | - move block_sigint and release_sigint from rltty.c to signals.c; add |
| 5774 | _rl_ prefix to make them public to the library; change callers. |
| 5775 | From Jan Kratochvil <jan.kratochvil@redhat.com> |
| 5776 | |
| 5777 | lib/readline/rlprivate.h |
| 5778 | - new extern declarations for _rl_block_sigint and _rl_release_sigint |
| 5779 | |
| 5780 | lib/readline/display.c |
| 5781 | - add calls to _rl_block_sigint and _rl_release_sigint to rl_redisplay, |
| 5782 | since it maniupluates global data structures. Fix from Jan |
| 5783 | Kratochvil <jan.kratochvil@redhat.com> |
| 5784 | |
| 5785 | builtins/printf.def |
| 5786 | - change calls to asprintf and manually adding to vbuf to use calls |
| 5787 | to vsnprintf against vbuf directly -- if the number of characters |
| 5788 | to be written overflows the buffer, realloc the buffer and use |
| 5789 | vsnprintf again. This should reduce the memory used by printf. |
| 5790 | Idea from Yuya Katayama <yuya999@gmail.com> |
| 5791 | |
| 5792 | lib/readline/doc/rltech.texi |
| 5793 | - documented rest of readline's state flags, including RL_STATE_CALLBACK |
| 5794 | - documented rl_save_state and rl_restore_state |
| 5795 | |
| 5796 | 3/27 |
| 5797 | ---- |
| 5798 | lib/readline/{rlprivate.h,{display,readline,rltty,terminal,text}.c} |
| 5799 | - rename readline_echoing_p to _rl_echoing_p for namespace consistency |
| 5800 | |
| 5801 | lib/readline/{rlprivate.h,{callback,readline,util}.c} |
| 5802 | - rename readline_top_level to _rl_top_level for namespace consistency |
| 5803 | |
| 5804 | builtins/ulimit.def |
| 5805 | - new -b (socket buffer size) and -T (number of threads) options |
| 5806 | |
| 5807 | array.c |
| 5808 | - fix bug in calculation of the array element assignment string length: |
| 5809 | use length of `is' instead of `indstr'. Reported as ubuntu bug |
| 5810 | #202885 by John McCabe-Dansted |
| 5811 | |
| 5812 | builtins/setattr.def |
| 5813 | - new function, show_all_var_attributes, displays attributes and |
| 5814 | values for all shell variables (or shell functions) in a reusable |
| 5815 | format |
| 5816 | |
| 5817 | builtins/common.h |
| 5818 | - new extern declaration for show_all_var_attributes |
| 5819 | |
| 5820 | builtins/declare.def |
| 5821 | - change `declare -p' to print out all variable attributes and values, |
| 5822 | and `declare -fp' to print out all function attributes and |
| 5823 | definitions. Inspired by request from John Love-Jensen |
| 5824 | <eljay@adobe.com> |
| 5825 | |
| 5826 | doc/{bash.1,bashref.texi} |
| 5827 | - document new -b and -T options to ulimit |
| 5828 | - tighten up language describing AND and OR lists |
| 5829 | - add description of new behavior of `declare -p' |
| 5830 | |
| 5831 | 3/28 |
| 5832 | ---- |
| 5833 | pcomplete.c |
| 5834 | - rename curcs -> pcomp_curcs |
| 5835 | - new global completion variable, pcomp_curcmd, the current command |
| 5836 | name being completed |
| 5837 | |
| 5838 | builtins/complete.def |
| 5839 | - new builtin, compopt, allows completion options for command names |
| 5840 | supplied as arguments or the current completion being executed to |
| 5841 | be modified. Suggested by Mika Fischer <mf+ubuntu@zoopnet.de> |
| 5842 | |
| 5843 | 3/30 |
| 5844 | ---- |
| 5845 | doc/{bash.1,bashref.texi},lib/readline/doc/rluser.texi |
| 5846 | - document new compopt builtin |
| 5847 | |
| 5848 | 4/5 |
| 5849 | --- |
| 5850 | support/shobj-conf |
| 5851 | - change solaris10 stanza to use -fPIC to fix 64-bit sparc_v9/solaris10 |
| 5852 | compilations. Fix from Fabian Groffen <grobian@gentoo.org> |
| 5853 | |
| 5854 | builtins/read.def |
| 5855 | - added `-i text' option, inserts `text' into line if using readline. |
| 5856 | Suggested by many, used some ideas from Kevin Pulo <kevin@pulo.com.au> |
| 5857 | |
| 5858 | doc/{bash.1,bashref.texi} |
| 5859 | - document new `-i text' option to read builtin |
| 5860 | |
| 5861 | 4/7 |
| 5862 | --- |
| 5863 | lib/readline/bind.c |
| 5864 | - new settable variable, `history-size', sets the max number of |
| 5865 | entries in the history list |
| 5866 | |
| 5867 | doc/bash.1,lib/readline/doc/{rluser.texi,readline.3} |
| 5868 | - document new `history-size' settable readline variable |
| 5869 | |
| 5870 | 4/8 |
| 5871 | --- |
| 5872 | builtins/complete.def |
| 5873 | - change build_actions calling sequence to take a struct with `other' |
| 5874 | (non-action) flag arguments (-p, -r) |
| 5875 | - add support for `-E' option to build_actions and complete builtin -- |
| 5876 | modifies or displays (internal) `_EmptycmD_' completion spec |
| 5877 | |
| 5878 | bashline.c |
| 5879 | - change attempt_shell_completion to try programmable completion on an |
| 5880 | `empty' command line and return the results |
| 5881 | |
| 5882 | doc/bash.1,lib/readline/doc/rluser.texi |
| 5883 | - documented new `-E' option to `complete' |
| 5884 | |
| 5885 | 4/9 |
| 5886 | --- |
| 5887 | bashhist.c |
| 5888 | - new variable, `enable_history_list', used to reflect setting of |
| 5889 | `-o history' option |
| 5890 | - change bash_history_{enable,disable,reinit} to set enable_history_list |
| 5891 | as well as remember_on_history |
| 5892 | |
| 5893 | builtins/set.def |
| 5894 | - use `enable_history_list' instead of `remember_on_history' to keep |
| 5895 | value of `-o history' option |
| 5896 | |
| 5897 | builtins/evalstring.c |
| 5898 | - instead of unwind-protecting remember_on_history, use a function to |
| 5899 | restore it to the value of `enable_history_list' after |
| 5900 | parse_and_execute runs the commands in the string. This allows |
| 5901 | history to be turned off in a startup file, for instance. Problem |
| 5902 | reported by Dan Jacobson <jidanni@jidanni.org> |
| 5903 | |
| 5904 | 4/11 |
| 5905 | ---- |
| 5906 | bashline.c |
| 5907 | - limited support for completing command words with globbing characters |
| 5908 | (only a single match completed on TAB, absolute or relative |
| 5909 | pathnames supported, no $PATH searching, some support for displaying |
| 5910 | possible matches, can be used with menu completion). |
| 5911 | Suggested by Harald Koenig <h.koenig@science-computing.de> |
| 5912 | |
| 5913 | print_cmd.c |
| 5914 | - change redirection printing to output r_err_and_out as `&>file', |
| 5915 | since the man page says that's the preferred form |
| 5916 | |
| 5917 | 4/12 |
| 5918 | ---- |
| 5919 | builtins/*.def |
| 5920 | - change long doc so the first line is a short description |
| 5921 | - add `Exit Status:' section to each longdoc describing exit values |
| 5922 | |
| 5923 | builtins/help.def |
| 5924 | - new `-d' option to print short description of each utility |
| 5925 | - new `-m' option to print description of each builtin in a |
| 5926 | pseudo-manpage format (inspired by ksh93) |
| 5927 | |
| 5928 | doc/{bash.1,bashref.texi} |
| 5929 | - document new `-d' and `-m' options to `help' |
| 5930 | |
| 5931 | builtins/mapfile.def |
| 5932 | - new builtin, `mapfile', imported from bash-4.0-devel branch |
| 5933 | |
| 5934 | tests/{mapfile.{data,right,tests},run-mapfile} |
| 5935 | - tests for `mapfile' builtin |
| 5936 | |
| 5937 | doc/{bash.1,bashref.texi} |
| 5938 | - added description of `mapfile' builtin |
| 5939 | |
| 5940 | MANIFEST,Makefile.in,builtins/Makefile.in |
| 5941 | - added entries for mapfile source files |
| 5942 | |
| 5943 | arrayfunc.[ch] |
| 5944 | - new function, bind_array_element, to support mapfile builtin |
| 5945 | |
| 5946 | 4/20 |
| 5947 | ---- |
| 5948 | expr.c |
| 5949 | - fix operator precendence in expcond(): term after the `:' is |
| 5950 | a conditional-expression, not a logical-OR-expression (using C |
| 5951 | terminology). Bug reported by <archimerged@gmail.com> |
| 5952 | |
| 5953 | 4/22 |
| 5954 | ---- |
| 5955 | bashintl.h |
| 5956 | - new P_ define for using ngettext to decide on plural forms |
| 5957 | (currently unused) |
| 5958 | |
| 5959 | 4/25 |
| 5960 | ---- |
| 5961 | execute_cmd.c |
| 5962 | - in execute_disk_command, if the command is not found, search for |
| 5963 | a shell function named `command_not_found_handle' and call it |
| 5964 | with the words in the command as arguments. Inspired by Debian |
| 5965 | feature. |
| 5966 | |
| 5967 | doc/{bash.1,bashref.texi} |
| 5968 | - document new command_not_found_handle behavior in COMMAND EXECUTION |
| 5969 | section |
| 5970 | |
| 5971 | configure.in |
| 5972 | - change default version to bash-4.0-devel |
| 5973 | |
| 5974 | 4/28 |
| 5975 | ---- |
| 5976 | variables.c |
| 5977 | - change push_func_var and push_exported_var to call |
| 5978 | stupidly_hack_special_variables if the temporary variable is going |
| 5979 | to be disposed. This undoes any internal changes caused by a local |
| 5980 | variable assignment in the environment or in a shell function. Bug |
| 5981 | reported by Morita Sho <morita-pub-en-debian@inz.sakura.ne.jp> in |
| 5982 | http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=478096 |
| 5983 | |
| 5984 | 5/3 |
| 5985 | --- |
| 5986 | builtins/fc.def |
| 5987 | - fixed a problem caused by change of 1/21 to use remember_on_history, |
| 5988 | since it's turned off by parse_and_execute(), but can cause the |
| 5989 | last command in history to be deleted and leave last_hist pointing |
| 5990 | beyond the end of the history list. edit_and_execute_command can |
| 5991 | do this. |
| 5992 | |
| 5993 | bashline.c |
| 5994 | - new define, RL_BOOLEAN_VAR_VALUE, to take a readline boolean variable |
| 5995 | and get its value as 0 or 1 (consider making readline global) |
| 5996 | - put tty back into canonical mode before calling parse_and_execute in |
| 5997 | edit_and_execute_command and then back into raw mode after it |
| 5998 | returns. Fixes problem identified by <koersen@gmail.com>. |
| 5999 | |
| 6000 | 5/4 |
| 6001 | --- |
| 6002 | lib/glob/glob.c |
| 6003 | - code to support `globstar' option: GX_GLOBSTAR and two internal |
| 6004 | flags. Changes to skipname, glob_vector, mbskipname, glob_filename. |
| 6005 | New function finddirs(). |
| 6006 | |
| 6007 | lib/glob/glob.h |
| 6008 | - new defines to support globstar code |
| 6009 | |
| 6010 | builtins/shopt.def |
| 6011 | - new shell option, `globstar', enables special handling of `**' in |
| 6012 | glob patterns -- matches all directories recursively |
| 6013 | |
| 6014 | pathexp.h |
| 6015 | - extern declaration for glob_star |
| 6016 | |
| 6017 | pathexp.c |
| 6018 | - break inline code out of quote_globbing_chars into a separate |
| 6019 | function to decide whether a character is a globbing char: |
| 6020 | glob_char_p |
| 6021 | - change shell_glob_filename to call glob_filename with the |
| 6022 | GX_GLOBSTAR flag if glob_star is set |
| 6023 | |
| 6024 | doc/{bash.1,bashref.texi} |
| 6025 | - document new `globstar' shell option |
| 6026 | |
| 6027 | arrayfunc.c |
| 6028 | - new function, broken out of quote_array_assignment_chars: |
| 6029 | quote_assign; extended from old code to make sure that globbing |
| 6030 | chars and chars in $IFS are quoted when displaying assignment |
| 6031 | statements, especially in compound array assignments |
| 6032 | |
| 6033 | 5/5 |
| 6034 | --- |
| 6035 | bashline.c |
| 6036 | - new variable, dircomplete_spelling, controls spelling correction |
| 6037 | of directory names when doing filename completion |
| 6038 | - change bash_directory_completion_hook to incorporate spelling |
| 6039 | correction if initial canonicalization of directory name fails |
| 6040 | |
| 6041 | builtins/shopt.def |
| 6042 | - new shell option, `dirspell', enables and disables spelling |
| 6043 | correction of directory names during word completion |
| 6044 | |
| 6045 | builtins/read.def |
| 6046 | - support for fractional timeout values (ival.uval); uses uconvert |
| 6047 | and falarm/setitimer |
| 6048 | |
| 6049 | config.h.in |
| 6050 | - new `HAVE_SETITIMER' define |
| 6051 | |
| 6052 | configure.in |
| 6053 | - look for setitimer(2), define HAVE_SETITIMER if found |
| 6054 | |
| 6055 | doc/{bash.1,bashref.texi} |
| 6056 | - document new `dirspell' shopt option |
| 6057 | - document new fractional values to `read -t timeout' |
| 6058 | |
| 6059 | 5/6 |
| 6060 | --- |
| 6061 | assoc.[ch] |
| 6062 | - new files, basic support for associative array implementation |
| 6063 | |
| 6064 | general.h |
| 6065 | - new extern declarations for sh_openpipe, sh_closepipe, trim_pathname |
| 6066 | |
| 6067 | general.c |
| 6068 | - new functions: sh_openpipe to create a pipe and move the file |
| 6069 | descriptors to a high range; sh_closepipe, to close pipe fds and |
| 6070 | clean up, and trim_pathname, to replace portions of a pathname |
| 6071 | with `...' (for prompting) |
| 6072 | |
| 6073 | jobs.c |
| 6074 | - don't set last_asynchronous_pid in child shell (messes up $!, among |
| 6075 | other things) |
| 6076 | |
| 6077 | parse.y,parser.h |
| 6078 | - moved definitions of parser flags to parser.h |
| 6079 | |
| 6080 | array.c |
| 6081 | - imported array_modcase (case-changing operations on arrays) from |
| 6082 | 4.0-devel branch |
| 6083 | |
| 6084 | array.h |
| 6085 | - new extern declaration for array_modcase |
| 6086 | |
| 6087 | lib/readline/complete.c |
| 6088 | - new variable, rl_menu_completion_entry_function, generator for |
| 6089 | rl_menu_complete |
| 6090 | - new menu completion `browsing' implementation, with several |
| 6091 | improvements over the old code. Inspired by Sami |
| 6092 | |
| 6093 | lib/readline/readline.h |
| 6094 | - extern declaration for rl_menu_completion_entry_function |
| 6095 | |
| 6096 | 5/8 |
| 6097 | --- |
| 6098 | lib/readline/complete.c |
| 6099 | - add support for a third argument to fnprint and print_filename, |
| 6100 | which supports replacing a specified portion of the pathnames |
| 6101 | printed when displaying possible completions with a `...' (or |
| 6102 | `___', if the prefix would be confused with a portion of the |
| 6103 | filename) |
| 6104 | - new variable, _rl_completion_prefix_display_length, sets the |
| 6105 | number of characters in a common prefix to be replaced with an |
| 6106 | ellipsis when displaying possible completions |
| 6107 | - add support to _rl_display_match_list to find the length of the |
| 6108 | common prefix of all items being displayed, and passing that |
| 6109 | value to print_filename for possible replacement with an ellipsis |
| 6110 | if that length is longer than _rl_completion_prefix_display_length |
| 6111 | |
| 6112 | lib/readline/bind.c |
| 6113 | - add support for retrieving value of history-size variable to |
| 6114 | _rl_get_string_variable_value |
| 6115 | - new bindable variable, completion-prefix-display-length. When |
| 6116 | displaying possible completions, matches with a common prefix |
| 6117 | longer than this value have the common prefix replaced with an |
| 6118 | ellipsis |
| 6119 | - support for retrieving value of completion-prefix-display-length |
| 6120 | variable to _rl_get_string_variable_value |
| 6121 | - new bindable variable, revert-all-at-newline: if enabled, causes |
| 6122 | all changes in history lines to be undone before readline returns |
| 6123 | after processing a newline |
| 6124 | |
| 6125 | doc/bash.1,lib/readline/doc/{readline.3,rluser.texi} |
| 6126 | - document new `completion-prefix-display-length' variable |
| 6127 | - document new `revert-all-at-newline' variable |
| 6128 | |
| 6129 | execute_cmd.c |
| 6130 | - change execute_builtin to not inherit the `-e' flag into commands |
| 6131 | executed by the `command' or `source/.' builtins if we are supposed |
| 6132 | to be ignoring the return value. This is like `eval'. Fixes bug |
| 6133 | reported by Hiroshi Fujishima <hirobo@tonteki.org> |
| 6134 | |
| 6135 | 5/10 |
| 6136 | ---- |
| 6137 | variables.c |
| 6138 | - when reading the initial environment, don't create variables with |
| 6139 | names that are not valid shell identifiers. Fixes bug reported by |
| 6140 | Stephane Chazleas <stephane_chazelas@yahoo.fr> |
| 6141 | |
| 6142 | 5/13 |
| 6143 | ---- |
| 6144 | subst.c |
| 6145 | - fix string_quote_removal to gracefully handle the case where a |
| 6146 | backslash is the final character in the string (leaves the backslash |
| 6147 | in place). Fixes bug reported by Ian Robertson |
| 6148 | <iroberts@u.washington.edu> |
| 6149 | |
| 6150 | 5/16 |
| 6151 | ---- |
| 6152 | support/checkbashisms |
| 6153 | - Perl script that purports to check for bash-specific features in a |
| 6154 | shell script. Lifted from Debian via ubuntu |
| 6155 | |
| 6156 | 5/20 |
| 6157 | ---- |
| 6158 | lib/readline/display.c |
| 6159 | - in update_line, when deciding whether or not to adjust _rl_last_c_pos |
| 6160 | in a multibyte environment after printing the last line of a multiline |
| 6161 | prompt with invisible characters on the first and last lines, use |
| 6162 | the number of inivisible chars on the first line in the calculation |
| 6163 | deciding whether or not we're past the last invisible character and |
| 6164 | need to adjust the cursor position. Old code used the number of |
| 6165 | invisible chars on the last prompt line. Fixes bug reported by |
| 6166 | stuff@slinkp.com. |
| 6167 | - in update_line, when fixing _rl_last_c_pos after drawing the first |
| 6168 | line of the prompt, use the number of invisible chars on the first |
| 6169 | line as the offset, instead of the total number of invisible chars |
| 6170 | - use prompt_multibyte_characters, the number of multibyte chars in |
| 6171 | the prompt string, to short-circuit some relatively expensive |
| 6172 | multibyte text processing in rl_redisplay |
| 6173 | |
| 6174 | 5/21 |
| 6175 | ---- |
| 6176 | variables.c |
| 6177 | - new function, reinit_special_variables(), a hook for special |
| 6178 | vars that need their hook functions called when they're unset as |
| 6179 | a result of the shell reinitializing itself to run a script |
| 6180 | |
| 6181 | shell.c |
| 6182 | - shell_reinitialize now calls reinit_special_variables |
| 6183 | - shell_reinitialize now calls bashline_reset |
| 6184 | |
| 6185 | variables.h |
| 6186 | - new extern declaration for reinit_special_variables |
| 6187 | |
| 6188 | bashline.c |
| 6189 | - new function, bashline_reset(), called when the shell reinitializes |
| 6190 | in shell_reinitialize. Right now, just resets |
| 6191 | bash_readline_initialized to 0. |
| 6192 | |
| 6193 | bashline.h |
| 6194 | - new extern declaration for bashline_reset() |
| 6195 | |
| 6196 | 5/23 |
| 6197 | ---- |
| 6198 | bashhist.c |
| 6199 | - new function, bash_clear_history, clears the history and resets any |
| 6200 | associated internal bash state |
| 6201 | |
| 6202 | bashhist.h |
| 6203 | - extern declaration for bash_clear_history |
| 6204 | |
| 6205 | builtins/history.def |
| 6206 | - call bash_clear_history instead of clear_history for `history -c'. |
| 6207 | Fixes part of problem reported by Scott McDermott |
| 6208 | <scott.m.mcdermott@gmail.com> |
| 6209 | - decrement history_lines_this_session in delete_histent, called for |
| 6210 | `history -d' |
| 6211 | |
| 6212 | builtins/history.def,bashhist.[ch] |
| 6213 | - move delete_histent() to bashhist.c; rename to bash_delete_histent |
| 6214 | - move delete_last_history() to bashhist.c; rename to |
| 6215 | bash_delete_last_history() |
| 6216 | |
| 6217 | 5/25 |
| 6218 | ---- |
| 6219 | braces.c |
| 6220 | - add another parameter to mkseq(), the number of digits to put into |
| 6221 | each member of a numeric sequence (width), changes to determine |
| 6222 | any zero-padding go into expand_seqterm |
| 6223 | - changes to expand_seqterm to allow user-specified increments |
| 6224 | |
| 6225 | bashline.[ch],shell.c,sig.c |
| 6226 | - switched names of bashline_reinitialize and bashline_reset to better |
| 6227 | reflect their functions |
| 6228 | - when searching $PATH for directories to use for command completion, |
| 6229 | make sure to free `current_path' before going out of scope |
| 6230 | - new bindable function `dabbrev-expand', which is more or less |
| 6231 | menu completion using dynamic history completion as the generator |
| 6232 | - changes to bash_execute_unix_command to set variables for the |
| 6233 | executed command like programmable completion: READLINE_LINE |
| 6234 | (rl_line_buffer) and READLINE_POINT (rl_point) |
| 6235 | - change to bash_execute_unix_command to allow the executed command |
| 6236 | to change the readline line buffer by modifying the value of |
| 6237 | READLINE_LINE and to change rl_point by modifying the value of |
| 6238 | READLINE_POINT |
| 6239 | |
| 6240 | common.h |
| 6241 | - new SEVAL_ defines for later parse_string changes from 4.0-devel |
| 6242 | branch |
| 6243 | |
| 6244 | command.h |
| 6245 | - new defines for new &>> r_append_err_and_out redirection |
| 6246 | |
| 6247 | builtins/evalstring.c |
| 6248 | - new function, parse_string, parses a command from a passed string |
| 6249 | and returns the number of characters consumed. For satisfying |
| 6250 | Posix rules when parsing command substitutions, from bash-4.0-devel |
| 6251 | branch |
| 6252 | - split out common prolog code from parse_string and |
| 6253 | parse_and_execute into a separate function called from both |
| 6254 | |
| 6255 | parse.y |
| 6256 | - small changes to add symbols needed for parse_string |
| 6257 | - parser change to add `|&' as synonym for `2>&1 |'; translation is |
| 6258 | performed at parse time so |& never shows up in output of |
| 6259 | print_command, for instance. Picked up from zsh, merged in from |
| 6260 | bash-4.0-devel branch |
| 6261 | |
| 6262 | parse.y,{redir,copy_cmd,dispose_cmd,make_cmd,print_cmd}.c |
| 6263 | - implement new &>> r_append_err_and_out (like >>foo 2>&1); merged |
| 6264 | in from bash-4.0-devel branch |
| 6265 | |
| 6266 | doc/{bash.1,bashref.texi},lib/readline/doc/rluser.texi |
| 6267 | - document new optional increment in brace expansion |
| 6268 | - document new zero-padded fixed-width integer brace expansion |
| 6269 | - document new `dabbrev-expand' bindable readline command |
| 6270 | - document new effects of `bind -x' setting and reading the values of |
| 6271 | READLINE_LINE and READLINE_POINT |
| 6272 | - document new |& synonym for `2>&1 |' pipeline operator |
| 6273 | |
| 6274 | 5/26 |
| 6275 | ---- |
| 6276 | parse.y - recognize new ;& and ;;& case action list terminator tokens and |
| 6277 | implement them in the grammar, setting CASEPAT_FALLTHROUGH and |
| 6278 | CASEPAT_TESTNEXT flags as appropriate |
| 6279 | |
| 6280 | print_cmd.c |
| 6281 | - print new ;& and ;;& case clause action list terminators as |
| 6282 | appropriate |
| 6283 | |
| 6284 | execute_cmd.c |
| 6285 | - implement new case clause action list terminators: |
| 6286 | ;& - fall through to actions associated with next pattern list |
| 6287 | ;;& - fall through to tests in next pattern list |
| 6288 | |
| 6289 | doc/{bash.1,bashref.texi} |
| 6290 | - document new ;& and ;;& case clause action list terminators |
| 6291 | |
| 6292 | 5/28 |
| 6293 | ---- |
| 6294 | jobs.c |
| 6295 | - change waitchld so it treats SIGCHLD like SIGINT if `wait' is being |
| 6296 | executed, and allows wait to jump out before running any trap set |
| 6297 | on SIGCHLD. Fixes debian bug #483016 reported by Miroslav Rudisin |
| 6298 | <miero@atrey.karlin.mff.cuni.cz> |
| 6299 | - run_sigchld_trap is no longer static, so the trap code in trap.c |
| 6300 | can call it |
| 6301 | - change run_sigchld_trap to call set_impossible_sigchld_trap instead |
| 6302 | of just using a call to restore_default_signal |
| 6303 | |
| 6304 | jobs.h |
| 6305 | - new extern declaration for run_sigchld_trap |
| 6306 | |
| 6307 | trap.c |
| 6308 | - fix run_pending_traps to run a SIGCHLD trap if the trap handler isn't |
| 6309 | set to IMPOSSIBLE_TRAP_HANDLER |
| 6310 | - in trap_handler, don't reset the SIGCHLD trap handler to trap_handler |
| 6311 | if MUST_REINSTALL_SIGHANDLERS is defined |
| 6312 | - new function, set_impossible_sigchld_handler, sets the trap string |
| 6313 | associated with SIGCHLD to IMPOSSIBLE_TRAP_HANDLER; used as a sentinel |
| 6314 | by run_sigchld_trap and maybe_set_sigchld_handler |
| 6315 | - change maybe_set_sigchld_handler to set the SIGCHLD trap string only |
| 6316 | if the current value is IMPOSSIBLE_TRAP_HANDLER. This ensures that |
| 6317 | any traps on SIGCHLD set in a SIGCHLD handler will persist. Fixes |
| 6318 | debian bug #483016 reported by Miroslav Rudisin |
| 6319 | <miero@atrey.karlin.mff.cuni.cz> |
| 6320 | |
| 6321 | trap.h |
| 6322 | - new extern declaration for set_impossible_sigchld_trap |
| 6323 | |
| 6324 | 5/31 |
| 6325 | ---- |
| 6326 | parse.y |
| 6327 | - new function: parse_comsub(), parses $(...) by parsing command |
| 6328 | between parens and making sure the next token is `)'. From |
| 6329 | the bash-4.0-devel branch |
| 6330 | - new function: xparse_dolparen, helper function for parsing |
| 6331 | command substitutions in $(...). Called from subst.c to extract |
| 6332 | a command substitution during word expansion. From bash-4.0-devel |
| 6333 | branch |
| 6334 | - new function: rewind_input_stream(). Rewinds bash_input.location.string |
| 6335 | back to where it was before the shell parsed a $() command |
| 6336 | substitution. From bash-4.0-devel branch |
| 6337 | - changes to parse_matched_pair to combine most of the flag variables |
| 6338 | (was_dollar, in_comment, and so on) into a local flags word |
| 6339 | |
| 6340 | 6/2 |
| 6341 | --- |
| 6342 | parse.y |
| 6343 | - call trim_pathname, which retains only the last $PROMPT_DIRTRIM |
| 6344 | directories and replaces the intervening characters with `...', |
| 6345 | when expanding \w and \W |
| 6346 | |
| 6347 | doc/{bash.1,bashref.texi} |
| 6348 | - document the effect of setting PROMPT_DIRTRIM |
| 6349 | |
| 6350 | 6/3 |
| 6351 | --- |
| 6352 | builtins/ulimit.def |
| 6353 | - make the multiplier (block size) for -c and -f 512 bytes only if in |
| 6354 | Posix mode and 1024 bytes otherwise (as in previous versions). Uses |
| 6355 | POSIXBLK and BLOCK_SIZE defines to parameterize size based on value |
| 6356 | of posixly_correct |
| 6357 | |
| 6358 | doc/bashref.texi |
| 6359 | - document this addition to posix mode |
| 6360 | |
| 6361 | builtins/common.c |
| 6362 | - change get_numeric_arg to have a calling sequence and return value |
| 6363 | more closely mimicking general.c:legal_number(), with the addition |
| 6364 | of a flags word |
| 6365 | - add extra value for `fatal' argument to get_numeric_arg to force it |
| 6366 | to return failure to the caller rather than longjmping |
| 6367 | |
| 6368 | builtins/common.h |
| 6369 | - change prototype declaration for get_numeric_arg |
| 6370 | |
| 6371 | builtins/{break,shift}.def |
| 6372 | - change calls to get_numeric_arg to deal with new semantics and calling |
| 6373 | sequence |
| 6374 | |
| 6375 | builtins/history.def |
| 6376 | - display_history now returns an int |
| 6377 | - change calling sequence for get_numeric_arg in display_history |
| 6378 | - display_history now returns failure to the caller if get_numeric_arg |
| 6379 | detects an invalid number, rather than jumping back to the top level |
| 6380 | - use value returned by display_history as return status of history |
| 6381 | builtin, filtered through sh_chkwrite |
| 6382 | - history no longer aborts compound commands on invalid arguments. |
| 6383 | fixes problem reported by Chu Li <chul@cn.fujitsu.com> |
| 6384 | |
| 6385 | {braces,subst}.c |
| 6386 | - extract_command_subst now takes a third flags argument; passed flags |
| 6387 | are ORd into flags passed to other functions; changed callers |
| 6388 | |
| 6389 | subst.h |
| 6390 | - move SX_* defines here from subst.c so parse.y:xparse_dolparen can |
| 6391 | see them and behave appropriately |
| 6392 | - extract_command_subst now takes a third flags argument; change |
| 6393 | prototype |
| 6394 | |
| 6395 | subst.c |
| 6396 | - change extract_command_subst to call xparse_dolparen when extracting |
| 6397 | a $() construct |
| 6398 | - change calls to extract_delimited_string to extract_command_subst |
| 6399 | as appropriate |
| 6400 | - if command_substitute returns a NULL word desc, don't call |
| 6401 | dispose_word_desc on it |
| 6402 | |
| 6403 | parse.y |
| 6404 | - change xparse_dolparen to use the SX_* flags now in subst.h |
| 6405 | |
| 6406 | 6/16 |
| 6407 | ---- |
| 6408 | subst.c |
| 6409 | - in quote_list, set W_HASQUOTEDNULL flag in the word if quote_string |
| 6410 | turns "" into CTLNUL |
| 6411 | - in dequote_list, turn off W_HASQUOTEDNULL flag in the word if |
| 6412 | dequote_string turns CTLNUL into "" |
| 6413 | - new function, string_list_pos_params, encapsulates everything |
| 6414 | needed to turn the positional parameters or an array indexed with |
| 6415 | '@' or '*' into a string, including taking care of quoting and |
| 6416 | using the first char of $IFS, when used in another expansion like |
| 6417 | pattern removal or pattern substitution |
| 6418 | - change list_remove_pattern, pos_params, pos_params_pat_subst to |
| 6419 | call string_list_pos_params. Fixes problems reported by |
| 6420 | Stephane Chazelas <stephane_chazelas@yahoo.fr> |
| 6421 | |
| 6422 | 6/22 |
| 6423 | ---- |
| 6424 | variables.h |
| 6425 | - include assoc.h for associative arrays |
| 6426 | - defines for case-modifying expansions and associative array variables |
| 6427 | - sh_var_assign_func_t functions now take an extra char * parameter |
| 6428 | |
| 6429 | 6/25 |
| 6430 | ---- |
| 6431 | variables.c |
| 6432 | - change declarations and definitions of sh_var_assign_func_t functions |
| 6433 | to add the extra char * parameter: null_assign, null_array_assign, |
| 6434 | assign_seconds, assign_random, assign_lineno, assign_subshell, |
| 6435 | assign_dirstack |
| 6436 | - change calls to var->assign_func to add extra char * argument |
| 6437 | - broke part of body of dispose_variable out into a new function, |
| 6438 | dispose_variable_value, which knows how to free all kinds of shell |
| 6439 | variable data |
| 6440 | - changes to deal with variables with the internal `nofree' attribute |
| 6441 | |
| 6442 | arrayfunc.c |
| 6443 | - change calls to var->assign_func to add extra char * argument |
| 6444 | - bind_array_var_internal now takes an extra `char *key' argument |
| 6445 | - additions for associative array implementation; from bash-4.0-devel |
| 6446 | tree |
| 6447 | |
| 6448 | arrayfunc.[ch],subst.c |
| 6449 | - expand_compound_array_assignment now takes the variable as the first |
| 6450 | argument (SHELL_VAR *); changed function definition and callers |
| 6451 | |
| 6452 | builtins/set.def |
| 6453 | - changes to handle associative arrays in `unset' |
| 6454 | |
| 6455 | {execute_cmd,command}.h |
| 6456 | - definitions for coproc implementation; from bash-4.0-devel tree |
| 6457 | |
| 6458 | variables.c |
| 6459 | - new functions for associative arrays: make_new_assoc_variable, |
| 6460 | make_local_assoc_variable |
| 6461 | |
| 6462 | 6/26 |
| 6463 | ---- |
| 6464 | variables.c |
| 6465 | - more infrastructure for associative arrays; from bash-4.0-devel tree |
| 6466 | - infrastructure for handling assignments to variables with |
| 6467 | case-modifying attributes; from bash-4.0-devel tree |
| 6468 | |
| 6469 | config.h.in |
| 6470 | - add #defines controlling case-modifying variable attributes and word |
| 6471 | expansions |
| 6472 | |
| 6473 | configure.in |
| 6474 | - add enable options for case-modifying variable attributes and word |
| 6475 | expansions (--enable-casemod-attributes and --enable-casemod-expansions, |
| 6476 | respectively); from bash-4.0-devel tree |
| 6477 | |
| 6478 | execute_cmd.c |
| 6479 | - add code to fix_assignment_words to handle assignment statements to |
| 6480 | "assignment builtins" that seem to be associative arrays. Imperfect |
| 6481 | |
| 6482 | subst.c |
| 6483 | - array_remove_pattern now takes a SHELL_VAR * as its first argument |
| 6484 | instead of an ARRAY *; from the bash-4.0-devel tree |
| 6485 | - changes to array_length_reference for associative arrays; from the |
| 6486 | bash-4.0-devel tree |
| 6487 | - changes to get_var_and_type for associative arrays; from the |
| 6488 | bash-4.0-devel tree |
| 6489 | - changes to parameter_brace_substring for associative arrays; from the |
| 6490 | bash-4.0-devel tree |
| 6491 | - changes to param_expand for associative arrays; from the |
| 6492 | bash-4.0-devel tree |
| 6493 | |
| 6494 | builtins/declare.def |
| 6495 | - changes for associative arrays: new `-A' option, changes to make |
| 6496 | local and global associative array variables; from the bash-4.0-devel |
| 6497 | tree |
| 6498 | |
| 6499 | 6/27 |
| 6500 | ---- |
| 6501 | execute_cmd.c |
| 6502 | - in execute_command_internal, when short-circuiting execution |
| 6503 | because `breaking' or `continuing' is non-zero, preserve the exit |
| 6504 | status by returning `last_command_exit_value' instead of an |
| 6505 | unconditional EXECUTION_SUCCESS. Fixes bug reported by Roman |
| 6506 | Rakus <rrakus@redhat.com> |
| 6507 | |
| 6508 | 6/28 |
| 6509 | ---- |
| 6510 | variables.c |
| 6511 | - fix get_var_and_type to appropriately handle references like |
| 6512 | ${varname[0]}, where `varname' is a scalar variable |
| 6513 | |
| 6514 | make_cmd.[ch],parse.y |
| 6515 | - make_here_document now takes a second argument: the current line |
| 6516 | number; changed caller (gather_here_documents) |
| 6517 | |
| 6518 | builtins/setattr.def |
| 6519 | - added support for associative arrays and the `-A' variable attribute |
| 6520 | option; from the bash-4.0-devel tree |
| 6521 | |
| 6522 | subst.c |
| 6523 | - change code that transforms `declare -A xxx=(yyy)' to perform the |
| 6524 | internal `declare -A xxx' before doing the variable assignment, |
| 6525 | because associative arrays have to be declared before being assigned |
| 6526 | to as such; uses new function make_internal_declare |
| 6527 | |
| 6528 | 6/30 |
| 6529 | ---- |
| 6530 | subst.[ch] |
| 6531 | - dequote_escapes is now external; add declaration in subst.h |
| 6532 | - remove_quoted_nulls is now external; add declaration in subst.h |
| 6533 | |
| 6534 | array.[ch] |
| 6535 | - new functions for completeness: array_dequote, array_dequote_escapes, |
| 6536 | array_remove_quoted_nulls |
| 6537 | - array_subrange now calls array_remove_quoted_nulls for "${array[*]}". |
| 6538 | Fixes bug reported by Vitor De Araujo <ux386@yahoo.com.br> |
| 6539 | - array_patsub now calls array_remove_quoted_nulls for "${array[*]}" |
| 6540 | - array_modcase now calls array_remove_quoted_nulls for "${array[*]}" |
| 6541 | - array_patsub now handles the mflags&MATCH_QUOTED case appropriately |
| 6542 | (that implies "${array[@]}") |
| 6543 | |
| 6544 | subst.c |
| 6545 | - new functions for case-modifying word expansion suppport: |
| 6546 | pos_params_casemod, parameter_brace_casemod; from bash-4.0-devel branch |
| 6547 | |
| 6548 | assoc.c |
| 6549 | - new functions for completeness: assoc_remove_quoted_nulls |
| 6550 | - assoc_patsub now calls assoc_remove_quoted_nulls for "${assoc[*]}" |
| 6551 | - assoc_modcase now calls assoc_remove_quoted_nulls for "${array[*]}" |
| 6552 | - assoc_patsub now handles the mflags&MATCH_QUOTED case appropriately |
| 6553 | (that implies "${assoc[@]}") |
| 6554 | |
| 6555 | 7/1 |
| 6556 | --- |
| 6557 | assoc.[ch] |
| 6558 | - new function, assoc_subrange: takes a hash table, converts it to a |
| 6559 | word list, and performs the subrange and indexing on that list |
| 6560 | - new functions for completeness: assoc_dequote, assoc_dequote_escapes |
| 6561 | |
| 6562 | subst.c |
| 6563 | - verify_substring_values now takes the variable SHELL_VAR * as its |
| 6564 | new first argument; changed callers |
| 6565 | - change verify_substring_values to handle associative arrays using the |
| 6566 | number of elements as the upper bound |
| 6567 | - brought in code to do case-modifying word expansions from |
| 6568 | bash-4.0-devel branch, conditional on CASEMOD_EXPANSIONS |
| 6569 | |
| 6570 | input.c |
| 6571 | - if the read(2) in getc_with_restart returns -1/EAGAIN, turn off |
| 6572 | non-blocking mode on the file descriptor and try again. Fixes |
| 6573 | problem reported by Glynn Clements <glynn@clements.plus.com> |
| 6574 | |
| 6575 | 7/2 |
| 6576 | --- |
| 6577 | doc/{bash.1,bashref.texi} |
| 6578 | - documented new case-modifying word expansions |
| 6579 | |
| 6580 | make_cmd.c |
| 6581 | - change make_here_document to display a warning message including the |
| 6582 | start line of a here document if it ends up delimited by EOF. |
| 6583 | Addresses issue raised by Richard Neill <rn214@hermes.cam.ac.uk> |
| 6584 | |
| 6585 | subst.c |
| 6586 | - in do_assignment_internal, make sure the `invisible' attribute is |
| 6587 | unset before returning success |
| 6588 | |
| 6589 | 7/3 |
| 6590 | --- |
| 6591 | config-top.h |
| 6592 | - add `CASEMOD_CAPCASE' define to include or exclude the ~[~] word |
| 6593 | expansion and the `capcase' variable attribute (declare -c) |
| 6594 | |
| 6595 | builtins/declare.def |
| 6596 | - add support for manipulating the case-modifying attributes (new |
| 6597 | declare -clu); from bash-4.0-devel branch |
| 6598 | |
| 6599 | builtins/setattr.def |
| 6600 | - add support for reporting case-modifying attributes (-clu attributes); |
| 6601 | from bash-4.0-devel branch |
| 6602 | |
| 6603 | doc/{bash.1,bashref.texi} |
| 6604 | - specify that the read builtin timing out results in a return value |
| 6605 | greater than 128 |
| 6606 | - document new `-l' and `-u' options to declare/typeset/local. Leave |
| 6607 | `-c' undocumented for now |
| 6608 | |
| 6609 | 7/4 |
| 6610 | --- |
| 6611 | make_cmd.[ch] |
| 6612 | - make_coproc_command: construct a coproc; from bash-4.0-devel tree |
| 6613 | |
| 6614 | dispose_cmd.c |
| 6615 | - dispose coproc command; from bash-4.0-devel tree |
| 6616 | |
| 6617 | copy_cmd.c |
| 6618 | - copy a coproc command; from bash-4.0-devel tree |
| 6619 | |
| 6620 | print_cmd.c |
| 6621 | - print a coproc command; from bash-4.0-devel tree |
| 6622 | |
| 6623 | shell.c |
| 6624 | - dispoe the current coproc on shell exit; from bash-4.0-devel tree |
| 6625 | |
| 6626 | redir.c |
| 6627 | - when closing redirects as part of user redirections, check whether |
| 6628 | or not active coprocess fds are being closed and close the coproc |
| 6629 | if so; from bash-4.0-devel tree |
| 6630 | |
| 6631 | config.h.in |
| 6632 | - add define for COPROCESS_SUPPORT to include coprocesses |
| 6633 | |
| 6634 | configure.in |
| 6635 | - add support for configuring coprocesses into and out of the build |
| 6636 | |
| 6637 | jobs.c |
| 6638 | - in waitchld, check whether or not a coproc processs has exited; |
| 6639 | from the bash-4.0-devel tree |
| 6640 | |
| 6641 | 7/5 |
| 6642 | --- |
| 6643 | doc/bashref.texi |
| 6644 | - document new --enable-coprocesses option that includes coprocess |
| 6645 | support |
| 6646 | |
| 6647 | execute_cmd.c |
| 6648 | - add functions for coprocess support, including execute_coproc and |
| 6649 | code to call it when command->type == cm_coproc; from |
| 6650 | bash-4.0-devel tree |
| 6651 | |
| 6652 | lib/sh/fdprintf.c |
| 6653 | - new library function fdprintf(int fd, const char *format, ...); |
| 6654 | printf to a file descriptor |
| 6655 | |
| 6656 | {configure,config.h}.in |
| 6657 | - support for detecting fdprintf and compiling in replacement |
| 6658 | |
| 6659 | Makefile.in,lib/sh/Makefile.in |
| 6660 | - add rules to include fdprintf.o |
| 6661 | |
| 6662 | doc/{bash.1,bashref.texi} |
| 6663 | - documented coprocesses and `coproc' reserved word |
| 6664 | |
| 6665 | 7/7 |
| 6666 | --- |
| 6667 | subst.c |
| 6668 | - fix array_length_reference to use MB_STRLEN instead of STRLEN, so |
| 6669 | multibyte characters in array values are computed correctly. Fixes |
| 6670 | bug reported by Wang Xin <wxinee@gmail.com> |
| 6671 | |
| 6672 | 7/10 |
| 6673 | ---- |
| 6674 | jobs.c |
| 6675 | - new function, maybe_give_terminal_to (old, new, flags), sets the |
| 6676 | terminal pgrp to NEW if and only if it's currently set to OLD |
| 6677 | - call maybe_give_terminal_to when the parent sets the terminal pgrp |
| 6678 | to the pipeline pgrp in stop_pipeline, so we don't give the |
| 6679 | terminal to the new job's pgrp unless it's currently owned by the |
| 6680 | shell. Fixes race condition described by Joe Peterson |
| 6681 | <joe@skyrush.com>, where parent bash may change tty pgrp after a |
| 6682 | grandchild (interactive bash child of su) has changed it to |
| 6683 | something else. The call to maybe_give_terminal_to makes explicit |
| 6684 | a previously-implicit assumption |
| 6685 | |
| 6686 | aclocal.m4 |
| 6687 | - remove dependency on writable /tmp by creating directories in |
| 6688 | build directory |
| 6689 | |
| 6690 | shell.c |
| 6691 | - make changes to how bash sets no_line_editing and running_under_emacs |
| 6692 | to deal with various emacs terminal emulators; use better check |
| 6693 | for `eterm', since bash sends $PWD to eterm with control sequences |
| 6694 | that confuse other programs. Problem reported by Micah Cowan |
| 6695 | <micah@cowan.name> |
| 6696 | |
| 6697 | |
| 6698 | 7/12 |
| 6699 | ---- |
| 6700 | print_cmd.c |
| 6701 | - break code that prints here-documents into two functions: |
| 6702 | print_heredoc_header, which prints the operator and delimiter, and |
| 6703 | print_heredoc_body, which prints the body text and closing delimiter |
| 6704 | - change print_redirection to call print_heredoc_{header,body} |
| 6705 | - sentinel variable, printing_connection, used when printing a command |
| 6706 | of type `connection' (|, &&, ||, etc.) |
| 6707 | - change print_redirection_list to save any here documents it finds |
| 6708 | while printing a connection and save them in `deferred_heredocs' |
| 6709 | - new function, print_deferred_heredocs, called from print_redirection |
| 6710 | in the cm_connection case, calls print_heredoc_header for all the |
| 6711 | here documents, then prints the operator (|, &&, ||, etc.), then |
| 6712 | the here-document body. This preserves syntactic correctness; the |
| 6713 | old code printed the control operator after the body of the here |
| 6714 | document. Fixes bug reported by <buport@figpost.com> |
| 6715 | |
| 6716 | 7/16 |
| 6717 | ---- |
| 6718 | locale.c |
| 6719 | - in set_locale_var, print a warning message if setlocale() fails any |
| 6720 | time it's called -- required some code restructuring |
| 6721 | |
| 6722 | 7/19 |
| 6723 | ---- |
| 6724 | support/shobj-conf |
| 6725 | - support for mingw32, contributed by Carlo Bramix |
| 6726 | <carlo.bramix@libero.it> |
| 6727 | |
| 6728 | 7/23 |
| 6729 | ---- |
| 6730 | execute_cmd.c |
| 6731 | - added support (currently unused) to manage a list of coprocs |
| 6732 | |
| 6733 | 7/25 |
| 6734 | ---- |
| 6735 | bashline.c |
| 6736 | - add extern declarations for literal_history and force_append_history |
| 6737 | |
| 6738 | builtins/shopt.def |
| 6739 | - include "bashhist.h" instead of having extern declarations for the |
| 6740 | appropriate history variables |
| 6741 | |
| 6742 | parser.h |
| 6743 | - new parser_state value: PST_HEREDOC, set when reading body of here- |
| 6744 | document in parse.y:read_secondary_line |
| 6745 | |
| 6746 | parse.y |
| 6747 | - set PST_HEREDOC bit in parser_state when reading a secondary line |
| 6748 | for the body of a here-document |
| 6749 | - change read_secondary_line to save lines in the body of a here- |
| 6750 | document in the shell history list if remember_on_history is |
| 6751 | set. Fixes bug reported by Gene Golub <gene_golub@hotmail.com> |
| 6752 | |
| 6753 | 8/4 |
| 6754 | --- |
| 6755 | configure.in |
| 6756 | - changed to 4.0-alpha |
| 6757 | |
| 6758 | lib/readline/readline.h |
| 6759 | - changed constants to reflect readline-6.0 version |
| 6760 | |
| 6761 | 8/11 |
| 6762 | ---- |
| 6763 | lib/readline/signals.c |
| 6764 | - make sure we don't use SIGWINCH without checking whether or not it's |
| 6765 | defined. Fix from Pedro Alves <pedro@codesourcery.com> |
| 6766 | |
| 6767 | 8/12 |
| 6768 | ---- |
| 6769 | |
| 6770 | COPYING |
| 6771 | - updated to GPLv3; edits in every file with a copyright or license |
| 6772 | declaration to update to gpl3 |
| 6773 | |
| 6774 | version.c |
| 6775 | - update extended version info to latest gnu standard |
| 6776 | |
| 6777 | 8/17 |
| 6778 | ---- |
| 6779 | subst.c |
| 6780 | - change exp_jump_to_top_level to only call top_level_cleanup if |
| 6781 | parse_and_execute_level is 0. If it's not, the longjmp to |
| 6782 | parse_and_execute will run the unwind-protect stack. Fixes bug |
| 6783 | most recently reported by Roman Rakus <rrakus@redhat.com> |
| 6784 | |
| 6785 | 8/18 |
| 6786 | ---- |
| 6787 | support/config.{guess,sub} |
| 6788 | - updated to newer versions from autoconf-2.62 distribution |
| 6789 | |
| 6790 | 8/20 |
| 6791 | ---- |
| 6792 | subst.c |
| 6793 | - fixed parameter_brace_substring to differentiate between indexed and |
| 6794 | associative arrays when computing second offset, instead of |
| 6795 | assuming indexed array |
| 6796 | |
| 6797 | 8/21 |
| 6798 | ---- |
| 6799 | support/xcase.c |
| 6800 | - simple program to convert input from lower to uppercase and vice |
| 6801 | versa. Now used by coproc test suite, since `tr -u' is not |
| 6802 | portable. |
| 6803 | |
| 6804 | 8/22 |
| 6805 | ---- |
| 6806 | doc/bash.1 |
| 6807 | - fixed description of the bindable edit-and-execute commands to note |
| 6808 | they check $VISUAL first, instead of $FCEDIT. Fixed bug reported |
| 6809 | by |
| 6810 | |
| 6811 | [bash-4.0-alpha frozen] |
| 6812 | |
| 6813 | 8/28 |
| 6814 | ---- |
| 6815 | [bash-4.0-alpha released] |
| 6816 | |
| 6817 | 9/1 |
| 6818 | --- |
| 6819 | builtins/evalstring.c |
| 6820 | - fixed typo in parse_string (ostring used uninitialized). Bug |
| 6821 | reported by Andreas Schwab <schwab@suse.de> |
| 6822 | |
| 6823 | subst.c |
| 6824 | - fix return value of parameter_brace_expand to set the |
| 6825 | W_HASQUOTEDNULL flag in the returned WORD_DESC * if the return value |
| 6826 | from parameter_brace_remove_pattern is a quoted null string. Fixes |
| 6827 | bug reported by Andreas Schwab <schwab@suse.de> |
| 6828 | - set the W_HASQUOTEDNULL flag in the return value from |
| 6829 | parameter_brace_expand if the return value from parameter_brace_patsub |
| 6830 | is a quoted null string |
| 6831 | |
| 6832 | 9/6 |
| 6833 | --- |
| 6834 | builtins/read.def |
| 6835 | - change read -t 0 to return success if there is input available to be |
| 6836 | read -- allows scripts to poll for input. Uses input_avail libsh |
| 6837 | function |
| 6838 | |
| 6839 | 9/9 |
| 6840 | --- |
| 6841 | externs.h |
| 6842 | - fix extern fpurge declaration -- use HAVE_DECL_FPURGE instead of |
| 6843 | NEED_FPURGE_DECL, since the former is set by `configure' |
| 6844 | |
| 6845 | jobs.h |
| 6846 | - add extern declaration for close_pgrp_pipe |
| 6847 | - add a new job state JNONE (-1) to the enum |
| 6848 | |
| 6849 | jobs.c |
| 6850 | - include execute_cmd.h for extern declarations for coproc functions |
| 6851 | |
| 6852 | subst.c |
| 6853 | - include builtins/builtext.h for extern declarations for functions |
| 6854 | implementing builtins (e.g., declare_builtin) |
| 6855 | |
| 6856 | arrayfunc.c |
| 6857 | - include "pathexp.h" for extern declaration for glob_char_p |
| 6858 | |
| 6859 | braces.c |
| 6860 | - add extern declaration for `asprintf' |
| 6861 | |
| 6862 | lib/readline/rlprivate.h |
| 6863 | - add extern declarations for _rl_trace, _rl_tropen |
| 6864 | |
| 6865 | lib/sh/zgetline.c |
| 6866 | - add extern declarations for zread, zreadc |
| 6867 | |
| 6868 | lib/sh/mktime.c |
| 6869 | - include "bashansi.h" for string function declarations |
| 6870 | |
| 6871 | builtins/common.h |
| 6872 | - add extern declaration for parse_string |
| 6873 | |
| 6874 | trap.c |
| 6875 | - include jobs.h for extern declaration for run_sigchld_trap |
| 6876 | |
| 6877 | general.c |
| 6878 | - fix call to strtoimax in legal_number; if ep == string when function |
| 6879 | returns, the number was not converted, even if errno is not set. |
| 6880 | Fix from Paul Jarc <prj@case.edu> |
| 6881 | |
| 6882 | 9/11 |
| 6883 | ---- |
| 6884 | [prayers for the victims of 9/11/2001] |
| 6885 | |
| 6886 | builtins/return.def |
| 6887 | - call no_options, as Posix requires. This also has the effect of |
| 6888 | disallowing negative return values unless they're prefixed by `--' |
| 6889 | |
| 6890 | 9/13 |
| 6891 | ---- |
| 6892 | builtins/bind.def |
| 6893 | - add an error message when bind is used without line editing active, |
| 6894 | instead of just returning an error status |
| 6895 | |
| 6896 | variables.c |
| 6897 | - make sure make_local_variable never creates visible variables with |
| 6898 | a value, whether or not a variable with the same name existed in a |
| 6899 | previous context. This is consistent with ksh93. Fix from |
| 6900 | <neil@s-z.org> |
| 6901 | |
| 6902 | 9/16 |
| 6903 | ---- |
| 6904 | execute_cmd.c |
| 6905 | - add call to CHECK_TERMSIG in shell_execve after the call to execve |
| 6906 | returns. Recommended by Roman Rakus <rrakus@redhat.com> |
| 6907 | - add QUIT check in execute_connection after executing first command |
| 6908 | in a `&' connection |
| 6909 | |
| 6910 | 9/22 |
| 6911 | ---- |
| 6912 | execute_cmd.c |
| 6913 | - new semaphore variable, executing_list, incremented every time a |
| 6914 | list (command1;command2 or command1 || command2 or command1 && |
| 6915 | command2) is executed; used as sentinel for rest of shell |
| 6916 | |
| 6917 | sig.c,builtins/evalstring.c |
| 6918 | - set executing_list to 0 when throwing execution back to top level; |
| 6919 | make sure to unwind-protect it in appropriate places |
| 6920 | |
| 6921 | jobs.c |
| 6922 | - if a pipeline is killed by SIGINT while executing a list (when |
| 6923 | executing_list is non-zero), make sure the shell acts as if an |
| 6924 | interrupt occurred. The behavior is dependent on the shell |
| 6925 | compatibility level being > 32 (bash-4.0 and above) |
| 6926 | |
| 6927 | 9/23 |
| 6928 | ---- |
| 6929 | redir.c |
| 6930 | - don't bother reporting an error with a file descriptor, even if |
| 6931 | the errno is EBADF, if the redirection error (e.g., NOCLOBBER) |
| 6932 | can't have anything to do with the fd. Fixes bug reported by |
| 6933 | "David A. Harding" <dave@dtrt.org>, debian bug #499633. |
| 6934 | |
| 6935 | 9/24 |
| 6936 | ---- |
| 6937 | builtins/declare.def |
| 6938 | - make `declare [option] var' (and the `typeset' equivalent) create |
| 6939 | invisible variables, instead of assigning the null string to a |
| 6940 | visible variable. Fixes bug reported by Bernd Eggink <monoped@sudrala.de> |
| 6941 | |
| 6942 | 9/25 |
| 6943 | ---- |
| 6944 | builtins/common.[ch] |
| 6945 | - new function, builtin_warning(), like builtin_error but for warning |
| 6946 | messages |
| 6947 | |
| 6948 | builtins/bind.def |
| 6949 | - experimental: print a warning, but go on, if line editing not active |
| 6950 | when bind is invoked. Suggested by Rocky Bernstein |
| 6951 | <rocky.bernstein@gmail.com> |
| 6952 | |
| 6953 | 10/3 |
| 6954 | ---- |
| 6955 | test.c |
| 6956 | - use same_file instead of directly comparing st_dev and st_ino when |
| 6957 | comparing files in filecomp(). From mingw32 patches submitted |
| 6958 | by Hector Chu <hkcc2@cantab.net> |
| 6959 | |
| 6960 | 10/4 |
| 6961 | ---- |
| 6962 | |
| 6963 | redir.c |
| 6964 | - in redirection_error(), use `error' instead of errno when comparing |
| 6965 | against EBADF. From mingw32 patches submitted by Hector Chu |
| 6966 | <hkcc2@cantab.net> |
| 6967 | |
| 6968 | shell.c |
| 6969 | - in unset_bash_input(), reset bash_input.type to st_none after |
| 6970 | closing the default buffered fd. From mingw32 patches submitted |
| 6971 | by Hector Chu <hkcc2@cantab.net> |
| 6972 | |
| 6973 | builtins/cd.def |
| 6974 | - ignore CDPATH when in privileged mode. Suggested by Paul Jarc |
| 6975 | <prj@po.cwru.edu> |
| 6976 | |
| 6977 | variables.c |
| 6978 | - change sv_globignore to only act if privileged mode is not enabled. |
| 6979 | Suggested by Paul Jarc <prj@po.cwru.edu> |
| 6980 | |
| 6981 | doc/bash.1,bashref.texi |
| 6982 | - document new treatment of CDPATH and GLOBIGNORE when privileged |
| 6983 | mode is enabled |
| 6984 | |
| 6985 | builtins/read.def |
| 6986 | - change prompt printing to occur after terminal is set to no-echo |
| 6987 | mode. Based on suggestion from Stephane Chazelas |
| 6988 | <stephane_chazelas@yahoo.fr> |
| 6989 | |
| 6990 | lib/readline/signals.c |
| 6991 | - new variables to keep track of special characters corresponding to |
| 6992 | SIGINT, SIGQUIT, and SIGTSTP |
| 6993 | - new variable to keep track of whether tty is echoing control |
| 6994 | characters corresponding to SIGINT, SIGQUIT, and SIGTSTP |
| 6995 | - new function, _rl_echo_signal_char(int sig) to display the tty |
| 6996 | special char generating SIGINT, SIGQUIT, or SIGTSTP. Based on |
| 6997 | idea and code from Joe Peterson <joe@skyrush.com> |
| 6998 | - call rl_echo_signal_char in rl_signal_handler: if the terminal |
| 6999 | settings indicate it, readline will echo characters that generate |
| 7000 | keyboard signals |
| 7001 | |
| 7002 | lib/readline/rltty.c |
| 7003 | - set _rl_intr_char, _rl_quit_char, and _rl_susp_char to special |
| 7004 | characters that generate signals from keyboard |
| 7005 | - set _rl_echoctl if ECHOCTL tty flag is set |
| 7006 | |
| 7007 | lib/readline/rlprivate.h |
| 7008 | - extern declarations for _rl_intr_char, _rl_quit_char, and |
| 7009 | _rl_susp_char |
| 7010 | - extern declaration for _rl_echoctl |
| 7011 | |
| 7012 | lib/readline/readline.h |
| 7013 | - extern declaration for rl_echo_signal_char() |
| 7014 | |
| 7015 | lib/readline/doc/rltech.texi |
| 7016 | - document rl_echo_signal_handler(): available for applications |
| 7017 | that install their own signal handlers |
| 7018 | |
| 7019 | 10/5 |
| 7020 | ---- |
| 7021 | execute_cmd.c |
| 7022 | - fix errexit logic to not cause the shell to exit when a command in |
| 7023 | a pipeline fails. Fixes bug reported by Marcin Owsiany |
| 7024 | <marcin@owsiany.pl> |
| 7025 | |
| 7026 | 10/14 |
| 7027 | ----- |
| 7028 | builtins/evalstring.c |
| 7029 | - don't short-circuit execution in parse_and_execute if we want to |
| 7030 | run an exit trap. Fixes bug reported by Steffen Kiess |
| 7031 | <s-kiess@web.de> |
| 7032 | |
| 7033 | 10/18 |
| 7034 | ----- |
| 7035 | parse.y |
| 7036 | - fix error production to only call YYACCEPT if the shell is currently |
| 7037 | interactive and not in parse_and_execute (so parser errors in |
| 7038 | things like eval will correctly set $?). Fixes bug reported by |
| 7039 | marco-oweber@gmx.de |
| 7040 | |
| 7041 | execute_cmd.c |
| 7042 | - make sure variable name errors in execute_for_command and non- |
| 7043 | identifier function names in execute_intern_function set the |
| 7044 | return status to EX_BADUSAGE (2), not EX_USAGE (258) |
| 7045 | |
| 7046 | parser.h |
| 7047 | - new parser state, PST_REPARSE |
| 7048 | |
| 7049 | parse.y |
| 7050 | - turn PST_REPARSE on in parse_string_to_word_list |
| 7051 | - in parse_matched_pair, if parsing a single-quoted string and |
| 7052 | PST_REPARSE is set, don't requote CTLESC or CTLNUL. Fixes bug with |
| 7053 | compound array assignment using $'\x7f' reported by Antonio Macchi |
| 7054 | <antonio_macchi@alice.it> |
| 7055 | |
| 7056 | 10/23 |
| 7057 | ----- |
| 7058 | configure.in |
| 7059 | - define LOCAL_LDFLAGS as `-z interpose' on Solaris 8, 9, and 10 to |
| 7060 | allow the bash malloc to interpose the libc malloc when called by |
| 7061 | library functions pre-bound to the libc malloc. Suggested by |
| 7062 | Serge Dussud <Serge.Dussud@Sun.COM> |
| 7063 | |
| 7064 | 10/26 |
| 7065 | ----- |
| 7066 | doc/bash.1 |
| 7067 | - add single-sentence descriptions to rest of parameter expansions. |
| 7068 | Suggested by Ken Irving <fnkci@uaf.edu> |
| 7069 | |
| 7070 | 10/27 |
| 7071 | ----- |
| 7072 | subst.c |
| 7073 | - rearrange code in skip_to_delims to allow quote characters and other |
| 7074 | shell expansion characters to be delimiters |
| 7075 | - add new flags value for inverting search: skip to the next character |
| 7076 | NOT in the set of delimiters passed as an argument |
| 7077 | |
| 7078 | subst.h |
| 7079 | - define for new SD_INVERT flag value for skip_to_delims |
| 7080 | |
| 7081 | 10/28 |
| 7082 | ----- |
| 7083 | bashline.c |
| 7084 | - new bindable functions: shell-forward-word and shell-backward-word. |
| 7085 | Like forward-word and backward-word, but understand shell quoting |
| 7086 | and use shell metacharacters and whitespace as delimiters. |
| 7087 | Suggested by Andre Majorel <amajorel@teaser.fr> |
| 7088 | - new bindable functions: shell-kill-word and shell-backward-kill-word. |
| 7089 | Like kill-word and backward-kill-word, but understand shell quoting |
| 7090 | and use shell metacharacters and whitespace as delimiters. |
| 7091 | Suggested by Andre Majorel <amajorel@teaser.fr> |
| 7092 | |
| 7093 | doc/bash.1,lib/readline/doc/rluser.texi |
| 7094 | - documented shell-forward-word and shell-backward-word |
| 7095 | - documented shell-kill-word and shell-backward-kill-word |
| 7096 | |
| 7097 | 11/1 |
| 7098 | ---- |
| 7099 | redir.c |
| 7100 | - add extra argument to add_undo_redirect: fdbase. FD used to save |
| 7101 | a file descriptor must be > fdbase if fdbase >= SHELL_FD_BASE. A |
| 7102 | value of -1 for fdbase means to just use SHELL_FD_BASE. Fixes bug |
| 7103 | with 0<&10 reported by Clark Jian Wang <dearvoid@gmail.com> |
| 7104 | |
| 7105 | 11/5 |
| 7106 | ---- |
| 7107 | unwind_prot.c |
| 7108 | - new function: have_unwind_protects(); returns 1 if unwind_protect_list |
| 7109 | is not empty |
| 7110 | |
| 7111 | unwind_prot.h |
| 7112 | - extern declaration for have_unwind_protects |
| 7113 | |
| 7114 | builtins/evalstring.c |
| 7115 | - in parse_and_execute_cleanup, make sure that we don't call |
| 7116 | run_unwind_frame and expect it to decrement parse_and_execute_level |
| 7117 | if there's no unwind_protect_list, since there's a while loop in |
| 7118 | throw_to_top_level that calls parse_and_execute_cleanup as long as |
| 7119 | parse_and_execute_level is non-zero |
| 7120 | |
| 7121 | 11/9 |
| 7122 | ---- |
| 7123 | variables.c |
| 7124 | - fix the assign function for COMP_WORDBREAKS to allocate new memory |
| 7125 | to store as the variable's value, to avoid freeing memory twice |
| 7126 | if the variable is unset after rl_completer_word_break_characters |
| 7127 | is freed and reallocated. Fix from Mike Stroyan <mike@stroyan.net |
| 7128 | |
| 7129 | 11/11 |
| 7130 | ----- |
| 7131 | bashline.c |
| 7132 | - new function to reset the value of rl_completer_word_break_characters |
| 7133 | while honoring setting of `hostcomplete': reset_completer_word_break_chars. |
| 7134 | |
| 7135 | bashline.h |
| 7136 | - new extern declaration for reset_completer_word_break_chars. |
| 7137 | |
| 7138 | variables.c |
| 7139 | - call reset_completer_word_break_chars in sv_comp_wordbreaks when the |
| 7140 | variable is unset |
| 7141 | |
| 7142 | [bash-4.0-beta frozen] |
| 7143 | |
| 7144 | 11/16 |
| 7145 | ----- |
| 7146 | subst.c |
| 7147 | - call set_pipestatus_from_exit in exp_jump_to_top_level so that |
| 7148 | failed expansions that set $? will set $PIPESTATUS. Fixes bug |
| 7149 | reported by Eric Blake <ebb9@byu.net> |
| 7150 | |
| 7151 | 11/20 |
| 7152 | ----- |
| 7153 | general.c |
| 7154 | - new 'file_exists(fn)' primitive; just calls stat(2) |
| 7155 | |
| 7156 | general.h |
| 7157 | - new extern declaration for file_exists |
| 7158 | |
| 7159 | bashline.c |
| 7160 | - add `~' to rl_filename_quote_characters so make_quoted_replacement |
| 7161 | will call bash_quote_filename for words containing `~'. Then |
| 7162 | bash_quote_filename can make choices based on that |
| 7163 | - change quote_word_break_chars to backslash-quote the tilde in a |
| 7164 | filename with a leading tilde that exists in the current directory, |
| 7165 | since we want to inhibit tilde expansion in this case |
| 7166 | |
| 7167 | execute_cmd.c |
| 7168 | - call file_isdir from shell_execve instead of stat(2) directly |
| 7169 | |
| 7170 | bashhist.c |
| 7171 | - use file_exists and file_isdir primitives instead of calling stat |
| 7172 | |
| 7173 | 11/21 |
| 7174 | ----- |
| 7175 | redir.c |
| 7176 | - When undoing saving of non-standard file descriptors (>=3) using |
| 7177 | file descriptors >= SHELL_FD_BASE, we set the saving fd to be |
| 7178 | close-on-exec and use a flag (RX_SAVCLEXEC) to decide how to set |
| 7179 | close-on-exec when the fd is restored. Set flag in add_undo_redirect, |
| 7180 | check in do_redirection_internal. Fixes problem reported by Andreas |
| 7181 | Schwab <schwab@suse.de> |
| 7182 | |
| 7183 | 11/26 |
| 7184 | ----- |
| 7185 | subst.c |
| 7186 | - fix param_expand to have expansions of $@ and $* exit the shell if |
| 7187 | there are no positional parameters and `set -u' is enabled. Fixes |
| 7188 | bug reported by Dan Jacobson <jidanni@jidanni.org> |
| 7189 | |
| 7190 | 11/27 |
| 7191 | ----- |
| 7192 | lib/readline/display.c |
| 7193 | - fix update_line to not call space_to_eol if current cursor position |
| 7194 | (_rl_last_c_pos) indicates that we're already at end of line. |
| 7195 | Partial fix for bug reported by Mike Frysinger <vapier@gentoo.org> |
| 7196 | - in update_line, don't call insert_some_chars if that will start |
| 7197 | before the last invisible character in the prompt string and not |
| 7198 | draw the entire prompt string. More of the partial fix for bug |
| 7199 | reported by Mike Frysinger <vapier@gentoo.org> |
| 7200 | - fix update_line to adjust _rl_last_c_pos by wrap_offset when adding |
| 7201 | characters beginning before the last invisible character in the |
| 7202 | prompt. New code is same as previously existed in a different code |
| 7203 | path. Rest of fix for bug from Mike Frysinger <vapier@gentoo.org> |
| 7204 | - fix assignment of newline breaks (inv_lbreaks) to correctly account |
| 7205 | for prompts longer than two screen lines containing invisible |
| 7206 | characters. The assumption is that part of the invisible characters |
| 7207 | are on the first line (prompt_invis_chars_first_line) and the |
| 7208 | remainder are on the last (wrap_offset - prompt_invis_chars_first_line). |
| 7209 | Fix is in rl_redisplay. part of fix for bug reported by |
| 7210 | "Wesley J. Landaker" <wjl@icecavern.net> in |
| 7211 | http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=265182 |
| 7212 | [TENTATIVE] |
| 7213 | - fix _rl_move_cursor_relative to correctly offset `dpos' by `woff' |
| 7214 | when there are invisible characters on lines after the second by |
| 7215 | using (_rl_screenwidth*_rl_last_v_pos) when seeing whether or not |
| 7216 | we just wrote some invisible characters. Rest of fix for bug |
| 7217 | reported in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=265182 |
| 7218 | [TENTATIVE] |
| 7219 | |
| 7220 | 12/11 |
| 7221 | ----- |
| 7222 | sig.c |
| 7223 | - reset the execution context before running the exit trap in |
| 7224 | termsig_handler |
| 7225 | |
| 7226 | general.c |
| 7227 | - set and unset terminate_immediately like interrupt_immediately in |
| 7228 | bash_tilde_expand |
| 7229 | |
| 7230 | builtins/read.def |
| 7231 | - change terminate_immediately to a counter instead of a flag, as |
| 7232 | interrupt_immediately is used |
| 7233 | |
| 7234 | lib/readline/display.c |
| 7235 | - slight change to fix from 11/27 to deal with prompts longer than a |
| 7236 | screen line where the invisible characters all appear after the |
| 7237 | line wrap. Fixes bug reported by Andreas Schwab <schwab@suse.de> |
| 7238 | |
| 7239 | builtins/{echo,printf}.def |
| 7240 | - increment terminate_immediately at entry; decrement before returning. |
| 7241 | Fix for bug reported by Ralf.Wildenhues@gmx.de |
| 7242 | |
| 7243 | 12/16 |
| 7244 | ----- |
| 7245 | subst.c |
| 7246 | - fix off-by-one error in /dev/fd version of add_fifo_list; make |
| 7247 | sure we add to totfds when it is == fd, not just when fd > totfds. |
| 7248 | Fixes bug reported by marciso@gmail.com |
| 7249 | |
| 7250 | [bash-4.0-beta2 frozen] |
| 7251 | |
| 7252 | 12/29 |
| 7253 | ----- |
| 7254 | doc/{bash.1,bashref.texi} |
| 7255 | - document more clearly that when not in Posix mode, command |
| 7256 | substitution does not inherit the -e option. From bug report from |
| 7257 | Freddy Vulto <fvulto@gmail.com> |
| 7258 | |
| 7259 | {execute_cmd,sig,builtins/evalstring}.c |
| 7260 | - sentinel variable to keep track of whether or not we're supposed to |
| 7261 | ignore the failure status of a command executed in a command |
| 7262 | substitution even if the `-e' option is set: comsub_ignore_return |
| 7263 | - increment and decrement comsub_ignore_return in execute_simple_command |
| 7264 | before calling expand_words |
| 7265 | - in parse_and_execute, if comsub_ignore_return is non-zero and the |
| 7266 | SUBSHELL_COMSUB bit is set in subshell_environment, enable the |
| 7267 | CMD_IGNORE_RETURN flag in every command executed from the passed |
| 7268 | string. Fixes problem reported by Freddy Vulto <fvulto@gmail.com> |
| 7269 | - make sure to reset comsub_ignore_return every time we throw to the |
| 7270 | top level, like executing_list flag |
| 7271 | |
| 7272 | 1/2/2009 |
| 7273 | -------- |
| 7274 | parse.y |
| 7275 | - fix to rewind_input_stream to handle case of $(...) command |
| 7276 | substitution followed by a quoted literal newline. Report and fix |
| 7277 | from Andreas Schwab <schwab@suse.de> |
| 7278 | |
| 7279 | 1/7 |
| 7280 | --- |
| 7281 | |
| 7282 | subst.c |
| 7283 | - fix match_wpattern and match_upattern to prefix a `*' to the |
| 7284 | pattern even if it starts with a `*(' (if extglob is enabled) |
| 7285 | before checking whether or not it can match anywhere in the |
| 7286 | string. Fixes bug reported by os@sernet.de. |
| 7287 | |
| 7288 | [bash-4.0-rc1 frozen] |
| 7289 | |
| 7290 | 1/9 |
| 7291 | --- |
| 7292 | locale.c |
| 7293 | - since setlocale() doesn't set errno to anything meaningful, |
| 7294 | don't include the strerror() result in the error message if |
| 7295 | it fails |
| 7296 | - make sure the error messages printed when setlocale fails are |
| 7297 | localizable |
| 7298 | |
| 7299 | 1/11 |
| 7300 | ---- |
| 7301 | lib/readline/histexpand.c |
| 7302 | - make sure that every time history_no_expand_chars is tested, we |
| 7303 | also call the history_inhibit_expansion_function if it's set. |
| 7304 | Fixes bug reported by Yang Zhang <yanghatespam@gmail.com> |
| 7305 | |
| 7306 | 1/12 |
| 7307 | ---- |
| 7308 | trap.c |
| 7309 | - make sure to call parse_and_execute with the SEVAL_RESETLINE bit |
| 7310 | set in the flags so it will reset the line number when running |
| 7311 | the trap commands. Partial fix for bug reported by |
| 7312 | peter360@fastmail.us |
| 7313 | |
| 7314 | 1/14 |
| 7315 | ---- |
| 7316 | builtins/reserved.def |
| 7317 | - document `coproc' so it can be used with `help' builtin. Pointed |
| 7318 | out by Pierre Gaston <pgas@freeshell.org> |
| 7319 | |
| 7320 | lib/sh/casemod.c |
| 7321 | - added two new flags: CASE_UPFIRST and CASE_LOWFIRST to casemod |
| 7322 | the first character of the passed string and pass the rest |
| 7323 | through unchanged. Fixes bug reported by Jan Schampera |
| 7324 | <jan.schampera@web.de> |
| 7325 | |
| 7326 | externs.h |
| 7327 | - new defines for CASE_UPFIRST and CASE_LOWFIRST |
| 7328 | |
| 7329 | subst.c |
| 7330 | - use CASE_UPFIRST for ^ and CASE_LOWFIRST for , casemod operators |
| 7331 | |
| 7332 | builtins/mapfile.def |
| 7333 | - call zreset() before calling first zgetline(), to clean out any |
| 7334 | remaining data in local buffer used by zreadc. Fixes bug |
| 7335 | reported by Pierre Gaston <pierre.gaston@gmail.com> |
| 7336 | |
| 7337 | 1/15 |
| 7338 | ---- |
| 7339 | lib/sh/zread.c |
| 7340 | - renamed zreadintr to zreadretry -- not perfect, but better |
| 7341 | - new functions: zreadintr, which just calls read so it can be |
| 7342 | interruptible, and zreadcintr, which is like zreadc but uses |
| 7343 | zreadintr to fill the buffer |
| 7344 | |
| 7345 | lib/sh/zgetline.c |
| 7346 | - in zgetline, when zread/zreadc return <= 0, make sure line is |
| 7347 | non-null before assigning to line[nr] |
| 7348 | |
| 7349 | builtins/mapfile.def |
| 7350 | - return an error right away if the supplied array variable name |
| 7351 | refers to a readonly or noassign array |
| 7352 | - set interrupt_immediately so calls to zgetline can be |
| 7353 | interrupted. Fixes bug reported by Pierre Gaston |
| 7354 | <pierre.gaston@gmail.com> |
| 7355 | - if interactive, pass the SEVAL_INTERACT and SEVAL_NOHIST flags |
| 7356 | to parse_and_execute when calling callbacks. Fixes bug reported |
| 7357 | by Pierre Gaston <pierre.gaston@gmail.com> |
| 7358 | - add `readarray' as a synonym for mapfile |
| 7359 | |
| 7360 | doc/{bash.1,bashref.texi} |
| 7361 | - document behavior of mapfile builtin adding index of array element |
| 7362 | to be assigned as additional argument to callback string. Reported |
| 7363 | by Pierre Gaston <pierre.gaston@gmail.com> |
| 7364 | - document readarray as synonym for mapfile |
| 7365 | |
| 7366 | builtins/common.c |
| 7367 | - new error function, sh_ttyerror(set), prints an error message having |
| 7368 | to do with setting or getting terminal attributes |
| 7369 | |
| 7370 | builtins/read.def |
| 7371 | - print error message if read fails to set terminal attributes |
| 7372 | |
| 7373 | 1/16 |
| 7374 | ---- |
| 7375 | execute_cmd.c |
| 7376 | - new function, coproc_reap, calls coproc_dispose if sh_coproc is |
| 7377 | marked as COPROC_DEAD |
| 7378 | - new function, cpl_reap, disposes coprocs marked as COPROC_DEAD |
| 7379 | from coproc list |
| 7380 | - change coproc_pidchk to just mark the coproc as dead instead of |
| 7381 | calling coproc_dispose, so we don't call unsafe functions from |
| 7382 | a signal handler. Fixes bug reported by Andreas Schwab |
| 7383 | <schwab@suse.de> |
| 7384 | |
| 7385 | execute_cmd.h |
| 7386 | - new extern declaration for coproc_reap |
| 7387 | |
| 7388 | command.h |
| 7389 | - new flags for c_flags member of a struct coproc |
| 7390 | |
| 7391 | {jobs,nojobs}.c |
| 7392 | - add call to coproc_reap in cleanup_dead_jobs, which will do the |
| 7393 | right queueing or blocking of SIGCHLD |
| 7394 | |
| 7395 | trap.c |
| 7396 | - modify change from 1/12 to not reset the line number when running |
| 7397 | the DEBUG and RETURN traps |
| 7398 | |
| 7399 | 1/18 |
| 7400 | ---- |
| 7401 | lib/sh/casemod.c |
| 7402 | - change default operations to work on entire passed string instead |
| 7403 | of breaking into words at non-alpha-numerics. Use new |
| 7404 | CASE_USEWORDS flag to enable by-word behavior. Fixes bug reported |
| 7405 | by Jan Schampera <jan.schampera@web.de> |
| 7406 | |
| 7407 | builtins/printf.def |
| 7408 | - in vbprintf, bracket each call to vsnprintf (which uses the args |
| 7409 | passed to vbprintf) with SH_VA_START and va_end, so we can |
| 7410 | reninitialize the argument list for each call. This is actually |
| 7411 | what the C standard requires. Fixes bug that caused printf -b |
| 7412 | to `ignore' first % format specifier if it came first in the |
| 7413 | string. Reported by David Leverton <levertond@googlemail.com> |
| 7414 | |
| 7415 | builtins/mapfile.def |
| 7416 | - start the line count at 1, since it doesn't get incremented before |
| 7417 | (or after) reading the first line, so things like |
| 7418 | `mapfile -n 5 -c 1 -C 'echo foo' array < file' work right and call |
| 7419 | the callback after the first line is read. Fixes bug reported by |
| 7420 | Pierre Gaston <pierre.gaston@gmail.com> |
| 7421 | |
| 7422 | 1/22 |
| 7423 | ---- |
| 7424 | lib/readline/complete.c |
| 7425 | - set _rl_interrupt_immediately non-zero before reading from the file |
| 7426 | system or calling an application-defined completion function |
| 7427 | |
| 7428 | lib/readline/signals.c |
| 7429 | - renamed rl_signal_handler to _rl_handle_signal; new version of |
| 7430 | rl_signal_handler that just calls _rl_handle_signal (for now) |
| 7431 | - new function _rl_signal_handler that calls _rl_handle_signal without |
| 7432 | any checking |
| 7433 | |
| 7434 | lib/readline/rlprivate.h |
| 7435 | - new extern declaration for _rl_signal_handler |
| 7436 | - new define, RL_CHECK_SIGNALS, checks whether or not _rl_caught_signal |
| 7437 | is set and calls _rl_signal_handler if so |
| 7438 | |
| 7439 | lib/readline/{bind,input,readline}.c |
| 7440 | - add RL_CHECK_SIGNALS in appropriate places |
| 7441 | |
| 7442 | lib/readline/signals.c |
| 7443 | - change rl_signal_handler to set a flag and return rather than |
| 7444 | run through the entire signal handling process. If |
| 7445 | _rl_interrupt_immediately is set, call the signal handling code |
| 7446 | right away instead of setting the flag. Initial fix for crash |
| 7447 | bug reported by Roman Rakus <rrakus@redhat.com> |
| 7448 | |
| 7449 | aclocal.m4 |
| 7450 | - new macro, BASH_TYPE_SIG_ATOMIC_T, tests for sig_atomic_t in |
| 7451 | <signal.h>, defines as int if not defined |
| 7452 | |
| 7453 | configure.in |
| 7454 | - call BASH_TYPE_SIG_ATOMIC_T |
| 7455 | - call AC_C_VOLATILE |
| 7456 | |
| 7457 | config.h.in |
| 7458 | - empty define for sig_atomic_t |
| 7459 | - empty define for volatile |
| 7460 | |
| 7461 | 1/27 |
| 7462 | ---- |
| 7463 | subst.c |
| 7464 | - audit calls to add_character and change to add_ifs_character (which |
| 7465 | quotes characters in $IFS). Affects primarily `:', `=', and `~'. |
| 7466 | Fixes bug reported by Jan Schampera <jan.schampera@web.de>; fix |
| 7467 | suggested by Stephane Chazelas <stephane_chazelas@yahoo.fr> |
| 7468 | |
| 7469 | 2/1 |
| 7470 | --- |
| 7471 | configure.in |
| 7472 | - call AC_C_RESTRICT |
| 7473 | |
| 7474 | config.h.in |
| 7475 | - add empty defintion for `restrict' |
| 7476 | |
| 7477 | pcomplete.c |
| 7478 | - use unwind_protects around call to execute_shell_function in |
| 7479 | gen_shell_function_matches to prevent data corruption if |
| 7480 | throw_to_top_level is called. Bug report and fix from |
| 7481 | werner@suse.de. |
| 7482 | |
| 7483 | execute_cmd.c |
| 7484 | - don't clamp CPU usage at 100% in print_formatted_time. Bug reported |
| 7485 | by Linda Walsh <bash@tlinx.org> |
| 7486 | |
| 7487 | 2/5 |
| 7488 | --- |
| 7489 | locale.c |
| 7490 | - in set_locale_var, set errno to 0 before calling setlocale(), and |
| 7491 | print strerror (errno) if setlocale fails and errno ends up non-zero |
| 7492 | |
| 7493 | 2/6 |
| 7494 | --- |
| 7495 | configure.in |
| 7496 | - backed out of solaris change from 10/23/2008 (adding `-z interpose' |
| 7497 | to LDFLAGS) due to solaris updates to fix a linker problem. |
| 7498 | Updatted by Serge Dussud <Serge.Dussud@Sun.COM> |
| 7499 | |
| 7500 | 2/12 |
| 7501 | ---- |
| 7502 | execute_cmd.c |
| 7503 | - change execute_connection so failure of a pipeline will cause the |
| 7504 | shell to exit if -e is on. From discussion on austin-group |
| 7505 | mailing list |
| 7506 | - change execute_command_internal so failure of a user-specified |
| 7507 | subshell will cause the shell to exit if -e is on. From discussion |
| 7508 | on austin-group mailing list |
| 7509 | |
| 7510 | 2/13 |
| 7511 | ---- |
| 7512 | doc/{bash.1,bashref.texi} |
| 7513 | - clarified description of set -e option to accurately reflect current |
| 7514 | implementation |
| 7515 | |
| 7516 | 2/19 |
| 7517 | ---- |
| 7518 | print_cmd.c |
| 7519 | - fix print_deferred_heredocs to not print a space if the separator |
| 7520 | string is null |
| 7521 | - change print_deferred_heredocs to set `was_heredoc' after printing |
| 7522 | something |
| 7523 | - change connection printing code to only print the `;' separator |
| 7524 | if we haven't just printed a here-document |
| 7525 | - change connection printing code to print any deferred here |
| 7526 | documents after the rhs of the connection. Fixes bug reported by |
| 7527 | Bo Andresen <bo.andresen@zlin.dk> |
| 7528 | |
| 7529 | [bash-4.0 frozen] |
| 7530 | |
| 7531 | 2/20 |
| 7532 | ---- |
| 7533 | |
| 7534 | [bash-4.0 released] |
| 7535 | |
| 7536 | 2/22 |
| 7537 | ---- |
| 7538 | |
| 7539 | parse.y |
| 7540 | - fix parse_comsub to not test a character for being a possible shell |
| 7541 | metacharacter if LEX_PASSNEXT flag is set. Fixes bug reported by |
| 7542 | Mike Frysinger <vapier@gentoo.org> |
| 7543 | |
| 7544 | pcomplete.c |
| 7545 | - add call to save_parser_state (accidentally dropped from patch) to |
| 7546 | gen_shell_function_matches. Fixes bug with bash_completion and |
| 7547 | file/directory completion reported by phil@Arcturus.universe |
| 7548 | |
| 7549 | Makefile.in |
| 7550 | - fix assignment to LDFLAGS_FOR_BUILD to match those in subdir |
| 7551 | Makefiles. Fixes bug reported by Mike Frysinger <vapier@gentoo.org> |
| 7552 | |
| 7553 | builtins/mapfile.def |
| 7554 | - make sure the callback quantum (-c option argument) is > 0. Fixes |
| 7555 | bug reported by Stephane Chazleas <stephane_chazelas@yahoo.fr> |
| 7556 | |
| 7557 | 2/23 |
| 7558 | ---- |
| 7559 | parse.y |
| 7560 | - fix save_token_state and restore_token_state to save and restore |
| 7561 | current_token. Fixes bug reported by Bernd Eggink |
| 7562 | <monoped@sudrala.de> |
| 7563 | |
| 7564 | builtins/exit.def |
| 7565 | - check jobs[i] before checking whether or not it's running when |
| 7566 | the checkjobs option is set and we're looking for running jobs |
| 7567 | at exit. Fixes bug reported by Mike Frysinger <vapier@gentoo.org> |
| 7568 | |
| 7569 | 2/24 |
| 7570 | ---- |
| 7571 | siglist.c |
| 7572 | - include bashintl.h for definition of _. Fixes bug reported by |
| 7573 | Greg Wooledge <wooledg@eeg.ccf.org> |
| 7574 | |
| 7575 | 2/25 |
| 7576 | ---- |
| 7577 | subst.c |
| 7578 | - new function, skip_matched_pair. Similar to skip_to_delim and |
| 7579 | the extract_XXX family |
| 7580 | - move skipsubscript here from arrayfunc.c; re-implement in terms of |
| 7581 | skip_matched_pair. Fixes bugs reported by <anmaster@tele2.se> |
| 7582 | |
| 7583 | arrayfunc.c |
| 7584 | - remove skipsubscript; moved to subst.c |
| 7585 | |
| 7586 | parse.y |
| 7587 | - change reset_parser to set current_token to '\n'. Rest of fix for |
| 7588 | bug reported by Bernd Eggink <monoped@sudrala.de>; earlier fix on |
| 7589 | 2/23 |
| 7590 | |
| 7591 | 2/26 |
| 7592 | ---- |
| 7593 | builtins/declare.def |
| 7594 | - when given something like array[x]=y (which sets making_array_special |
| 7595 | to 1), don't convert an associative array to an indexed array (line |
| 7596 | 493). Part of fix for bug reported by Pierre Gaston |
| 7597 | <pierre.gaston@gmail.com> |
| 7598 | - if offset == 0, indicating that we do not have a valid assignment, |
| 7599 | make sure any `name' containing a `[' is a valid array reference |
| 7600 | before trying to go on. Not doing this leads to creating crazy |
| 7601 | variables like `name[foo[bar]=bax'. Rest of fix for bug reported |
| 7602 | by Pierre Gaston <pierre.gaston@gmail.com> |
| 7603 | |
| 7604 | assoc.c |
| 7605 | - change assoc_to_assign to single-quote the array keys if `quoted' is |
| 7606 | non-zero. Makes things easier to read with weird characters in the |
| 7607 | key |
| 7608 | |
| 7609 | parse.y |
| 7610 | - fix parse_comsub to not set LEX_HEREDELIM when it sees "<<<". Fixes |
| 7611 | bug reported by Mike Frysinger <vapier@gentoo.org> |
| 7612 | |
| 7613 | 2/27 |
| 7614 | ---- |
| 7615 | parse.y |
| 7616 | - fix report_syntax_error to set last_command_exit_value to |
| 7617 | EX_BADUSAGE (2) instead of EX_USAGE (258), since there's nothing |
| 7618 | that will translate that to something < 128 before reading the |
| 7619 | next command. Partial fix for bug reported by Mike Frysinger |
| 7620 | <vapier@gentoo.org> |
| 7621 | |
| 7622 | sig.c |
| 7623 | - fix sigint_sighandler to set last_command_exit_value to sig+128 |
| 7624 | before calling throw_to_top_level. Rest of fix for bug reported |
| 7625 | by Mike Frysinger <vapier@gentoo.org> |
| 7626 | |
| 7627 | jobs.c |
| 7628 | - if fork() fails, set last_command_exit_value to 126 before calling |
| 7629 | throw_to_top_level |
| 7630 | |
| 7631 | execute_cmd.c |
| 7632 | - defer calling unlink_fifo_list in parent branch of |
| 7633 | execute_disk_command if we're executing in a shell function |
| 7634 | - change execute_function to call unlink_fifo_list before returning |
| 7635 | if it's the top-level function |
| 7636 | |
| 7637 | 3/2 |
| 7638 | --- |
| 7639 | builtins/read.def |
| 7640 | - if read times out, make sure we remove the top element from the |
| 7641 | unwind-protect stack (the free of input_string) and run the rest, |
| 7642 | to reset the tty and readline and alarm states. Then we jump to |
| 7643 | assigning the variables to any partial input. Fixes bug reported |
| 7644 | by Christopher F. A. Johnson <cfajohnson@gmail.com> |
| 7645 | |
| 7646 | 3/3 |
| 7647 | --- |
| 7648 | parse.y |
| 7649 | - break comment checking code into a common COMMENT_BEGIN define so |
| 7650 | we can use it in multiple places in parse_comsub |
| 7651 | - in parse_comsub, don't alter the LEX_RESWDOK flag if we read a |
| 7652 | `#' and we're checking comments, even though `#' isn't a `shell break' |
| 7653 | character. Fixes bug reported by Mike Frysinger <vapier@gentoo.org> |
| 7654 | |
| 7655 | braces.c |
| 7656 | - in expand_seqterm, decrease the total length of the rhs by the length |
| 7657 | of any (optional) increment, so we don't end up with unwanted zero |
| 7658 | padding because the rhs length is wrong. Fixes bug reported by |
| 7659 | Carl Albing <albing@comcast.net> |
| 7660 | |
| 7661 | 3/4 |
| 7662 | --- |
| 7663 | doc/{bash.1,bashref.texi} |
| 7664 | - changes to clean up some of the language describing the effects of |
| 7665 | terminal process groups on the ability to read from and write to |
| 7666 | the terminal |
| 7667 | |
| 7668 | 3/5 |
| 7669 | --- |
| 7670 | support/shobj-conf |
| 7671 | - add host_vendor to string tested in switch to handle things like |
| 7672 | gentoo/freebsd |
| 7673 | - beginning with version 7, FreeBSD no longer has /usr/bin/objformat |
| 7674 | or a.out binaries and libraries. It's always ELF. Fix from |
| 7675 | Timothy Redaelli <drizzt@gentoo.org> |
| 7676 | |
| 7677 | parse.y |
| 7678 | - in parse_comsub, allow comments if we are ready to read a |
| 7679 | reserved word (tflags & LEX_RESWDOK), haven't read anything from |
| 7680 | one yet (lex_rwlen == 0) and the current character is a '#' |
| 7681 | |
| 7682 | 3/6 |
| 7683 | --- |
| 7684 | parse.y |
| 7685 | - new lex flag for parse_comsub: LEX_INWORD. Turn it off when |
| 7686 | we see a shell break character; turn it on or keep it on when |
| 7687 | not a break character. Keep track of word length (reset to 0 |
| 7688 | when we turn on LEX_INWORD when it was off). |
| 7689 | - don't use COMMENT_BEGIN in parse_comsub any more; test |
| 7690 | whether or not LEX_INWORD is set and lex_wlen == 0 in addition |
| 7691 | to tests for LEX_RESWDOK and lex_rwlen. Comments are valid |
| 7692 | when at the start of a word |
| 7693 | - move LEX_PASSNEXT code to the top of parse_comsub, so the rest |
| 7694 | of the function doesn't have to check for the flag at different |
| 7695 | places |
| 7696 | |
| 7697 | 3/7 |
| 7698 | --- |
| 7699 | parse.y |
| 7700 | - in parse_comsub, when looking for a reserved word (LEX_RESWDOK |
| 7701 | non-zero), and in a case statement, we can see either an esac |
| 7702 | or a pattern list. We handle an esac separately. We should |
| 7703 | turn off LEX_RESWDOK if we see anything but a newline, since |
| 7704 | we'll be reading a pattern list. Other part of fix for bug |
| 7705 | reported by Mike Frysinger <vapier@gentoo.org> (rest of fix |
| 7706 | on 3/3) |
| 7707 | |
| 7708 | 3/10 |
| 7709 | ---- |
| 7710 | {.,lib/readline}/doc/fdl.texi |
| 7711 | - updated to FDL version 1.3 |
| 7712 | |
| 7713 | 3/11 |
| 7714 | ---- |
| 7715 | parse.y |
| 7716 | - when using the |& construct with a simple command preceding it, add |
| 7717 | the implicit redirection to the simple command's redirection list, |
| 7718 | since the redirections associated with the command struct are never |
| 7719 | executed. Fixes bug reported by Matt Zyzik <Matt@ice.filescope.com> |
| 7720 | |
| 7721 | 3/14 |
| 7722 | ---- |
| 7723 | execute_cmd.c |
| 7724 | - in execute_case_command, if ;& is used with no following pattern |
| 7725 | list, make sure we don't reference a NULL pointer. Bug report and |
| 7726 | fix from Clark Jian Wang <dearvoid@gmail.com> |
| 7727 | |
| 7728 | parse.y |
| 7729 | - make parser_state global, so other files can use it |
| 7730 | - command_word_acceptable now returns non-zero if PST_REDIRLIST bit |
| 7731 | set in parser_state, so we accept assignment statements and |
| 7732 | perform alias expansion. Fix for bug reported by Vincent |
| 7733 | Lefevre <vincent@vinc17.org> (2/24/2009) |
| 7734 | |
| 7735 | parser.h |
| 7736 | - add PST_REDIRLIST flag, notes that parser is currently parsing a |
| 7737 | redirection list preceding a simple command |
| 7738 | |
| 7739 | make_cmd.c |
| 7740 | - make_simple_command now turns on PST_REDIRLIST in parser_state when |
| 7741 | creating a new simple command |
| 7742 | - make_simple_command turns off PST_REDIRLIST in parser_state if it |
| 7743 | adds a non-redirection to the command it's building |
| 7744 | - clean_simple_command turns off PST_REDIRLIST to make sure it's off |
| 7745 | |
| 7746 | subst.c |
| 7747 | - new flag for param_expand: PF_IGNUNBOUND, means to not exit if the |
| 7748 | variable is unbound even if `set -u' is enabled |
| 7749 | - change param_expand to not call err_unboundvar if the `pflags' |
| 7750 | argument has the PF_IGNUNBOUND bit set |
| 7751 | - parameter_brace_expand_word now takes an extra `pflags' argument to |
| 7752 | pass down to param_expand; changed callers |
| 7753 | - changed call to parameter_brace_expand_word in parameter_brace_expand |
| 7754 | to add PF_IGNUNBOUND flag so ${@:-foo} doesn't cause the shell to |
| 7755 | exit (but ${@} does) when there are no positional parameters. Fixes |
| 7756 | Debian bug 519165 from Dan Jacobson <jidanni@jidanni.org> |
| 7757 | |
| 7758 | parse.y |
| 7759 | - add code to parse_comsub to allow here-documents within command |
| 7760 | substitutions to be delimited by the closing right paren, with the |
| 7761 | usual warning about here documents delimited by EOF on execution. |
| 7762 | Fixes regression from bash-3.2 noted in Red Hat bugzilla 485664 by |
| 7763 | Ralf Corsepius |
| 7764 | |
| 7765 | 3/15 |
| 7766 | ---- |
| 7767 | subst.c |
| 7768 | - string_list_dollar_at now checks for Q_PATQUOTE, which getpattern() |
| 7769 | uses to denote Q_DOUBLE_QUOTES (?). Fixes a=abcd echo "${a#$*}" |
| 7770 | when IFS= and args are `a b' as noted by Stephane Chazleas |
| 7771 | <stephane_chazelas@yahoo.fr> |
| 7772 | - param_expand now checks for Q_PATQUOTE and treats it identically |
| 7773 | to Q_DOUBLE_QUOTES when expanding $* |
| 7774 | - expand_word_unsplit now sets W_NOSPLIT in the flags of the word it |
| 7775 | passes to expand_word_internal if $IFS is NULL |
| 7776 | - expand_word_leave_quoted now sets expand_no_split_dollar_star and |
| 7777 | the W_NOSPLIT bit in the word flags before calling |
| 7778 | expand_word_internal if $IFS is NULL, just like expand_word_unsplit. |
| 7779 | It is now virtually identical to expand_word_unsplit. Rest of fix for |
| 7780 | problems reported by Stephane Chazleas <stephane_chazelas@yahoo.fr> |
| 7781 | |
| 7782 | 3/20 |
| 7783 | ---- |
| 7784 | trap.c |
| 7785 | - in _run_trap_internal, don't pass SEVAL_RESETLINE as flag to |
| 7786 | parse_and_execute if running the ERR trap (further modification |
| 7787 | of change from 1/12) |
| 7788 | |
| 7789 | execute_cmd.c |
| 7790 | - in execute_simple_command, set line_number to line_number_for_err_trap |
| 7791 | before calling run_error_trap. Part of fix for bug reported by |
| 7792 | Brian J. Murrell <brian@interlinx.bc.ca> |
| 7793 | - change other places calling run_error_trap() to set and use |
| 7794 | line_number_for_err_trap |
| 7795 | |
| 7796 | 3/21 |
| 7797 | ---- |
| 7798 | builtins/fc.def |
| 7799 | - Even though command substitution through parse_and_execute turns |
| 7800 | off remember_on_history, command substitution in a shell when |
| 7801 | set -o history has been enabled (interactive or not) should use it |
| 7802 | in the last_hist calculation as if it were on. Same calculation |
| 7803 | in fc_gethnum and fc_builtin. Fixes bug reported by |
| 7804 | Ian Kelling <smallnow@gmail.com> |
| 7805 | |
| 7806 | sig.c |
| 7807 | - change termsig_sighandler to terminate immediately if it gets called |
| 7808 | twice with the same signal before termsig_handler gets called. This |
| 7809 | fixes the `looping on SIGSEGV' phenomenon reported by Linux users. |
| 7810 | |
| 7811 | parse.y |
| 7812 | - in read_secondary_line, don't try to add NULL lines to the history |
| 7813 | list. Report and patch from Lubomir Rintel <lkundrak@v3.sk> |
| 7814 | |
| 7815 | 3/22 |
| 7816 | ---- |
| 7817 | sig.c |
| 7818 | - Augment change from 3/21 with explicit check for signals we *don't* |
| 7819 | want this to happen for. Patch from Lubomir Rintel <lkundrak@v3.sk> |
| 7820 | |
| 7821 | 3/28 |
| 7822 | ---- |
| 7823 | array.c |
| 7824 | - in array_reference, return NULL immediately if the desired index |
| 7825 | is larger than the maximum |
| 7826 | - add cache of last array referenced and last array element referenced; |
| 7827 | use in array_reference to optimize case of sequential access; |
| 7828 | invalidated where necessary in other functions |
| 7829 | - array_rshift needs to set max_index to 0 if the array was empty |
| 7830 | before shifting in the new element 0 |
| 7831 | - array_shift needs to use element_index(a->head->prev) to set the |
| 7832 | max_index, not a simple decrement, to deal with sparse arrays |
| 7833 | |
| 7834 | 4/1 |
| 7835 | --- |
| 7836 | bashline.c |
| 7837 | - in bash_dequote_filename, return right away after copying the |
| 7838 | backslash if the last character in the string to be expanded |
| 7839 | is a backslash. The old code copied an extra NUL and overwrote |
| 7840 | the bounds checking. Fixes bug reported by Shawn Starr |
| 7841 | https://bugzilla.redhat.com/show_bug.cgi?id=488649 |
| 7842 | |
| 7843 | 4/3 |
| 7844 | --- |
| 7845 | subst.c |
| 7846 | - in pat_subst.c, make sure to copy one character from the input |
| 7847 | string in the case of a null pattern match, since we substitute |
| 7848 | on the null match and then increment past the current character. |
| 7849 | Not doing this means that each character of the original string |
| 7850 | is replaced because of the null matches. Fixes debian bug |
| 7851 | reported bhy Louis-David Mitterrand <ldm@apartia.fr> |
| 7852 | http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=522160 |
| 7853 | |
| 7854 | lib/sh/winsize.c |
| 7855 | - incorporate contents of readline/rlwinsize.h to get all the various |
| 7856 | system dependencies right when trying to find TIOCGWINSZ. Fixes |
| 7857 | bug reported by Dan Price <dp@eng.sun.com> |
| 7858 | |
| 7859 | 4/6 |
| 7860 | --- |
| 7861 | doc/{bash.1,bashref.texi} |
| 7862 | - fix description of conditional `>' and `<' to remove statement that |
| 7863 | the comparison pays attention to the current locale -- it has |
| 7864 | always used strcmp |
| 7865 | |
| 7866 | lib/glob/glob.c |
| 7867 | - fixed a bug in glob_filename that caused glob_dir_to_array to be |
| 7868 | called to prepend a (globbed) directory name onto the results from |
| 7869 | glob_vector, which, if we were globbing `**', glob_vector has |
| 7870 | already done. Effect is to have the directory name(s) on there |
| 7871 | twice. Fixes "dir*/**" bug reported by Matt Zyzik |
| 7872 | <Matt@ice.filescope.com> |
| 7873 | |
| 7874 | 4/8 |
| 7875 | --- |
| 7876 | doc/{bash.1,bashref.texi} |
| 7877 | - fix short syntax summary of for command to reflect full bash |
| 7878 | syntax (which is a superset of Posix syntax). Fixes bug reported |
| 7879 | by Reuben Thomas <rrt@sc3d.org> |
| 7880 | |
| 7881 | 4/10 |
| 7882 | ---- |
| 7883 | {expr,subst}.c |
| 7884 | - make sure last_command_exit_value is set to EXECUTION_FAILURE |
| 7885 | before calling err_unboundvar, in case set -e is enabled and |
| 7886 | the shell exits from there. Fixes bug reported by Freddy |
| 7887 | Vulto <fvulto@gmail.com> and Piotr Zielinski |
| 7888 | <piotr.zielinski@gmail.com> |
| 7889 | |
| 7890 | 4/11 |
| 7891 | ---- |
| 7892 | jobs.c |
| 7893 | - in restore_pipeline, don't call discard_pipeline with a NULL |
| 7894 | argument |
| 7895 | |
| 7896 | trap.c |
| 7897 | - in run_debug_trap, make sure to save and restore the pipeline, |
| 7898 | pipeline_pgrp, and state of the pipeline around running the debug |
| 7899 | trap, then remove any job created by running the debug trap from |
| 7900 | the jobs table when it completes. Fixes for two bugs reported |
| 7901 | by lex@upc.ua |
| 7902 | |
| 7903 | 4/12 |
| 7904 | ---- |
| 7905 | lib/readline/signals.c |
| 7906 | - new functions to block and release SIGWINCH like the SIGINT blocking |
| 7907 | and releasing functions |
| 7908 | |
| 7909 | lib/readline/rlprivate.h |
| 7910 | - new extern declarations for _rl_block_sigwinch and _rl_release_sigwinch |
| 7911 | |
| 7912 | lib/readline/display.c |
| 7913 | - block SIGWINCH during redisplay like SIGINT. Should fix bug reported |
| 7914 | by Nicolai Lissner <nlissne@linux01.org> |
| 7915 | |
| 7916 | 4/13 |
| 7917 | ---- |
| 7918 | lib/readline/readline.h |
| 7919 | - new readline state variable: RL_STATE_REDISPLAYING |
| 7920 | |
| 7921 | lib/readline/display.c |
| 7922 | - in rl_redisplay, don't block SIGWINCH during redisplay; just set |
| 7923 | the REDISPLAYING state |
| 7924 | |
| 7925 | lib/readline/terminal.c |
| 7926 | - in rl_resize_terminal, don't call rl_redisplay_after_sigwinch() if |
| 7927 | we're already in the middle of redisplay (RL_STATE_REDISPLAYING). |
| 7928 | Fix for bug reported by Nicolai Lissner <nlissne@linux01.org> |
| 7929 | |
| 7930 | 4/15 |
| 7931 | ---- |
| 7932 | parse.y |
| 7933 | - fix parse_comsub to add check for \n when seeing whether the current |
| 7934 | character can change to a state where a reserved word is legal, |
| 7935 | since it is not a shell meta character. Fixes bug reported by |
| 7936 | Bernd Eggink <monoped@sudrala.de>. |
| 7937 | |
| 7938 | 4/17 |
| 7939 | ---- |
| 7940 | jobs.c |
| 7941 | - new functions to save and restore the pgrp_pipe (since there's only |
| 7942 | one): save_pgrp_pipe and restore_pgrp_pipe |
| 7943 | |
| 7944 | trap.c |
| 7945 | - run_debug_trap now saves and restores the pgrp_pipe before and |
| 7946 | after calling the debug trap |
| 7947 | - run_debug_trap now makes sure the terminal is owned by the pipeline |
| 7948 | pgrp after the debug trap runs. Rest of fix for bug reported by |
| 7949 | Oleksly Melnyk <o.melnyk@upc.ua> (lex@upc.ca) |
| 7950 | |
| 7951 | 4/19 |
| 7952 | ---- |
| 7953 | include/posixselect.h |
| 7954 | - new include file, encapsulates select(2) includes and defines for |
| 7955 | bash and readline. Inspired by patch from Mike Frysinger |
| 7956 | <vapier@gentoo.org> |
| 7957 | |
| 7958 | lib/sh/input_avail.c |
| 7959 | - include "posixselect.h" |
| 7960 | |
| 7961 | lib/readline/{input,parens}.c |
| 7962 | - include "posixselect.h" instead of using inline includes |
| 7963 | - use new USEC_TO_TIMEVAL define to make sure that values for timeouts |
| 7964 | greater than one second are handled properly |
| 7965 | |
| 7966 | lib/sh/fpurge.c |
| 7967 | - updated implementation, taken from gnulib |
| 7968 | |
| 7969 | 4/21 |
| 7970 | ---- |
| 7971 | lib/glob/glob.c |
| 7972 | - in finddirs, don't try to free a return value of glob_error_return |
| 7973 | from glob_vector. Bug and fix from werner@suse.de |
| 7974 | |
| 7975 | lib/readline/signals.c |
| 7976 | - in rl_echo_signal_char, check that SIGQUIT and SIGTSTP are defined |
| 7977 | before trying to use them. Bug report and fix from Volker Grabsch |
| 7978 | <vog@notjusthosting.com> |
| 7979 | |
| 7980 | 4/24 |
| 7981 | ---- |
| 7982 | aclocal.m4 |
| 7983 | - add conditional inclusion of <stdint.h> to BASH_CHECK_TYPE |
| 7984 | |
| 7985 | bashtypes.h,lib/sh/strto[iu]max.c |
| 7986 | - include <stdint.h> if present for any existing declaration of |
| 7987 | intmax_t and uintmax_t. Fixes Interix problem reported by |
| 7988 | Markus Duft <mduft@gentoo.org> |
| 7989 | |
| 7990 | lib/sh/strindex.c,externs.h,builtins/common.h |
| 7991 | - renamed strindex to strcasestr to agree with other implementations |
| 7992 | (e.g., BSD, MacOS X, gnulib); changed callers |
| 7993 | |
| 7994 | lib/sh/{strindex.c,Makefile.in},Makefile.in |
| 7995 | - renamed strindex.c to strcasestr.c |
| 7996 | |
| 7997 | configure.in |
| 7998 | - add strcasestr to call to AC_REPLACE_FUNCS, take advantage of |
| 7999 | existing libc implementations |
| 8000 | |
| 8001 | config.h.in |
| 8002 | - add define for HAVE_STRCASESTR |
| 8003 | |
| 8004 | lib/sh/mbscmp.c |
| 8005 | - fix mbscmp to return correct values when the strings do not contain |
| 8006 | valid multibyte characters. Ideas from gnulib |
| 8007 | |
| 8008 | xstrchr.c |
| 8009 | - only compare current character against C if mblength == 1 |
| 8010 | |
| 8011 | {shell,variables}.c |
| 8012 | - changed some xstrchr calls back to strchr when the arguments cannot |
| 8013 | contain multibyte characters |
| 8014 | |
| 8015 | lib/sh/{xstrchr.c,Makefile.in},Makefile.in |
| 8016 | - renamed xstrchr to mbschr; renamed file to mbschr.c |
| 8017 | |
| 8018 | aclocal.m4 |
| 8019 | - change BASH_CHECK_MULTIBYTE to use AC_REPLACE_FUNCS(mbschr) |
| 8020 | |
| 8021 | externs.h |
| 8022 | - extern declarations for mbscmp and mbschr, conditional on the usual |
| 8023 | HAVE_MBSCMP and HAVE_MBSCHR defines |
| 8024 | |
| 8025 | general.h,{alias,arrayfunc,bashline,general,execute_cmd,subst}.c |
| 8026 | - changed calls to xstrchr to mbschr |
| 8027 | |
| 8028 | doc/bash.1 |
| 8029 | - use `pathname expansion' consistently, not `filename expansion' or |
| 8030 | `filename generation' |
| 8031 | |
| 8032 | doc/bashref.texi |
| 8033 | - use the phrase `filename expansion' consistently (since this is |
| 8034 | what the Gnu people prefer) instead of `pathname expansion' or |
| 8035 | `filename generation' |
| 8036 | |
| 8037 | aclocal.m4,config.h.in |
| 8038 | - check for mbscasecmp in BASH_CHECK_MULTIBYTE, define HAVE_MBSCASECMP |
| 8039 | if found |
| 8040 | |
| 8041 | lib/sh/{mbscasecmp.c,Makefile.in} |
| 8042 | - new file, case-insensitive multibyte string comparison |
| 8043 | |
| 8044 | externs.h |
| 8045 | - extern declaration for mbscasecmp |
| 8046 | |
| 8047 | 4/25 |
| 8048 | ---- |
| 8049 | lib/readline/display.c |
| 8050 | - in _rl_move_cursor_relative, don't adjust dpos by woff if it's |
| 8051 | already less than woff (don't want it less than 0) |
| 8052 | - in _rl_move_cursor_relative, short-circuit right away if the cursor |
| 8053 | is at columns 0 and `new' is 0 (doesn't matter if it's a multibyte |
| 8054 | locale or not, or whether there are invisible chars in the prompt) |
| 8055 | - in _rl_move_cursor_relative, go ahead and adjust dpos if |
| 8056 | prompt_physical_chars >= _rl_screenwidth (previous check was just > ) |
| 8057 | Fixes bug reported by Andreas Schwab <schwab@linux-m68k.org> |
| 8058 | |
| 8059 | 4/28 |
| 8060 | ---- |
| 8061 | lib/glob/glob.c |
| 8062 | - in glob_vector, don't add an empty pathname ("") if we're adding the |
| 8063 | currect directory to the dirlist and GX_NULLDIR is set -- we can just |
| 8064 | ignore it, since the passed directory name (".") was created by |
| 8065 | the caller. Fixes bug reported by Matt Zyzik <matt.zyzik@nyu.edu> |
| 8066 | |
| 8067 | 5/5 |
| 8068 | --- |
| 8069 | subst.c |
| 8070 | - make expansion of $@ and $* when set -u is in effect and there are |
| 8071 | no positional parameters be a non-fatal error. This is the |
| 8072 | consensus of the austin group, though it is not historical practice. |
| 8073 | Message from Geoff Clare <20090505091501.GA10097@squonk.masqnet> of |
| 8074 | 5 May 2009 and http://austingroupbugs.net/view.php?id=155 |
| 8075 | |
| 8076 | |
| 8077 | 5/20 |
| 8078 | ---- |
| 8079 | lib/glob/glob.c |
| 8080 | - tentative fix to glob_filename to compensate for glob_vector putting |
| 8081 | null pathname at front of result vector when dflags&GX_NULLDIR. |
| 8082 | Current fix manually removes empty string element from front of |
| 8083 | result vector; a better fix would be to use a flag so glob_vector |
| 8084 | doesn't add it at all. Augments patch from 4/28, which appears to |
| 8085 | have broken some things. Fixes bug reported by Matt Zyzik |
| 8086 | <matt.zyzik@nyu.edu> |
| 8087 | |
| 8088 | 5/22 |
| 8089 | ---- |
| 8090 | |
| 8091 | lib/glob/glob.c |
| 8092 | - better fix for glob_filename; supersedes patch of 5/20. Now the |
| 8093 | code does not set GX_ADDCURDIR if directory_len == 0 and the |
| 8094 | function has not been called recursively ((flags & GX_ALLDIRS) == 0). |
| 8095 | Better fix for bug reported by Matt Zyzik <matt.zyzik@nyu.edu> |
| 8096 | |
| 8097 | Makefile.in |
| 8098 | - fix build race condition that occurs in some makes caused by |
| 8099 | libreadline.a and libhistory.a containing some of the same files |
| 8100 | (e.g., xmalloc.o) and conflicting when trying to build both at |
| 8101 | the same time. Reported by Mike Frysinger <vapier@gentoo.org> |
| 8102 | |
| 8103 | 5/25 |
| 8104 | ---- |
| 8105 | lib/readline/vi_mode.c |
| 8106 | - fix _rl_vi_initialize_line so that the loop counter is not |
| 8107 | unsigned (it doesn't matter, but it eliminates a compiler warning). |
| 8108 | Bug reported by Dave Caroline <dave.thearchivist@gmail.com> |
| 8109 | |
| 8110 | 5/26 |
| 8111 | ---- |
| 8112 | doc/{bash.1,bashref.texi} |
| 8113 | - add text to the description of array variables making it clear |
| 8114 | that an array variable is not considered set until a subscript |
| 8115 | has been assigned a value |
| 8116 | |
| 8117 | 5/29 |
| 8118 | ---- |
| 8119 | lib/readline/text.c |
| 8120 | - fix rl_change_case to handle case where mbrtowc doesn't find a |
| 8121 | valid multibyte character |
| 8122 | |
| 8123 | lib/readline/vi_mode.c |
| 8124 | - fix _rl_vi_change_mbchar_case to handle case where mbrtowc doesn't |
| 8125 | find a valid multibyte character |
| 8126 | |
| 8127 | lib/sh/casemod.c |
| 8128 | - fix sh_modcase to handle case where mbrtowc doesn't find a valid |
| 8129 | multibyte character |
| 8130 | |
| 8131 | lib/readline/mbutil.c |
| 8132 | - fix _rl_find_next_mbchar_internal to not call mbrtowc at the end of |
| 8133 | the string, since implementations return different values -- just |
| 8134 | break the loop immediately |
| 8135 | |
| 8136 | lib/readline/display.c |
| 8137 | - fix rl_redisplay to make same sort of cursor position adjustments |
| 8138 | based on multibyte locale and _rl_last_c_pos when performing |
| 8139 | horizontal scrolling rather than line wrapping. Probably still |
| 8140 | more to do. Fixes bug reported by jim@jim.sh |
| 8141 | |
| 8142 | 6/5 |
| 8143 | --- |
| 8144 | doc/{bash.1,bashref.texi} |
| 8145 | - added some more explanation of the inheritance of the ERR trap at |
| 8146 | the suggestion of Thomas Pospisek <tpo@sourcepole.ch> |
| 8147 | |
| 8148 | findcmd.c |
| 8149 | - use eaccess(2) if available in file_status to take other file |
| 8150 | access mechanisms such as ACLs into account. Patch supplied |
| 8151 | by werner@suse.de |
| 8152 | |
| 8153 | 6/12 |
| 8154 | ---- |
| 8155 | xmalloc.c |
| 8156 | - also calculate lowest brk() value the first time xmalloc/xrealloc |
| 8157 | (and their sh_ counterparts) are called |
| 8158 | - error messages consolidated into a single function (allocerr/ |
| 8159 | sh_allocerr) to avoid string duplication |
| 8160 | |
| 8161 | 6/16 |
| 8162 | ---- |
| 8163 | variables.c |
| 8164 | - changes to allow variables.c to be compiled if ALIAS is not defined. |
| 8165 | Bug and fix from John Gatewood Ham <uraphalinuxserver@gmail.com> |
| 8166 | |
| 8167 | lib/sh/getcwd.c |
| 8168 | - fix so systems defining BROKEN_DIRENT_D_INO have the necessary |
| 8169 | defines. Fix from Jay Krell <jay.krell@cornell.edu> |
| 8170 | |
| 8171 | configure.in |
| 8172 | - add -D_ALL_SOURCE to interix CFLAGS for struct timezone definition. |
| 8173 | Bug and fix from John Gatewood Ham <uraphalinuxserver@gmail.com> |
| 8174 | |
| 8175 | 6/29 |
| 8176 | ---- |
| 8177 | variables.c |
| 8178 | - change initialize_shell_variables to add environment variables with |
| 8179 | invalid names to the variables hash table, but marking them as |
| 8180 | invisible and imported |
| 8181 | - new function, export_environment_candidate. Used when creating the |
| 8182 | export environment for commands to include variables with invalid |
| 8183 | names inherited from the initial environment. Apparently this |
| 8184 | behavior is widespread |
| 8185 | - change make_var_export_array to use export_environment_candidate |
| 8186 | rather than visible_and_exported to test variables for inclusion |
| 8187 | in the export environment |
| 8188 | |
| 8189 | 7/1 |
| 8190 | --- |
| 8191 | builtins/read.def |
| 8192 | - fix a memory leak where the number of fields is not the same as |
| 8193 | the number of variables passed to `read'. Bug report from |
| 8194 | werner@suse.de |
| 8195 | |
| 8196 | builtins/command.def |
| 8197 | - move section of code that sets PATH from -p option before the |
| 8198 | verbose-handling section, so command -v and command -V honor |
| 8199 | the PATH set by command -p. Bug report and fix from |
| 8200 | ohki@gssm.otsuka.tsukuba.ac.jp |
| 8201 | |
| 8202 | 7/9 |
| 8203 | --- |
| 8204 | subst.c |
| 8205 | - change brace_expand_word_list to defer brace expansion on compound |
| 8206 | array assignments that are arguments to builtins like `declare', |
| 8207 | deferring the expansion until the assignment statement is processed. |
| 8208 | Fixes inconsistency reported by agriffis@n01se.net |
| 8209 | |
| 8210 | 7/16 |
| 8211 | ---- |
| 8212 | bashline.c |
| 8213 | - fix bash_execute_unix_command to set rl_point correctly based on |
| 8214 | READLINE_POINT. The old method of using save_point will not |
| 8215 | work because maybe_make_readline_line will change rl_point. Bug |
| 8216 | reported by Henning Bekel <h.bekel@googlemail.com> |
| 8217 | |
| 8218 | trap.c |
| 8219 | - fix _run_trap_internal and run_pending_traps to save and restore |
| 8220 | value of subst_assign_varlist so the dispose_words on it doesn't |
| 8221 | leave dangling pointers after the trap handler runs. Fixes bug |
| 8222 | reported by Marc Herbert <marc.herbert@gmail.com> |
| 8223 | |
| 8224 | 7/22 |
| 8225 | ---- |
| 8226 | subst.c |
| 8227 | - fix off-by-one error in pos_params when computing positional |
| 8228 | parameters beginning with index 0. Bug and fix from Isaac Good |
| 8229 | <isaacgood@gmail.com> |
| 8230 | |
| 8231 | 7/24 |
| 8232 | ---- |
| 8233 | lib/readline/display.c |
| 8234 | - add code to _rl_move_cursor_relative and _rl_col_width to short- |
| 8235 | circuit a few special cases: prompt string and prompt string plus |
| 8236 | line contents, both starting from 0. Saves a bunch of calls to |
| 8237 | multibyte character functions using already-computed information. |
| 8238 | As a side effect, fixes bug reported by Lasse Karkkainen |
| 8239 | <tronic+8qug@trn.iki.fi> |
| 8240 | |
| 8241 | subst.c |
| 8242 | - fixed a problem in split_at_delims that could leave *cwp set to -1 |
| 8243 | if the line ends in IFS whitespace and SENTINEL is one of those |
| 8244 | whitespace characters. Fixes problem with setting COMP_CWORD for |
| 8245 | programmable completion reported by Ville Skytta <ville.skytta@iki.fi> |
| 8246 | |
| 8247 | bashline.c |
| 8248 | - change bash_execute_unix_command to clear the current line (if the |
| 8249 | terminal supplies the "ce" attribute) instead of moving to a new |
| 8250 | line. Inspired by report from Henning Bekel <h.bekel@googlemail.com> |
| 8251 | |
| 8252 | builtins/printf.def |
| 8253 | - changes to allow printf -v var to assign to array indices, the way |
| 8254 | the read builtin can. Suggested by Christopher F. A. Johnson |
| 8255 | <cfajohnson@gmail.com> |
| 8256 | |
| 8257 | lib/readline/complete.c |
| 8258 | - fix rl_old_menu_complete and rl_menu_complete to appropriately set |
| 8259 | and unset RL_STATE_COMPLETING while generating the list of matches. |
| 8260 | Fixes debian bug #538013 reported by Jerome Reybert |
| 8261 | <jreybert@gmail.com> |
| 8262 | |
| 8263 | 7/25 |
| 8264 | ---- |
| 8265 | execute_cmd.c |
| 8266 | - change execute_builtin to temporarily turn off and restore the ERR |
| 8267 | trap for the eval/source/command builtins in the same way as we |
| 8268 | temporarily disable and restore the setting of the -e option. |
| 8269 | Fixes bug reported by Henning Garus <henning.garus@googlemail.com> |
| 8270 | |
| 8271 | 7/27 |
| 8272 | ---- |
| 8273 | shell.c |
| 8274 | - add fflush(stdout) and fflush(stderr) to exit_shell before closing |
| 8275 | any file descriptors at exit time (e.g., coproc pipes) |
| 8276 | |
| 8277 | 7/30 |
| 8278 | ---- |
| 8279 | lib/readline/complete.c |
| 8280 | - new function rl_backward_menu_complete, just passes negative count |
| 8281 | argument to rl_menu_complete |
| 8282 | - change rl_menu_complete to act appropriately if rl_last_command is |
| 8283 | rl_backward_menu_complete, so we can cycle forward and backward |
| 8284 | through the list of completions |
| 8285 | |
| 8286 | lib/readline/doc/{readline.3,rluser.texi},doc/bash.1 |
| 8287 | - document new "menu-complete-backward" bindable readline function. |
| 8288 | Suggested by Jason Spiro <jasonspiro04@gmail.com> |
| 8289 | |
| 8290 | lib/readline/vi_keymap.c |
| 8291 | - add binding of C-n to menu-complete and C-p to menu-complete-backward |
| 8292 | in vi-insert keymap, as suggested by Jason Spiro |
| 8293 | <jasonspiro04@gmail.com> |
| 8294 | |
| 8295 | pcomplete.c |
| 8296 | - fixed a bug in programmable_completions: the options it returned from |
| 8297 | the compspec it found were set before generating the completions, |
| 8298 | which meant that any changes made by "compopt" were overridden and |
| 8299 | only in effect for the duration of the executing shell function |
| 8300 | rather than the entire completion. Fixes bug reported by Ville |
| 8301 | Skytta <ville.skytta@iki.fi> |
| 8302 | |
| 8303 | 7/31 |
| 8304 | ---- |
| 8305 | lib/readline/keymaps.c |
| 8306 | - fixed memory leak in rl_discard_keymap by freeing storage associated |
| 8307 | with hierarchical keymaps |
| 8308 | - new convenience function, rl_free_keymap, that calls rl_discard_keymap |
| 8309 | and frees the keymap passed as an argument |
| 8310 | |
| 8311 | lib/readline/util.c |
| 8312 | - new bindable keymap function, _rl_null_function, to be used internally |
| 8313 | |
| 8314 | lib/readline/rlprivate.h |
| 8315 | - extern declaration for _rl_null_function |
| 8316 | |
| 8317 | lib/readline/bind.c |
| 8318 | - fix rl_generic_bind in the case where we are trying to override a |
| 8319 | keymap with a null function (e.g., when trying to unbind it). We |
| 8320 | can't use a NULL function pointer in ANYOTHERKEY since that's |
| 8321 | indistinguishable from the keymap not having been overridden at all. |
| 8322 | We use _rl_null_function instead, which simply does nothing. We |
| 8323 | could add an rl_ding to it later. Fixes problem with hitting ESC |
| 8324 | repeatedly while in vi command mode reported by James Rowell |
| 8325 | <jrjimmy801-misc1@yahoo.com> |
| 8326 | |
| 8327 | builtins/bind.def |
| 8328 | - call rl_bind_keyseq instead of rl_set_key for -r option |
| 8329 | |
| 8330 | lib/readline/readline.c |
| 8331 | - Set vi_movement_keymap[ESC] to _rl_null_function after binding the |
| 8332 | arrow keys in bind_arrow_keys() to allow vi-mode users to hit ESC |
| 8333 | multiple times in vi command mode while still allowing the arrow |
| 8334 | keys to work |
| 8335 | |
| 8336 | 8/2 |
| 8337 | --- |
| 8338 | bashline.c |
| 8339 | - fix clear_hostname_list by setting hostname_list_initialized to 0 |
| 8340 | after freeing all list members. Fixes bug reported by Freddy |
| 8341 | Vulto <fvulto@gmail.com> |
| 8342 | |
| 8343 | lib/readline/display.c |
| 8344 | - in update_line, if we copy data from one line to another because we |
| 8345 | are wrapping a multibyte character from, say, the first line to the |
| 8346 | second, we need to update OMAX and the line indices to account for |
| 8347 | the moved data. Bug report and fix from Martin Hamrle |
| 8348 | <martin.hamrle@gmail.com> |
| 8349 | |
| 8350 | 8/3 |
| 8351 | --- |
| 8352 | pcomplete.h |
| 8353 | - defines for EMPTYCMD ("_EmptycmD_") and DEFAULTCMD ("_DefaultCmD_") |
| 8354 | |
| 8355 | builtins/complete.def |
| 8356 | - change compopt_builtin to make -E work on the "empty" command |
| 8357 | completion |
| 8358 | - fix print_compitem and print_compopts to replace EMPTYCMD with -E |
| 8359 | - added -D (default) option to complete/compgen/compopt. No supporting |
| 8360 | code yet |
| 8361 | |
| 8362 | doc/bash.1,lib/readline/doc/rluser.texi |
| 8363 | - document new -D, -E options to compopt |
| 8364 | - document new -D option to complete/compgen |
| 8365 | |
| 8366 | shell.h |
| 8367 | - new define, EX_WEXPCOMSUB, value of 125 |
| 8368 | - new define, EX_RETRYFAIL, value of 124 (for programmable completion) |
| 8369 | |
| 8370 | subst.c |
| 8371 | - use EX_WEXPCOMSUB instead of literal 125 as exit status when a shell |
| 8372 | invoked to run wordexp(3) with the -n option supplied attempts a |
| 8373 | command substitution |
| 8374 | |
| 8375 | pcomplete.c |
| 8376 | - new define, PCOMP_RETRYFAIL, used to indicate a "failure, retry with |
| 8377 | next completion" status to the programmable completion code |
| 8378 | |
| 8379 | 8/4 |
| 8380 | --- |
| 8381 | pcomplete.c |
| 8382 | - changed gen_shell_function_matches to take an extra parameter |
| 8383 | indicating whether the specified shell function was not found or |
| 8384 | returned the special "fail/retry" status, and, if it was either, |
| 8385 | to not bother returning any matches list |
| 8386 | - changed gen_compspec_completions to take an extra parameter to pass |
| 8387 | through the "found" status from gen_shell_function_completions |
| 8388 | - new function gen_progcomp_completions to take care of searching for |
| 8389 | and evaluating a compspec for a particular word, saving its status, |
| 8390 | and returning to its caller (programmable_completions) whether or |
| 8391 | not to retry completion. This function also checks whether a |
| 8392 | retry changed the compspec associated with a command and short- |
| 8393 | circuits the retry if it has not |
| 8394 | - changed programmable_completions to try default completion (if set) |
| 8395 | if a specific completion was not found for a command |
| 8396 | - changed programmable_completions to implement "fail/retry" semantics |
| 8397 | for a shell function that returns 124 and changes the compspec |
| 8398 | associated with the command. All based on proposal and changes from |
| 8399 | Behdad Esfahbod (Red Hat bugzilla 475229) |
| 8400 | |
| 8401 | doc/bash.1,lib/readline/doc/rluser.texi |
| 8402 | - documented new dynamic programmable completion functionality |
| 8403 | |
| 8404 | 8/5 |
| 8405 | --- |
| 8406 | stringlib.c |
| 8407 | - first argument to substring() is now `const char *' |
| 8408 | |
| 8409 | externs.h |
| 8410 | - changed extern declaration for substring() |
| 8411 | |
| 8412 | subst.c |
| 8413 | - skipsubscript now takes a third FLAGS argument, passes to |
| 8414 | skip_matched_pair |
| 8415 | - skip_matched_pair now interprets flags&1 to mean not to parse |
| 8416 | matched pairs of quotes, backquotes, or shell word expansion |
| 8417 | constructs |
| 8418 | |
| 8419 | {subst,general,expr}.c |
| 8420 | - changed skipsubscript() callers |
| 8421 | |
| 8422 | assoc.c |
| 8423 | - changed assoc_to_assign to double-quote the key if it contains any |
| 8424 | shell metacharacters |
| 8425 | |
| 8426 | arrayfunc.c |
| 8427 | - use skipsubscript in quote_assign rather than quote any glob |
| 8428 | characters in the subscript of an array assignment |
| 8429 | - in assign_compound_array_list, call skipsubscript with a flags |
| 8430 | argument of 1 if assigning an associative array to avoid trying |
| 8431 | to re-parse quoted strings |
| 8432 | |
| 8433 | redir.c |
| 8434 | - set expanding_redir before expanding body of here documents and |
| 8435 | here strings to avoid looking for variables in temporary env |
| 8436 | |
| 8437 | 8/7 |
| 8438 | --- |
| 8439 | lib/readline/readline.c |
| 8440 | - in _rl_dispatch_callback, return value of -3 means that we have |
| 8441 | added to a key sequence, but there are previous matches in the |
| 8442 | sequence. Don't call _rl_subseq_result if we get a -3 from a |
| 8443 | previous context in the chain; just go back up the chain. Report |
| 8444 | and fix from <freehaha@gmail.com> |
| 8445 | |
| 8446 | bashline.c |
| 8447 | - fixes to history_completion_generator and bash_dabbrev_expand to |
| 8448 | make dabbrev-expand inhibit suppressing of appending space char |
| 8449 | to matches. Have to do it with the generator too because |
| 8450 | rl_menu_complete turns off suppressing the appended space in |
| 8451 | set_completion_defaults(). Suggestion from Dan Nicolaescu |
| 8452 | <dann@ics.uci.edu> |
| 8453 | - suppress completion match sorting in bash_dabbrev_expand by |
| 8454 | setting rl_sort_completion_matches = 0. Suggestion from Dan |
| 8455 | Nicolaescu <dann@ics.uci.edu> |
| 8456 | - don't qsort history match list in build_history_completion_array |
| 8457 | if dabbrev_expand_active == 1 |
| 8458 | - start the loop in build_history_completion_array that gathers words |
| 8459 | from history for possible completions from the end of the list |
| 8460 | rather than the beginning. It doesn't matter where you start if |
| 8461 | the results are sorted, and dabbrev-expand is supposed to offer |
| 8462 | the most recent completions first |
| 8463 | |
| 8464 | 8/12 |
| 8465 | ---- |
| 8466 | execute_cmd.c |
| 8467 | - change to execute_command_internal to make [[ ... ]] conditional |
| 8468 | command subject to settings of `set -e' and the ERR trap |
| 8469 | |
| 8470 | 8/14 |
| 8471 | ---- |
| 8472 | execute_cmd.c |
| 8473 | - change to execute_command_internal to make (( ... )) arithmetic |
| 8474 | command subject to settings of `set -e' and the ERR trap |
| 8475 | |
| 8476 | lib/readline/text.c |
| 8477 | - new bindable function, rl_skip_csi_sequence, reads the characters |
| 8478 | that make up a control sequence as defined by ECMA-48. Sequences |
| 8479 | are introduced by the Control Sequence Indicator (CSI) and |
| 8480 | contain a defined set of characters. Insert, End, Page Up and so |
| 8481 | on are CSI sequences. Report and code from Andy Koppe |
| 8482 | <andy.koppe@gmail.com> |
| 8483 | |
| 8484 | lib/readline/readline.h |
| 8485 | - extern declaration for rl_skip_csi_sequence |
| 8486 | |
| 8487 | lib/readline/funmap.c |
| 8488 | - new bindable command "skip-csi-sequence", runs rl_skip_csi_sequence |
| 8489 | |
| 8490 | doc/bash.1,lib/readline/doc/{readline.3,rluser.texi} |
| 8491 | - documented new bindable command "skip-csi-sequence", unbound by |
| 8492 | default |
| 8493 | |
| 8494 | builtins/evalfile.c |
| 8495 | - fix _evalfile to remove embedded null bytes from the file read |
| 8496 | into the string. Report and proposed fix from Roman Rakus |
| 8497 | <rrakus@redhat.com> |
| 8498 | |
| 8499 | {configure,config.h}.in |
| 8500 | - check for syslog(3), define HAVE_SYSLOG |
| 8501 | - check for syslog.h, define HAVE_SYSLOG_H |
| 8502 | |
| 8503 | config-top.h |
| 8504 | - new define SYSLOG_HISTORY, disabled by default |
| 8505 | |
| 8506 | config-bot.h |
| 8507 | - if HAVE_SYSLOG or HAVE_SYSLOG_H are not defined, undef SYSLOG_HISTORY |
| 8508 | |
| 8509 | bashhist.c |
| 8510 | - if SYSLOG_HISTORY is defined, call bash_syslog_history with the |
| 8511 | line added to the history in bash_add_history. |
| 8512 | - new function, bash_syslog_history(line), sends line to syslog at |
| 8513 | user.info. The line is truncated to send no more than 600 |
| 8514 | (SYSLOG_MAXLEN) bytes to syslog. Feature requested by many, and |
| 8515 | required by some national laws |
| 8516 | |
| 8517 | sig.c |
| 8518 | - in termsig_handler, resend SIGHUP to children if subshell_environment |
| 8519 | indicates we're a shell performing command or process substitution |
| 8520 | |
| 8521 | jobs.c |
| 8522 | - add CHECK_TERMSIG calls to wait_for in addition to the ones in |
| 8523 | waitchld() |
| 8524 | |
| 8525 | builtins/shopt.def |
| 8526 | - new functions set_bashopts, parse_bashopts, and initialize_bashopts |
| 8527 | to manage new environment variable $BASHOPTS, like $SHELLOPTS but |
| 8528 | for shopt options |
| 8529 | - change toggle_shopts to call set_bashopts after setting options, so |
| 8530 | $BASHOPTS reflects new values |
| 8531 | |
| 8532 | shell.c |
| 8533 | - call initialize_bashopts after calling initialize_shell_options at |
| 8534 | shell startup |
| 8535 | |
| 8536 | configure.in |
| 8537 | - new configure `enable' option --enable-exended-glob-default, to |
| 8538 | set the initial default value of the `extglob' shell option |
| 8539 | |
| 8540 | config.h |
| 8541 | - new define, EXTGLOB_DEFAULT, controlled by the `extended-glob-default' |
| 8542 | configure option |
| 8543 | |
| 8544 | pathexp.c |
| 8545 | - initialize extended_glob variable to EXTGLOB_DEFAULT |
| 8546 | |
| 8547 | doc/{bash.1,bashref.texi} |
| 8548 | - document new $BASHOPTS variable and its behavior |
| 8549 | |
| 8550 | doc/bashref.texi |
| 8551 | - document new --enable-extended-glob-default configure option |
| 8552 | |
| 8553 | 8/16 |
| 8554 | ---- |
| 8555 | print_cmd.c |
| 8556 | - new variables: xtrace_fd and xtrace_fp, the file descriptor and |
| 8557 | FILE * to which we send `set -x' tracing output. If fd == -1 |
| 8558 | then fp == STDERR, the default mode |
| 8559 | - new function xtrace_init, sets xtrace_fd == -1 and xtrace_fp = stderr |
| 8560 | - new function xtrace_set (fd, fp), sets xtrace_fd and xtrace_fp |
| 8561 | to the arguments |
| 8562 | - new function xtrace_reset, handles closing old xtrace fd/fp and |
| 8563 | moving them back to -1/stderr |
| 8564 | - new function xtrace_fdchck, calls xtrace_reset if the fd passed as |
| 8565 | an argument is xtrace_fd |
| 8566 | - change xtrace functions to fprintf to xtrace_fp instead of stderr |
| 8567 | |
| 8568 | shell.c |
| 8569 | - call xtrace_init() very early in main() |
| 8570 | |
| 8571 | variables.c |
| 8572 | - new special variable, BASH_XTRACEFD, holds file descriptor used for |
| 8573 | set -x trace output. Inspired by suggestion from Bruce Korb |
| 8574 | <bruce.korb@gmail.com> |
| 8575 | |
| 8576 | doc/{bash.1,bashref.texi} |
| 8577 | - added description of new BASH_XTRACEFD variable |
| 8578 | |
| 8579 | redir.c |
| 8580 | - add calls to xtrace_fdchk to the redirections that close file |
| 8581 | descriptors, so we notice if we close BASH_XTRACEFD and compensate |
| 8582 | accordingly (same places that call coproc_fdchk()) |
| 8583 | |
| 8584 | 8/18 |
| 8585 | ---- |
| 8586 | lib/readline/text.c |
| 8587 | - change to _rl_replace_text to add error checks: start must be <= |
| 8588 | end, and we don't call rl_insert_text if passed the empty string |
| 8589 | |
| 8590 | config.h.in |
| 8591 | - add define for HAVE_ICONV, already found by intl autoconf macros |
| 8592 | - add define for HAVE_LOCALE_CHARSET |
| 8593 | |
| 8594 | aclocal.m4 |
| 8595 | - add check for locale_charset() to BASH_CHECK_MULTIBYTE |
| 8596 | |
| 8597 | lib/sh/fnxform.c |
| 8598 | - new file with two public function: fnx_tofs and fnx_fromfs. |
| 8599 | Primarily intended for use on MacOS X, they use iconv to convert |
| 8600 | between whatever the current locale encoding is and "UTF-8-MAC", |
| 8601 | a special encoding on OS X in which all characters are |
| 8602 | decomposed unicode, as the HFS+ filesystem stores them. These |
| 8603 | functions return a pointer to a local buffer, allocated once and |
| 8604 | resized as necessary, to avoid too many allocations; callers |
| 8605 | should not free the return value, since it may be the string |
| 8606 | passed |
| 8607 | |
| 8608 | Makefile.in |
| 8609 | - make sure LIBICONV is set by autoconf (@LIBICONV@) and added to |
| 8610 | list of link libraries |
| 8611 | |
| 8612 | externs.h |
| 8613 | - new extern declarations for fnx_fromfs and fnx_tofs |
| 8614 | |
| 8615 | lib/glob/glob.c |
| 8616 | - convert the filename read using readdir() in glob_vector() using |
| 8617 | fnx_fromfs and use that value in the call to strmatch. This |
| 8618 | ensures that we're using the precomposed Unicode value of the |
| 8619 | filename rather than the native decomposed form. Original bug |
| 8620 | report from Len Lattanzi <llatanzi@apple.com>; fix inspired by |
| 8621 | Guillaume Outters <guillaume.outters@free.fr> |
| 8622 | |
| 8623 | 8/19 |
| 8624 | ---- |
| 8625 | lib/readline/complete.c |
| 8626 | - new completion hook: rl_filename_rewrite_hook, can rewrite or modify |
| 8627 | filenames read from the filesystem before they are compared to the |
| 8628 | word to be completed |
| 8629 | |
| 8630 | lib/readline/readline.h |
| 8631 | - extern declaration for rl_filename_rewrite_hook |
| 8632 | |
| 8633 | lib/readline/doc/rltech.texi |
| 8634 | - document rl_filename_rewrite_hook |
| 8635 | |
| 8636 | bashline.c |
| 8637 | - new function, bash_filename_rewrite_hook, assigned to |
| 8638 | rl_filename_rewrite_hook. Calls fnx_fromfs to convert from |
| 8639 | filesystem format to "input" format. This makes completing |
| 8640 | filenames with accented characters work on Mac OS X |
| 8641 | |
| 8642 | 8/20 |
| 8643 | ---- |
| 8644 | lib/readline/bind.c |
| 8645 | - new bindable variable "skip-completed-text", bound to |
| 8646 | _rl_skip_completed_text. If enabled, it means to note when |
| 8647 | completing before the end of a word and skipping over characters |
| 8648 | after rl_point that match in both the completion to be inserted |
| 8649 | and the word being completed. It means that completing |
| 8650 | `Makefile' with the cursor after the `e' results in `Makefile' |
| 8651 | instead of `Makefilefile'. Inspired by an idea from Jared |
| 8652 | Yanovich <phierunner@comcast.net> from back in 2004 |
| 8653 | |
| 8654 | lib/readline/rlprivate.h |
| 8655 | - extern declaration for _rl_skip_completed_text |
| 8656 | |
| 8657 | lib/readline/complete.c |
| 8658 | - implement semantics of _rl_skip_completed_text in insert_match: |
| 8659 | skip characters in `replacement' that match chars in rl_line_buffer |
| 8660 | from the start of the word to be completed |
| 8661 | |
| 8662 | 8/21 |
| 8663 | ---- |
| 8664 | error.c |
| 8665 | - change parser_error to set last_command_exit_value to 2 before |
| 8666 | calling exit_shell (if set -e is enabled), so any exit or ERR |
| 8667 | trap gets the right value of $?. Suggestion from Stefano |
| 8668 | Lattarini <stefano.lattarini@gmail.com> |
| 8669 | |
| 8670 | braces.c |
| 8671 | - fix expand_seqterm so that a non-zero-prefixed term that's longer |
| 8672 | than a zero-prefixed term determines the length of each term |
| 8673 | in the brace-expanded sequence. This means that things like |
| 8674 | {01..100} will have three digits in all the elements of the |
| 8675 | expanded list. Fixes bug reported by Jeff Haemer |
| 8676 | <jeffrey.haemer@gmail.com> |
| 8677 | |
| 8678 | 8/24 |
| 8679 | ---- |
| 8680 | {arrayfunc,variables}.c |
| 8681 | - when inserting a value into an associative array using syntax like |
| 8682 | T=v where T is an already-declared associative array using key "0", |
| 8683 | make sure the key is in newly-allocated memory so it can be freed |
| 8684 | when the variable is unset. Fixes bug reported as redhat 518644 |
| 8685 | by Jon Fairbairn |
| 8686 | |
| 8687 | 8/26 |
| 8688 | ---- |
| 8689 | lib/readline/funmap.c |
| 8690 | - add "old-menu-complete" binding for rl_old_menu_complete |
| 8691 | |
| 8692 | lib/readline/readline.h |
| 8693 | - add extern declaration for rl_old_menu_complete |
| 8694 | |
| 8695 | subst.c |
| 8696 | - fix memory leak when processing ${!prefix@}. Need to dispose all |
| 8697 | words in the word list created from all matching variable. Fixes |
| 8698 | bug reported by muszi@muszi.kite.hu. |
| 8699 | |
| 8700 | 8/29 |
| 8701 | ---- |
| 8702 | execute_cmd.c |
| 8703 | - add fflush(stdout) and fflush(stderr) to child coproc code before |
| 8704 | calling exit after execute_in_subshell |
| 8705 | |
| 8706 | 8/31 |
| 8707 | ---- |
| 8708 | lib/readline/{{bind,readline}.c,rlprivate.h} |
| 8709 | - new bindable variable, "echo-control-characters", enabled by default. |
| 8710 | This controls whether or not readline honors the tty ECHOCTL bit |
| 8711 | and displays characters corresponding to keyboard-generated signals. |
| 8712 | Controlled by _rl_echo_control_chars variable, declared in readline.c |
| 8713 | |
| 8714 | lib/readline/signals.c |
| 8715 | - if _rl_echo_control_chars == 0, don't go through _rl_echo_signal_char |
| 8716 | |
| 8717 | |
| 8718 | lib/readline/doc/{readline.3,rluser.texi} |
| 8719 | - document "echo-control-characters" bindable variable |
| 8720 | |
| 8721 | 9/1 |
| 8722 | --- |
| 8723 | lib/readline/histexpand.c |
| 8724 | - hist_string_extract_single_quoted now takes an additional argument: |
| 8725 | a flags word. The only defined value (flags & 1) allows backslash |
| 8726 | to quote the single quote. This is to inhibit history expansion |
| 8727 | inside $'...' containing an escaped single quote. |
| 8728 | - change history_expand to call hist_string_extract_single_quoted |
| 8729 | with flags == 1 if it sees $'. Fixes bug reported by Sean |
| 8730 | Donner <sean.donner@gmail.com> |
| 8731 | |
| 8732 | 9/2 |
| 8733 | --- |
| 8734 | builtins/printf.def |
| 8735 | - add a call to sh_wrerror if ferror() succeeds in the PRETURN macro, |
| 8736 | to print an error message in the case that the final fflush fails |
| 8737 | (for instance, because it attempts to write data that didn't have a |
| 8738 | trailing newline). Fixes bug reported by Stefano Lattarini |
| 8739 | <stefano.lattarini@gmail.com> |
| 8740 | |
| 8741 | 9/7 |
| 8742 | --- |
| 8743 | arrayfunc.c |
| 8744 | - some fixes to assign_compound_array_list to avoid null pointer |
| 8745 | dereferences pointed out by clang/scan-build |
| 8746 | |
| 8747 | lib/glob/glob.c |
| 8748 | - fixes to udequote_pathname and wdequote_pathname to avoid possible |
| 8749 | null pointer dereferences pointed out by clang/scan-build |
| 8750 | |
| 8751 | lib/readline/undo.c |
| 8752 | - fix to _rl_copy_undo_list (function unused) to avoid deref of |
| 8753 | uninitialized pointer pointed out by clang/scan-build |
| 8754 | |
| 8755 | general.c |
| 8756 | - fix string_to_rlimtype so it works if passed a null pointer (though |
| 8757 | it never is) |
| 8758 | |
| 8759 | builtins/mapfile.def |
| 8760 | - fix to mapfile() to avoid possible null pointer dereference pointed |
| 8761 | out by clang/scan-build |
| 8762 | |
| 8763 | variables.c |
| 8764 | - fix to valid_exportstr to avoid possible null pointer dereferences |
| 8765 | pointed out by clang/scan-build |
| 8766 | |
| 8767 | bashline.c |
| 8768 | - fix to bash_execute_unix_command to avoid possible null pointer |
| 8769 | dereference if READLINE_LINE or READLINE_POINT is not bound |
| 8770 | |
| 8771 | 9/11 |
| 8772 | ---- |
| 8773 | [Prayers for the victimes of 9/11/2001] |
| 8774 | |
| 8775 | command.h |
| 8776 | - add `rflags' member to struct redirect to hold private flags and |
| 8777 | state information |
| 8778 | - change redirector to a REDIRECTEE instead of int to prepare for |
| 8779 | possible future changes |
| 8780 | |
| 8781 | {copy_cmd,dispose_cmd,make_cmd,print_cmd,redir}.c |
| 8782 | - changes resulting from type change of `redirector' member of struct |
| 8783 | redirect: change x->redirector to x->redirector.dest and add code |
| 8784 | where appropriate to deal with x->redirector.filename |
| 8785 | |
| 8786 | make_cmd.h |
| 8787 | - change extern declaration for make_redirection |
| 8788 | |
| 8789 | make_cmd.c |
| 8790 | - first argument of make_redirection is now a `REDIRECTEE' to prepare |
| 8791 | for possible future changes. First arg is now assigned directly to |
| 8792 | redirector member instead of assigning int to redirector.dest |
| 8793 | |
| 8794 | {make_cmd,redir}.c,parse.y |
| 8795 | - changes resulting from type change of first argument to |
| 8796 | make_redirection from int to REDIRECTEE. In general, changes are |
| 8797 | using REDIRECTEE sd and assigning old argument to sd.dest, then |
| 8798 | passing sd to make_redirection |
| 8799 | |
| 8800 | make_cmd.[ch],parse.y |
| 8801 | - add fourth argument to make_redirection: flags. Sets initial value |
| 8802 | of `rflags' member of struct redirect |
| 8803 | - changed all callers of make_redirection to add fourth argument of 0 |
| 8804 | |
| 8805 | 9/15 |
| 8806 | ---- |
| 8807 | parse.y |
| 8808 | - change read_token_word to return REDIR_WORD for tokens of the form |
| 8809 | {var} where `var' is a valid shell identifier and the character |
| 8810 | following the } is a `<' or `>' |
| 8811 | - add REDIR_WORD versions of all input and output file redirections |
| 8812 | and here documents |
| 8813 | |
| 8814 | print_cmd.c |
| 8815 | - change input and output file redirection direction and here |
| 8816 | document cases of print_redirection to print a varname |
| 8817 | specification of the form {var} when appropriate. Still need |
| 8818 | to fix rest of cases |
| 8819 | |
| 8820 | redir.c |
| 8821 | - implement REDIR_VARASSIGN semantics for file input and output |
| 8822 | redirections and here documents |
| 8823 | |
| 8824 | 9/16 |
| 8825 | ---- |
| 8826 | parse.y |
| 8827 | - added REDIR_WORD versions of remaining redirection constructs except |
| 8828 | for err_and_out ones |
| 8829 | |
| 8830 | redir.c |
| 8831 | - handle REDIR_VARASSIGN semantics for rest of redirection constructs |
| 8832 | - accommodate REDIR_VARASSIGN when translating redirections |
| 8833 | - new function, redir_varvalue, does variable lookup for {v} when |
| 8834 | redirection needs the value (e.g., r_close_this) |
| 8835 | |
| 8836 | print_cmd.c |
| 8837 | - fix rest of cases to print {varname} when REDIR_VARASSIGN is set in |
| 8838 | redirect->rflags |
| 8839 | |
| 8840 | doc/{bash.1,bashref.texi} |
| 8841 | - document new {varname} REDIR_VARASSIGN form of redirections |
| 8842 | |
| 8843 | tests/vredir.{right,tests},vredir[1-5].sub |
| 8844 | - tests for new {varname} REDIR_VARASSIGN form of redirections |
| 8845 | |
| 8846 | 9/18 |
| 8847 | ---- |
| 8848 | subst.c |
| 8849 | - new flags argument to split_at_delims: these flags are ORd with |
| 8850 | SD_NOJMP and passed to skip_to_delim |
| 8851 | - change skip_to_delim to honor new SD_NOQUOTEDELIM flag by not |
| 8852 | checking whether or not single and double quotes are delimiters |
| 8853 | if it's set in passed flags until after skipping quoted strings. |
| 8854 | |
| 8855 | subst.h |
| 8856 | - change extern declaration for split_at_delims |
| 8857 | - new define for SD_NOQUOTEDELIM flag |
| 8858 | |
| 8859 | pcomplete.c |
| 8860 | - pass SD_NOQUOTEDELIM in flags argument to split_at_delims so single |
| 8861 | and double quotes, even though they're in |
| 8862 | rl_completer_word_break_characters, don't act as word delimiters |
| 8863 | for programmable completion. Fixes bug reported by Freddy |
| 8864 | Vulto <fvulto@gmail.com> |
| 8865 | |
| 8866 | lib/glob/glob.c |
| 8867 | - in glob_filename, after recursively scanning a directory specified |
| 8868 | with `**', turn off GX_ALLDIRS|GX_ADDCURDIR before calling |
| 8869 | glob_vector on the rest of the pathname, since it may not apply to |
| 8870 | the rest of the pattern. Turned back on if the filename makes it |
| 8871 | appropriate. Fixes bug reported by Anders Kaseorg <andersk@mit.edu> |
| 8872 | |
| 8873 | redir.c |
| 8874 | - change execute_null_command to fork a child to execute if any of |
| 8875 | the commands redirections have the REDIR_VARASSIGN flag set, since |
| 8876 | those commands are not supposed to have side effects |
| 8877 | |
| 8878 | test.c |
| 8879 | - < and > binary operators will obey the locale by using strcoll if |
| 8880 | the TEST_LOCALE flag is passed to binary_test |
| 8881 | |
| 8882 | test.h |
| 8883 | - new define for TEST_LOCALE |
| 8884 | |
| 8885 | execute_cmd.c |
| 8886 | - execute_cond_node sets TEST_LOCALE so [[ str1 < str2 ]] (and >) |
| 8887 | obey the locale. Fixes bug/incompatibility reported by Greg |
| 8888 | Wooledge <wooledg@eeg.ccf.org> |
| 8889 | |
| 8890 | doc/{bash.1,bashref.texi} |
| 8891 | - documented [[ command new locale-sensitive treatment of < and > |
| 8892 | |
| 8893 | 9/24 |
| 8894 | ---- |
| 8895 | configure.in |
| 8896 | - add "darwin10" cases like darwin8 and darwin9 to handle linking with |
| 8897 | included readline and history libraries |
| 8898 | |
| 8899 | 9/26 |
| 8900 | ---- |
| 8901 | lib/readline/display.c |
| 8902 | - modify change of 7/24 to use prompt_physical_chars instead of |
| 8903 | prompt_visible_length to account for visible multibyte characters in |
| 8904 | the line (usually in the prompt). Fixes debian bug #547264 |
| 8905 | reported by Pietro Battiston <toobaz@email.it> |
| 8906 | - add flags argument to _rl_col_width; changed callers. flags > 0 |
| 8907 | means that it's ok to use the already-computed prompt information; |
| 8908 | flags == 0 means that we're expanding the prompt and we should not |
| 8909 | short-circuit |
| 8910 | |
| 8911 | parse.y |
| 8912 | - in decode_prompt_string, when expanding \w and \W on Mac OS X, |
| 8913 | use fnx_fromfs to convert from "filesystem" form to "input" form. |
| 8914 | This makes $PWD with multibyte characters work in the prompt |
| 8915 | string on Mac OS X |
| 8916 | |
| 8917 | lib/sh/fnxform.c |
| 8918 | - in fnx_fromfs and fnx_tofs, use templen instead of outlen as last |
| 8919 | argument in calls to iconv, since outlen is used to keep track of |
| 8920 | the size of the buffer, and iconv potentially modifies its |
| 8921 | `outbytesleft' argument |
| 8922 | |
| 8923 | 9/29 |
| 8924 | ---- |
| 8925 | subst.c |
| 8926 | - make skip_to_delim understand how to skip over process substitution |
| 8927 | constructs the way it skips $(...) command substitution |
| 8928 | |
| 8929 | 9/30 |
| 8930 | ---- |
| 8931 | lib/readline/terminal.c |
| 8932 | - don't set the `terminal has meta key' flag if the `MT' capability is |
| 8933 | available; that means something completely different |
| 8934 | |
| 8935 | 10/1 |
| 8936 | ---- |
| 8937 | builtins/help.def |
| 8938 | - make sure width is at least 7, since we pass `width/2 - 3' to strncpy |
| 8939 | as the length argument. Terminal widths <= 6 are converted to 80. |
| 8940 | Fixes bug reported by Chris Hall <c@pobox.co.uk> |
| 8941 | |
| 8942 | configure.in |
| 8943 | - changed version to 4.1-alpha |
| 8944 | |
| 8945 | subst.h |
| 8946 | - new flag for skip_to_delim: SD_NOSKIPCMD, which means to not skip |
| 8947 | over embedded command and process substitutions, but rather to look |
| 8948 | for delimiters within them |
| 8949 | |
| 8950 | subst.c |
| 8951 | - implement semantics of SD_NOSKIPCMD in skip_to_delim |
| 8952 | |
| 8953 | bashline.c |
| 8954 | - call skip_to_delim with SD_NOSKIPCMD from find_cmd_start, so |
| 8955 | programmable completion can use the completion defined for `b' for |
| 8956 | command lines like "a $(b c". Fixes inconsistency/bug reported by |
| 8957 | Freddy Vulto <fvulto@gmail.com> |
| 8958 | |
| 8959 | parser.h |
| 8960 | - replace unused PST_CMDTOKEN parser state value with PST_EXTPAT, |
| 8961 | means currently parsing an extended glob pattern (extglob) |
| 8962 | |
| 8963 | parse.y |
| 8964 | - fix cond_node() so that extended_glob is set before parsing the |
| 8965 | rhs of the `==' or `!=' operators. For ksh93 compatibility. |
| 8966 | - reset extended_glob to global value (saved in parse_cond_command()) |
| 8967 | in reset_parser() |
| 8968 | |
| 8969 | 10/5 |
| 8970 | ---- |
| 8971 | jobs.c |
| 8972 | - change waitchld() to only interrupt the wait builtin when the shell |
| 8973 | receives SIGCHLD in Posix mode. It's a posix requirement, but |
| 8974 | makes easy things hard to do, like run a SIGCHLD trap for every |
| 8975 | exiting child. Change prompted by question from Alex Efros |
| 8976 | <powerman@powerman.name> |
| 8977 | |
| 8978 | doc/bashref.texi |
| 8979 | - document new posix mode behavior about SIGCHLD arriving while the |
| 8980 | wait builtin is executing when a trap on SIGCHLD has been set |
| 8981 | |
| 8982 | 10/6 |
| 8983 | ---- |
| 8984 | lib/readline/histexpand.c |
| 8985 | - fix hist_expand to keep from stopping history expansion after the |
| 8986 | first multibyte character (a `break' instead of a `continue'). |
| 8987 | Fixes debian bug (#549933) reported by Nikolaus Schulz |
| 8988 | <microschulz@web.de> |
| 8989 | |
| 8990 | 10/8 |
| 8991 | ---- |
| 8992 | builtins/read.def |
| 8993 | - implement new `-N nchars' option: read exactly NCHARS characters, |
| 8994 | ignoring any delimiter, and don't split the result on $IFS. |
| 8995 | Feature requested by Richard Stallman <rms@gnu.org> |
| 8996 | |
| 8997 | doc/{bash.1,bashref.texi} |
| 8998 | - document new `read -N' option |
| 8999 | |
| 9000 | 10/9 |
| 9001 | ---- |
| 9002 | lib/readline/bind.c |
| 9003 | - new bindable variable, "enable-meta-key", controls whether or not |
| 9004 | readline enables any meta modifier key the terminal claims to |
| 9005 | support. Suggested by Werner Fink <werner@suse.de> |
| 9006 | |
| 9007 | lib/readline/doc/{readline.3,rluser.texi},doc/bash.1 |
| 9008 | - document new readline "enable-meta-key" bindable variable |
| 9009 | |
| 9010 | 10/10 |
| 9011 | ----- |
| 9012 | trap.c |
| 9013 | - new function, free_trap_string(), does what it says and turns off |
| 9014 | SIG_TRAPPED flag without changing signal disposition |
| 9015 | |
| 9016 | [bash-4.1-alpha frozen] |
| 9017 | |
| 9018 | 10/16 |
| 9019 | ----- |
| 9020 | builtins/mapfile.def |
| 9021 | - return an error if the variable passed is not an indexed array. |
| 9022 | Fixes bug reported by Nick Hobson <nick.hobson@yahoo.com> |
| 9023 | - change help text to make it clear that an indexed array is required |
| 9024 | |
| 9025 | doc/{bash.1,bashref.texi} |
| 9026 | - changed description of mapfile to note that the array variable |
| 9027 | argument must be an indexed array, and mapfile will return an |
| 9028 | error if it is not |
| 9029 | |
| 9030 | subst.c |
| 9031 | - change expand_string_unsplit and expand_string_leave_quoted to |
| 9032 | add the (previously unused) W_NOSPLIT2 flag to the created word |
| 9033 | - change expand_word_internal to understand W_NOSPLIT2 to mean that |
| 9034 | we're not going to split on $IFS, so we should not quote any |
| 9035 | characters in IFS that we add to the result string. Fixes bug |
| 9036 | reported by Enrique Perez-Terron <enrio@online.no> |
| 9037 | - change cond_expand_word similarly. Fixes rest of bug reported by |
| 9038 | Enrique Perez-Terron <enrio@online.no> |
| 9039 | |
| 9040 | parse.y |
| 9041 | - save and restore value of last_command_subst_pid around call to |
| 9042 | expand_prompt_string in decode_prompt_string. Fixes bug that causes |
| 9043 | $? to be set wrong when using a construct like false || A=3 when |
| 9044 | set -x is enabled and $PS4 contains a command substitution. Reported |
| 9045 | by Jeff Haemer <jeffrey.haemer@gmail.com> |
| 9046 | |
| 9047 | 10/17 |
| 9048 | ----- |
| 9049 | execute_cmd.c |
| 9050 | - in execute_in_subshell, make sure we set setjmp(return_catch) before |
| 9051 | running the command, in case the command or its word expansion |
| 9052 | calls jump_to_top_level. Fixes bug reported by Nils Bernhard |
| 9053 | <nils.bernhard@yahoo.de> |
| 9054 | |
| 9055 | subst.c |
| 9056 | - new PF_NOSPLIT2 flag for param_expand |
| 9057 | - parameter_brace_expand takes a new `pflags' argument, before the |
| 9058 | `output' parameters; passes to param_expand as necessary |
| 9059 | - change parameter_brace_expand to call parameter_brace_expand_word |
| 9060 | with the PF_NOSPLIT2 flag if the pflags argument to |
| 9061 | parameter_brace_expand has it set |
| 9062 | |
| 9063 | parse.y |
| 9064 | - change report_syntax_error to set last_command_exit_value to |
| 9065 | EX_BADSYNTAX if parse_and_execute_level is > 0, indicating a |
| 9066 | syntax error while we're executing a dot script, eval string, |
| 9067 | trap command, etc. |
| 9068 | |
| 9069 | builtins/evalstring.c |
| 9070 | - in parse_and_execute, if parse_command() returns non-zero, |
| 9071 | indicating a parse error, print a warning message if the conditions |
| 9072 | would require a posix-mode shell to abort (parse error in a `.' |
| 9073 | script or eval string) |
| 9074 | |
| 9075 | 10/19 |
| 9076 | ----- |
| 9077 | builtins/evalfile.c |
| 9078 | - even if the `check binary' flag is not passed to _evalfile, return an |
| 9079 | error after reading 128 null characters if called by `source', on |
| 9080 | the assumption that it's probably a binary file. [This will be in |
| 9081 | bash-4.1-beta] |
| 9082 | |
| 9083 | 10/24 |
| 9084 | ----- |
| 9085 | [bash-4.1-alpha released] |
| 9086 | |
| 9087 | bashline.c |
| 9088 | - don't call command_substitution_completion_function if we're |
| 9089 | completing a substring delimited by a single quote. Fixes bug |
| 9090 | reported by bash-bugs@atu.cjb.net |
| 9091 | |
| 9092 | lib/readline/complete.c |
| 9093 | - make sure _rl_skip_completed_text defaults to 0, as the |
| 9094 | documentation states (incorrect in bash-4.1-alpha) |
| 9095 | - in insert_match, skip over a close quote in the replacement text if |
| 9096 | the character at point when completion is invoked is a single |
| 9097 | quote. Fixes complaint from bash-bugs@atu.cjb.net |
| 9098 | |
| 9099 | 10/26 |
| 9100 | ----- |
| 9101 | shell.c |
| 9102 | - in main, make sure "$EMACS" is non-null before calling strstr on its |
| 9103 | value. Fixes Red Hat bug 530911 submitted by Mitchell Berger |
| 9104 | |
| 9105 | builtins/mapfile.def |
| 9106 | - don't save callback commands in shell history. Suggested by |
| 9107 | Jan Schampera <jan.schampera@web.de> |
| 9108 | |
| 9109 | mailcheck.c |
| 9110 | - in file_mod_date_changed, make sure the modification time is later |
| 9111 | than the saved modification date, not just that it's not equal. |
| 9112 | Fix from Evgeniy Dushistov <dushistov@mail.ru> |
| 9113 | - in file_access_date_changed, make sure the access time is later |
| 9114 | than the saved access time, not just that it's not equal |
| 9115 | |
| 9116 | 10/27 |
| 9117 | ----- |
| 9118 | builtins/shopt.def |
| 9119 | - added new `compat40' compatibility variable, with associated changes |
| 9120 | to shell_compatibility_level(), since the default compatibility level |
| 9121 | is now 41 |
| 9122 | |
| 9123 | test.c |
| 9124 | - make the < and > operators to [[ use strcoll() only if the shell |
| 9125 | compatibility level is greater than 40 (it is 41 by default in |
| 9126 | bash-4.1) |
| 9127 | |
| 9128 | 10/28 |
| 9129 | ----- |
| 9130 | support/shobj-conf |
| 9131 | - decrease the default version of FreeBSD that creates shared libraries |
| 9132 | to 4.x. Advice from Peter Jeremy <peterjeremy@acm.org> |
| 9133 | |
| 9134 | 11/2 |
| 9135 | ---- |
| 9136 | parse.y |
| 9137 | - change parse_comsub to free `heredelim' and set it to 0 whenever the |
| 9138 | comsub scanner finds the end of a here document. Really need to |
| 9139 | implement a stack of here doc delimiters like in the parser (can we |
| 9140 | use redir_stack here, too?) |
| 9141 | - fix parse_comsub to not attempt to read another here doc delimiter |
| 9142 | after seeing a shell break character (that is not newline) if we |
| 9143 | already have one. Fixes Debian bash bug #553485, submitted by |
| 9144 | Samuel Hym <samuel.hym@gmail.com> |
| 9145 | |
| 9146 | 11/3 |
| 9147 | ---- |
| 9148 | variables.c |
| 9149 | - fix bind_variable_internal to call a variable's dynamic 'set function' |
| 9150 | with the right arguments depending on whether its an associative |
| 9151 | array, an indexed array, or a scalar. Fixes Ubuntu bug #471504 |
| 9152 | https://bugs.launchpad.net/ubuntu/+source/bash/+bug/471504 reported |
| 9153 | by AJ Slater <aj.slater@gmail.com> |
| 9154 | |
| 9155 | [bash-4.1-beta frozen] |
| 9156 | |
| 9157 | 11/11 |
| 9158 | ----- |
| 9159 | builtins/printf.def |
| 9160 | - in getintmax(), in the case of a conversion error, return the partial |
| 9161 | value accumulated so far, which is suppose to be what |
| 9162 | strtoimax/strtoll/strtol returns |
| 9163 | |
| 9164 | 11/17 |
| 9165 | ----- |
| 9166 | [bash-4.1-beta released] |
| 9167 | |
| 9168 | 11/18 |
| 9169 | ----- |
| 9170 | builtins/{common.h,shopt.def},shell.c |
| 9171 | - changed shopt variable "set functions" to take the option name as |
| 9172 | the first argument; changed function prototypes and callers |
| 9173 | |
| 9174 | builtins/shopt.def |
| 9175 | - change set_compatibility_level() to turn off other compatNN options |
| 9176 | when one is set -- enforce mutual exclusivity. Fixes problem noted |
| 9177 | by Jan Schampera <jan.schampera@web.de> |
| 9178 | |
| 9179 | 11/19 |
| 9180 | ----- |
| 9181 | lib/readline/rltty.c |
| 9182 | - make sure prepare_terminal_settings() tests for the presence of |
| 9183 | ECHOCTL before using it. Fixes bug reported by Joachim Schmitz |
| 9184 | <schmitz@hp.com> |
| 9185 | |
| 9186 | config-top.h |
| 9187 | - new WORDEXP_OPTION define (off by default) |
| 9188 | |
| 9189 | shell.c |
| 9190 | - don't include the --wordexp option or the supporting function |
| 9191 | (run_wordexp) if WORDEXP_OPTION is not defined. Suggested by |
| 9192 | Aharon Robbins <arnold@skeeve.com> |
| 9193 | |
| 9194 | execute_cmd.c |
| 9195 | - in execute_cond_node, turn on comsub_ignore_return if the flags |
| 9196 | indicate we're ignoring the return value before calling |
| 9197 | cond_expand_word. Fixes bug reported by Anirban Sinha |
| 9198 | <asinha@zeugmasystems.com> |
| 9199 | |
| 9200 | 11/20 |
| 9201 | ----- |
| 9202 | lib/sh/snprintf.c,builtins/printf.def |
| 9203 | - change check for HAVE_ASPRINTF and HAVE_SNPRINTF to check if value |
| 9204 | is 1 or 0 rather than whether they are defined or not. This allows |
| 9205 | a value of 0 to enable function replacement |
| 9206 | |
| 9207 | configure.in,aclocal.m4 |
| 9208 | - new autoconf macro, BASH_FUNC_SNPRINTF, checks for snprintf present |
| 9209 | and working as C99 specifies with a zero length argument. Idea |
| 9210 | from Greg Wooledge <wooledg@eeg.ccf.org> |
| 9211 | - new macro BASH_FUNC_VSNPRINTF, does same thing for vsnprintf |
| 9212 | |
| 9213 | 11/25 |
| 9214 | ----- |
| 9215 | subst.c |
| 9216 | - in command_substitute, only tell parse_and_execute to reset the line |
| 9217 | number in an interactive shell if sourcelevel == 0 -- we'll use the |
| 9218 | line numbers from the sourced file |
| 9219 | |
| 9220 | execute_cmd.c |
| 9221 | - in execute_simple_command, only subtract function_line_number from |
| 9222 | line_number if sourcelevel == 0. If sourcing, we'll use the line |
| 9223 | numbers from the sourced file. Fixes bug reported by Hugo |
| 9224 | Mildenberger <Hugo.Mildenberger@namir.de> |
| 9225 | |
| 9226 | builtins/declare.def |
| 9227 | - in declare_internal, call bind_assoc_variable instead of |
| 9228 | bind_array_variable in the case of declare -A foo=bar. Fixes bug |
| 9229 | reported by Bernd Eggink <monoped@sudrala.de>. |
| 9230 | |
| 9231 | 11/27 |
| 9232 | ----- |
| 9233 | lib/readline/util.c |
| 9234 | - change declaration for _rl_walphabetic to use prototype, assuming |
| 9235 | that any system with multibyte characters has a compiler that can |
| 9236 | handle prototypes. Fix for AIX compilation problem reported by |
| 9237 | Nick Hillman <nick_hillman@neverbox.com> |
| 9238 | |
| 9239 | 11/28 |
| 9240 | ----- |
| 9241 | execute_cmd.c |
| 9242 | - make funcnest file-scope static and unwind-protect its value in |
| 9243 | execute_function, so it can be used as a real measure of function |
| 9244 | call nesting |
| 9245 | |
| 9246 | general.c |
| 9247 | - fix off-by-one error in trim_pathname that caused it to short-circuit |
| 9248 | when PROMPT_DIRTRIM == number of directories - 1. Fixes bug |
| 9249 | reported by Dennis Williamson <dennistwilliamson@gmail.com> |
| 9250 | |
| 9251 | 11/29 |
| 9252 | ----- |
| 9253 | jobs.c |
| 9254 | - when fork() returns -1/EAGAIN, call waitchld(-1, 0) so the shell can |
| 9255 | reap any dead jobs before trying fork again. Currently disabled |
| 9256 | until bash-4.2 development starts |
| 9257 | |
| 9258 | lib/readline/complete.c |
| 9259 | - when incrementing _rl_interrupt_immediately, make sure it's greater |
| 9260 | than 0 before decrementing it. In practice, not a problem, but |
| 9261 | the right way to do it. Suggested by Jan Kratochvil |
| 9262 | <jan.kratochvil@redhat.com> |
| 9263 | |
| 9264 | lib/readline/signals.c |
| 9265 | - make sure rl_signal_handler doesn't set rl_caught_signal if |
| 9266 | _rl_interrupt_immediately is set, so RL_CHECK_SIGNALS doesn't |
| 9267 | cause it to be processed twice. Suggested by Jan Kratochvil |
| 9268 | <jan.kratochvil@redhat.com> |
| 9269 | - if the callback interface is being used, use the code path that |
| 9270 | immediately handles signals. This restores the readline-5.2 |
| 9271 | behavior. Fixes GDB readline bug reported by Jan Kratochvil |
| 9272 | <jan.kratochvil@redhat.com> |
| 9273 | |
| 9274 | 12/18 |
| 9275 | ----- |
| 9276 | [bash-4.1-rc1 released] |
| 9277 | |
| 9278 | 12/22 |
| 9279 | ----- |
| 9280 | config-top.h |
| 9281 | - don't have SYSLOG_HISTORY enabled by default |
| 9282 | |
| 9283 | lib/sh/Makefile.in |
| 9284 | - add explicit dependency on pathnames.h for parallel make support |
| 9285 | |
| 9286 | externs.h |
| 9287 | - add extern declaration for xtrace_fdchk |
| 9288 | |
| 9289 | lib/sh/snprintf.c |
| 9290 | - add local prototype declarations for isinf, isnan if we are providing |
| 9291 | local definitions |
| 9292 | |
| 9293 | lib/sh/fnxform.c |
| 9294 | - add extern declaration for get_locale_var if HAVE_LOCALE_CHARSET not |
| 9295 | defined |
| 9296 | |
| 9297 | execute_cmd.c |
| 9298 | - define NEED_FPURGE_DECL so we pick up any extern declaration for |
| 9299 | fpurge (e.g., if the system doesn't provide it) |
| 9300 | |
| 9301 | builtins/shopt.def |
| 9302 | - correct prototype and declaration for set_shellopts_after_change so |
| 9303 | it's the correct type for shopt_set_func_t |
| 9304 | - add new function shopt_enable_hostname_completion that is the correct |
| 9305 | type for shopt_set_func_t; just calls enable_hostname_completion and |
| 9306 | returns its result |
| 9307 | |
| 9308 | 12/26 |
| 9309 | ----- |
| 9310 | doc/{bash.1,bashref.texi} |
| 9311 | - add \E and \" escape sequences to ANSI-C quoting description. |
| 9312 | Suggested by Aharon Robbins <arnold@skeeve.com> |
| 9313 | |
| 9314 | 12/29 |
| 9315 | ----- |
| 9316 | doc/bash.1 |
| 9317 | - make sure shell and environment variable names are always in |
| 9318 | `small caps' bold. Suggested by Aharon Robbins <arnold@skeeve.com> |
| 9319 | |
| 9320 | 12/30 |
| 9321 | ----- |
| 9322 | {execute_cmd.c,parse.y,Makefile} |
| 9323 | - changes for building minimal configuration from Matthias Klose |
| 9324 | <doko@debian.org> |
| 9325 | |
| 9326 | [bash-4.1 frozen] |