Commit Graph

464 Commits

Author SHA1 Message Date
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 293916f885 apply several fixes tagged for bash-5.3; use memfd_create in anon file open if available; append a newline to parsed command in parse_comsub if last read token was a newline 2023-06-20 11:35:05 -04:00
Chet Ramey fc29a02404 new BASH_MONOSECONDS, BASH_TRAPSIG variables; make checkwinsize work in subshells of interactive shells; fix for declare -f and function names containing `=' 2023-06-20 10:10:11 -04:00
Chet Ramey b91488b51c new readline application variable rl_full_quoting_desired; new programmable completion option "fullquote"; TIMEFORMAT now accepts precisions up to six digits 2023-06-16 12:49:11 -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 e252024788 remove (' from chars that can follow ${' command substitution; fix for empty command substitutions; fix for adding incomplete command substitutions to history; fix for function source file with -c command; fix for EOF at PS2 when ignoreeof is set 2023-05-26 17:29:41 -04:00
Chet Ramey 782af56204 updates for nofork command substitution; changes for z/OS machines; fix for race in wait_for_any_job 2023-05-22 09:37:41 -04:00
Chet Ramey e44e3d50de complete initial implementation of nofork command substitution (${ command; }) 2023-05-15 13:30:18 -04:00
Chet Ramey c375f8f45f subshells should not inherit FIFOs; initial framework for nofork (foreground) command substitutions 2023-05-09 10:33:56 -04:00
Chet Ramey 23935dbe85 asan fuzzing fixes; fix incomplete multibyte chars in history expansion; new nosort GLOBSORT value 2023-05-01 09:59:55 -04:00
Chet Ramey ec02facd13 allow FIGNORE suffixes to match entire pathnames; allow SIGINT received while a function is executing in a loop to break the loop 2023-04-24 15:25:45 -04:00
Chet Ramey d06fefb2ba new GLOBSORT variable 2023-04-16 16:13:14 -04:00
Chet Ramey 15b199c0dd posix mode changes for interp 1150; fix for varassign redirection; fix for nameref in ${param=value} expansion 2023-04-11 09:56:03 -04:00
Chet Ramey 877ff72675 rest of work to convert unwind-protects to ANSI/ISO C; size_t updates; function prototype changes for ANSI/ISO C 2023-04-03 12:07:25 -04:00
Chet Ramey f539a75606 changes to terminate_current_pipeline; fix for adding incomplete command substitutions to the history list; fix dotglob and compgen interaction 2023-03-22 10:27:41 -04:00
Chet Ramey 4c2b574c00 more minor asan fixes 2023-03-20 15:23:38 -04:00
Chet Ramey 437b73931c bash asan fixes; minor documentation updates 2023-03-15 14:59:24 -04:00
Chet Ramey 349e21043e local variables no longer modify external variables if the variable is supplied as a variable assignment preceding a function call; assignments in compound assignment statements don't undergo brace expansion 2023-02-27 10:55:06 -05:00
Chet Ramey 3b4d12c1a2 control default value of patsub_replacement from config-top.h; documentation updates 2023-02-20 11:59:04 -05:00
Chet Ramey d7a6d947df fix for $_ when executing $PROMPT_COMMAND; fix for extra line in history after here-document in command substitution 2023-02-13 10:48:05 -05:00
Chet Ramey 3eab48247a make buffered stream read errors sticky; handle EOF in comments explicitly; don't change point if alias-expand-line or history-expand-line don't expand anything 2023-02-08 11:34:51 -05:00
Chet Ramey 315095ad7f printf changes: %q/%Q altform, %ls/%lc wide character strings; posix mode changes for function execution; allow <( and >) in function names 2023-02-06 10:02:16 -05:00
Chet Ramey de195f9483 changes to function printing; new trap -P option; posix mode changes for command builtin as a declaration utility; changes for compiling without multibyte code 2023-01-31 10:20:31 -05:00
Chet Ramey 0647e53bd1 fix for completing quoted filenames with show-all-if-ambiguous set; avoid signed int overflow in intrand32 2023-01-10 10:23:14 -05:00
Chet Ramey b648a9ab79 fix for optimizing issues in sourced files; change to printf documentation to specify valid format characters 2023-01-03 09:38:11 -05:00
Chet Ramey 001918cdec handle signals at more places in brace expansion; fix for subshells changing terminal process group on signals 2022-12-21 09:57:36 -05:00
Chet Ramey c4a2e37470 fix comsub inside parameter expansion in here-document; fix readline longjmp botch; posix change for unset non-identifier; posix change for double quotes inside backquote comsub in here-document; add missing posix pieces to umask builtin 2022-12-19 09:38:15 -05:00
Chet Ramey 237c32ba16 fix for programmable completion functions setting traps on signals that readline handles 2022-12-06 10:41:41 -05:00
Chet Ramey 94d25f57f1 fix for too-aggressive optimizing forks away in an `eval' command inside a (command) subshell 2022-11-21 11:43:19 -05:00
Chet Ramey e9c75143a2 documentation updates 2022-09-20 10:16:23 -04:00
Chet Ramey 9c317a6ae1 parse extended glob patterns in command substitutions in compatibility mode, even if extglob is not set 2022-08-02 11:16:48 -04:00
Chet Ramey e9e3e4fea5 fixed gcc printf warning; fixed typos in comments and support files 2022-07-26 11:44:09 -04:00
Chet Ramey 87a6e89edc additional tests; documentation updates 2022-07-12 10:19:29 -04:00
Chet Ramey eb2d46d77c updated translations; minor change to DEBUG trap 2022-06-22 10:51:18 -04:00
Chet Ramey ebeba87477 fix mem leak with local BASH_REMATCH 2022-06-03 11:33:35 -04:00
Chet Ramey daff9ecae9 fix for EXIT trap in -c command; suspend -f now suspends even if job control is not enabled 2022-05-18 09:50:42 -04:00
Chet Ramey f9ed510acb fix to RL_STATE_EOF in readline callback mode; fix to edge case for terminating signal handling and exit traps in -c command 2022-05-03 10:43:44 -04:00
Chet Ramey 7a8455e421 fix crash from compgen in a non-interactive shell; globstar option now works with complete -G; wait -p changes; some int->size_t changes 2022-04-19 10:45:39 -04:00
Chet Ramey 3be2a2ca9a minor portability fixes; printf now uses double for floating point conversions by default in posix mode 2022-04-12 09:57:43 -04:00
Chet Ramey 0b9a4b3ae0 readline changes to use xfree; bumped version to bash-5.2-beta 2022-04-08 11:03:02 -04: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 6c4a9a5cb7 efficiency change to command hashing; fix pointer aliasing problem with readline history-search-backward 2022-03-01 09:32:15 -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 780d665cfd fix to multiple alias expansion problem in command substitutions 2022-02-09 10:15:16 -05:00
Chet Ramey 2a1c81bf63 change to behavior of '&' in pattern substitution replacement string; fix for blank lines in multiline commands saved in command history 2022-01-18 10:59:53 -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 5f2dd5ff95 fix for posix semantics for the := word expansion when assigning array elements 2021-12-14 14:18:00 -05:00