Commit Graph

361 Commits

Author SHA1 Message Date
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 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 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 896df2874a fix for incomplete multibyte characters in pasted input; fix for syntax errors while entering compound assignments; fix for jobs not removing jobs from the list in a SIGCHLD trap; fix for PS0 that contains a command substitution after interactive shell reads EOF; fix for non-interactive shell reading from stdin and evaling a command that dups stdin 2023-05-04 11:19:43 -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 d052bd6fd9 readline and completion fixes 2023-04-20 11:27:36 -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 d267701a91 more ANSI/ISO C changes; start on converting the unwind-protect framework to ANSI C 2023-03-29 15:43:46 -04:00
Chet Ramey 727e92c806 more ANSI/ISO C cleanups 2023-03-28 16:34:56 -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 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 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 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 a5d2617c7a fixes for SIGINT handling in asynchronous lists 2023-01-17 13:31:46 -05:00
Chet Ramey 8fd8cd8f7b set of portability changes from lint/asan/ubsan 2023-01-07 13:18:20 -05:00
Chet Ramey 2e725f7346 final set of ANSI C changes 2023-01-05 15:09:06 -05:00
Chet Ramey 5b512e1121 fourth set of ANSI C changes: size_t; rest globskipdots to enabled default in subshells 2023-01-04 09:18:59 -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 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 49918d90cd fix for parameter length expressions for nameref variables expanding to invalid identifiers 2022-12-13 12:57:47 -05:00
Chet Ramey e8652353ae fixes for HAVE_SELECT/HAVE_PSELECT; change some warning messages for nameref loops; run unwind-protects if max function nesting level is exceeded 2022-11-29 09:32:40 -05:00
Chet Ramey 3c9dd45657 fix for memory leak with unset associative array elements; last set of changes to globbing bracket expressions; fix for timing subshell commands 2022-11-23 17:03:34 -05:00
Chet Ramey 31f4d468b6 fix for displaying `local -'; fix for trap and POSIX interp 1602; fix for readline redisplay when the last invisible character in the prompt string is not on the last line 2022-11-07 10:25:28 -05:00
Chet Ramey 88d69b4fa2 fix for @ and * as associative array keys in arithmetic expressions; minor readline callback mode changes 2022-11-02 16:23:12 -04:00
Chet Ramey b48c234286 change to binary file detection; fix for negative fractional read timeout; check more often for terminating signals in subshells; clear process substitutions in subshells; wait only for last procsub if `wait' is called without arguments 2022-10-31 10:08:36 -04:00
Chet Ramey 6711d2dc77 fix for interactive shell parser reset issue; fix for nested array subscript quoting issue; fix for process substitutions being closed to early in for loops 2022-10-24 10:09:52 -04:00
Chet Ramey 055a4552c9 change to readline callback signal handling; fix message when popping shell function context; handle new terminating signals inside terminating signal handler; fix to pattern substitution with null replacement and null string; fix to alias expansion when we get a SIGINT while entering a command substitution in an interactive shell 2022-10-15 13:34:51 -04:00
Chet Ramey 55a8311420 fix for line numbers for nested function declarations; fix execve error for ENOENT 2022-10-11 16:17:22 -04:00
Chet Ramey 22f21b760e fixes for extended glob in compat mode; fix for brackets appearing in nested parameter expansions 2022-10-07 17:46:16 -04:00
Chet Ramey 43e861c2cd fix crash with unset arrays in arithmetic constructs ; change to avoid printing foreground job statuses when we don't want to 2022-10-04 11:58:54 -04:00
Chet Ramey 7547afdf73 fix for exec builtin when the command is not found 2022-08-23 09:58:22 -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 67e47f224c changes to text representation of parsed command substitution; small changes to tests 2022-07-06 10:05:59 -04:00
Chet Ramey eb2d46d77c updated translations; minor change to DEBUG trap 2022-06-22 10:51:18 -04:00
Chet Ramey eed646cc60 fix race condition in builtins Makefile 2022-05-31 09:55:01 -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 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 b325b0e96b more changes for here-docs and $'...'; command optimization updates 2022-01-31 09:53:03 -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 fffe80d438 new getconf shell builtin 2021-11-30 10:41:22 -05:00
Chet Ramey 25e43d2c0a removed some commented-out code dependent on the compatibility level now that the version is 5.2 2021-11-22 10:11:06 -05:00
Chet Ramey d384b92874 update version to 5.2-devel, update copyright dates 2021-11-08 09:53:24 -05:00
Chet Ramey b06200f7a1 minor fixes to command -p, posix-mode tilde expansion, line numbers when in ERR traps 2021-11-04 15:45:55 -04:00
Chet Ramey 4657c04050 internal changes to prevent `unset' from scanning associative array subscripts multiple times 2021-11-01 10:42:50 -04:00