Commit Graph

144 Commits

Author SHA1 Message Date
Chet Ramey 2fd02c8387 fix for a trap on SIGINT restoring the default disposition in an asynchronous subshell; change cd exit status if -Pe supplied and the directory can't be changed; fix for compound associative array assignment if one of the expanded words unsets the array during word expansion; fixes for rare systems that don't have various defines and system calls 2025-11-17 14:50:43 -05:00
Chet Ramey 403b32faf6 round seconds in command timing information if precision is >= 0; fix for readline word boundaries when quoted command substitutions appear; remove nameref attribute when converting nameref variable into an array; change how help strings are written to builtins.c; change read builtin to update unwind-protect if the input string is reallocated; fix crash when an expansion on the rhs of an assignment statement unsets the variable on the lhs 2025-10-23 16:35:55 -04:00
Chet Ramey 25c6aa5b23 fix issue with making local variables from the temporary environment arrays; documentation updates; fix read builtin to check that the delimiter is not a newline before changing the terminal settings with a zero-length timeout 2025-10-06 17:20:10 -04:00
Chet Ramey 0864568359 fix for nofork comsubs undoing enclosing command's redirections; fix for binding _ variable in the temporary environment; fix for crash when making special variables arrays; accommodate IFS as array variable; fix for SIGINT arriving while cleaning up a readline incremental search 2025-08-20 11:08:28 -04:00
Chet Ramey e009d30dff fix for invalid brace sequence expressions; cosmetic fix to help builtin; documentation and copyright updates; bump version to bash-5.3-rc1; cosmetic locale fixes 2025-03-24 17:07:43 -04:00
Chet Ramey 0390b4354a posix change for undoing redirections after failed exec; change readline to set lines and columns after SIGTSTP/SIGCONT 2025-01-28 10:15:16 -05:00
Chet Ramey f65ed506d4 fix issue with interupting timed functions; fix for parsing comsubs inside arith for commands; allow break and continue inside arith for expressions; fix for case-insensitive completion with multibyte chars; fix some minor memory leaks; reset read buffer if it returns partial results on EINTR; fix for undo in execute-named-command 2024-06-03 09:09:11 -04:00
Chet Ramey 9c430f6bf3 enable MULTIPLE_COPROCS; bind -p/-P can print out bindings for individual command names; changes to Makefile to remove MFLAGS; simplify build tools by assuming C90 compilation environment for better cross-compiling support 2024-04-26 16:51:04 -04:00
Chet Ramey cc51fb3c65 avoid executing unsafe functions if we get a terminating signal while handling SIGCHLD; reject attempts to modify some attributes for readonly variables; more changes for unlocked stdio functions; quoting fixes for uncommon cases where IFS = ^A and the word is not being split 2024-02-20 09:53:58 -05:00
Chet Ramey dc97ded434 fix nofork comsub overwriting currently executing command; free readline undo list on signal in callback mode; avoid disabling readonly when assigning variables from the environment; fix bug with shell-expand-line and $'...' quoting inside command substitutions; add `bash-vi-complete' as bindable command name 2024-02-09 10:30:02 -05:00
Chet Ramey a4f44b7a11 fix bug parsing a compound assignment inside a (( nested subshell; man page style and formatting updates 2024-01-19 12:05:12 -05:00
Chet Ramey b30389070a renamed several functions beginning with legal_; changed all callers 2023-11-06 09:26:02 -05:00
Chet Ramey 1cc5a8f752 use size_t for string indices; document rl_reparse_colors 2023-09-22 09:50:33 -04:00
Chet Ramey aab2c1fb1d fix typo in readline custom LS_COLORS extension; fix so `time' is recognized as a reserved word after $( and ${; don't run traps while parsing a command substitution 2023-09-07 17:09:24 -04:00
Chet Ramey 6cca378e82 prefer nanosleep for sleep loadable builtin; changes for overflow in indexed array indices; make sure dynamic loading and unloading builtins updates programmable completion; document that assignment to PATH clears the command hash table; fix small memory leak from readline filename rewrite hook 2023-07-05 16:38:35 -04:00
Chet Ramey 6a9e77e881 fix up semantics of assigning to noassign variables; fix error message in arithmetic noeval mode; add shared memory option to anonymous files; fix static linking config in configure 2023-07-03 10:26:23 -04:00
Chet Ramey fa98070927 fix minor mem leaks; fix problem with parser state during a DEBUG trap with -T enabled in a shell function; fix crash with propagating array variables; fix overflow in compound array appending 2023-06-28 14:48:09 -04:00
Chet Ramey 81f7b44564 fix for -c command ending with backslash; fix several small memory leaks; fix several uninitialized variables; compgen -V fix 2023-06-26 16:23:10 -04:00
Chet Ramey 4e4cebb6dc fix for nofork comsub command printing; fix for crash caused by tempvar assignment converted to an array in a function 2023-06-20 11:10:39 -04:00
Chet Ramey 76112093ec extend assoc_expand_once to indexed arrays; rename to array_expand_once, keeping old name as a synonym; udpate shopt documentation 2023-06-13 11:44:33 -04:00
Chet Ramey 0bd0fb5966 fix crash with null arithmetic for expression; fix size_t issue with history search string allocation 2023-03-02 12:04:03 -05:00
Chet Ramey 7411382644 fix tilde expansion in associative array compound assignments 2023-02-07 10:16:51 -05:00
Chet Ramey 2e725f7346 final set of ANSI C changes 2023-01-05 15:09:06 -05:00
Chet Ramey b2613ad1c0 third set of ANSI C changes: const function parameters 2023-01-03 11:59:43 -05:00
Chet Ramey a61ffa78ed second set of ANSI C changes: C89-style function declarations, more inline functions, remove register keyword 2023-01-03 10:23:11 -05:00
Chet Ramey 8f68f9f0ff remove history position change to non-incremental search; fixes to $@ in some word expansions like :+ 2022-03-25 09:52:26 -04:00
Chet Ramey b6a567e7f1 fix problem with saving tty state after running a command with 'bind -x'; builtins that create associative arrays can now convert existing scalar variables to associative arrays 2022-03-11 16:09:24 -05:00
Chet Ramey d70b53393e new variables to control the active region color; minor fix to $? 2022-02-09 10:21:04 -05:00
Chet Ramey 1d17c604fc changes to make builtins that perform assignments work better with arbitrary associative array keys 2022-01-04 10:54:28 -05:00
Chet Ramey 186129835e new shell option to force globbing never to return .' and ..' as matches 2022-01-04 10:11:48 -05:00
Chet Ramey 701f36c2c3 more changes to avoid expanding associative array subscripts twice; internal debugging changes 2021-12-22 16:05:39 -05:00
Chet Ramey b2b78a6348 fixes to LINENO, read -n, command substitution and backslash-escaped newlines 2021-12-20 20:03:26 -05:00
Chet Ramey 5f2dd5ff95 fix for posix semantics for the := word expansion when assigning array elements 2021-12-14 14:18:00 -05:00
Chet Ramey 71a11dbeb4 portability and compatibility fixes 2021-12-06 09:17:41 -05:00
Chet Ramey 4657c04050 internal changes to prevent `unset' from scanning associative array subscripts multiple times 2021-11-01 10:42:50 -04:00
Chet Ramey f74291e6d1 new pattern substitution replacement feature; fix for problem with unset builtin and associative arrays 2021-10-08 08:21:16 -04:00
Chet Ramey 70d7c6430d fixes for array subscripts and values containing 0x01 characters 2021-09-28 15:13:02 -04:00
Chet Ramey 9928dcb48f changes to command timing with errexit; binary file checks; treat exit builtin slightly differently when using bash -c 2021-09-19 13:44:55 -04:00
Chet Ramey 6650b4de61 fixes for minor memory leaks 2021-07-19 09:58:33 -04:00
Chet Ramey 7b024db83e more minor changes for builtins and array subscript expansion; fix to `wait -n' 2021-05-17 12:03:03 -04:00
Chet Ramey a30f513fc4 more changes to handle @ and * as associative array keys 2021-05-13 14:49:18 -04:00
Chet Ramey b304aabc92 additional changes to avoid array subscript double expansion in arithmetic contexts 2021-05-10 09:58:14 -04:00
Chet Ramey 35bc7025c1 first set of changes to eliminate array subscript double expansion in math contexts 2021-05-07 10:56:24 -04:00
Chet Ramey b196583609 new "enable-active-region" readline variable 2021-04-30 16:56:05 -04:00
Chet Ramey 3fd77612fc allow assignment to array keys @ and *; minor completion fix 2021-04-26 16:31:46 -04:00
Chet Ramey fb4ddc2d2b default value for BASH_LOADABLES_PATH; other minor changes 2021-04-12 16:44:43 -04:00
Chet Ramey 0e51345317 change grammar for select command to use compound_list 2021-04-06 11:37:01 -04:00
Chet Ramey a9cf0031ef commit bash-20210112 snapshot 2021-01-15 14:39:20 -05:00
Chet Ramey 63706353d7 commit bash-20210107 snapshot 2021-01-12 09:18:30 -05:00
Chet Ramey 11262b0b72 commit bash-20201211 snapshot 2020-12-18 15:26:49 -05:00