Commit Graph

303 Commits

Author SHA1 Message Date
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 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 a629483b0e fix for adding ;' to nofork command substitution; IBM z/OS changes; fix for files ending with backslash; fix for expanding compound assignment in an alias; fix for printing here-documents in if statements; change to make enable -fn load a builtin but mark it as disabled; fix for removing FIFOs during .'; fix for single-quoting translations 2023-06-03 14:21:03 -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 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 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 64b2b7c08d fixes for glibc time/gettimeofday issue; fix issue with history file containing one line too few if saving timestamps; fix for signal arriving while displaying readline completions 2023-03-27 09:28:12 -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 deedd41cf4 changes for PATH being the empty string; more minor asan fixes 2023-03-17 16:03:11 -04:00
Chet Ramey 01084938a1 script read errors are now fatal errors; fixes for readline asan issues 2023-03-13 17:20:51 -04:00
Chet Ramey 277c21d2b2 readline fix for rl_undo_list pointer aliasing; arith command sets word_top 2023-03-06 10:50:45 -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 ede7124fd4 fix for EOF while reading a quoted string; allow window size updates during trap commands or `bind -x' commands 2023-02-22 09:36:28 -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 992bd861ab fix for multi-level alias expansion with trailing space 2023-01-18 13:59:27 -05:00
Chet Ramey a5d2617c7a fixes for SIGINT handling in asynchronous lists 2023-01-17 13:31:46 -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 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 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 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 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 96115811d8 clarify some arithmetic error messages; fix for read builtin readline timeouts; initial implementation of preserving double quotes in readline completion; add starting line number to some "EOF reached" parser error messages 2022-11-14 12:08:12 -05: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 5d423d8ab3 fixes for posix-mode alias expansion in command substitutions; fix for multiple function definitions with here-documents inside command substitutions 2022-10-18 15:27:25 -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 b7b9d7c306 fix for problem with command substitutions inside aliases 2022-09-01 10:25:58 -04:00
Chet Ramey 0ecda9fcc3 fix parser problem with auto-setting extglob inside command substitution inside conditional command pattern 2022-08-30 11:42:30 -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 52ae6c3f5d fix for local variable problem in EXIT trap; add sed-like behavior for null patterns in pattern substitution 2022-07-19 11:42:23 -04:00
Chet Ramey 87a6e89edc additional tests; documentation updates 2022-07-12 10:19:29 -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 d0cd67ee13 fix up parser flags command substitution parsing inherits; using temp files for here-documents is now a compatibility mode option 2022-04-27 16:16:59 -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 68ab281e30 change to how invisible characters in prompt string expansions are escaped 2022-03-18 10:23:53 -04:00
Chet Ramey b4e5e5505c fix to readline redisplay of invisible chars at end of line; fix to here-document delimiter quote removal; prompt expansion makes invisible chars in w, W, s visible 2022-03-07 09:21:09 -05:00