Commit Graph

874 Commits

Author SHA1 Message Date
Chet Ramey 935fe11af0 more small fixes to command printing code; simplify readline username completion if getpwent is not available 2023-07-03 10:29:28 -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 829aad36db fix for exit builtin when ignoreeof set; better resource deallocation when completion is interrupted; fix small memleak in globbing; compile out obsolete readline typedefs by default; readline callback mode doesn't print signal chars by default; xtrace mode prefers to use $'...' quoting if required 2023-06-26 17:09:08 -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 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 d44a45afbc fix for optimizing forks away if bash -ic command is executed 2023-06-12 17:46:30 -04:00
Chet Ramey 353e3749e9 minor readline fixes for isearch, insert-char,quoted-insert, and do-lowercase-version; fix buffer overflow with printf %b; work around issues with isblank in UTF-8 locales on macOS; fixes for the enable builtin 2023-05-31 10:40:39 -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 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 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 7aae19bfe4 changes to non-incremental searching to avoid pointer alias problems, undo issues 2023-04-27 14:56:35 -04:00
Chet Ramey d052bd6fd9 readline and completion fixes 2023-04-20 11:27:36 -04:00
Chet Ramey a46164736e new compgen -V option to store completions in an array 2023-04-18 10:25:47 -04:00
Chet Ramey d06fefb2ba new GLOBSORT variable 2023-04-16 16:13:14 -04:00
Chet Ramey ec9447ce93 fix minor asan bug; $(<nosuchfile) is no longer a fatal error with errexit enabled; fixes for vi t/T motion commands 2023-04-05 16:07:04 -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 1efe6d6b69 remove more old, unused files 2023-03-28 15:54:06 -04:00
Chet Ramey 57d4dc15ff small asan fixes; size_t and other ANSI C changes; restore readline variables in compgen builtin 2023-03-27 16:38:37 -04:00
Chet Ramey 429bd8199c remove some unused files 2023-03-27 15:02:32 -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 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 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 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 72c4a0f40d add support for case-insensitive incremental and non-incremental history searches in readline; controlled by new bindable readline variable `search-ignore-case' 2023-02-17 17:13:04 -05:00
Chet Ramey 5857180657 changes to placing rl_point after alias-expand-line or history-expand-line 2023-02-15 15:31:02 -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 d0bc56a325 allow async ignored signals to be reset to SIG_DFL; give rl_input_available_hook precedence in readline:rl_gather_tyi 2023-01-24 11:14:22 -05:00
Chet Ramey a37b2af985 fix terminal pgrp issue with async jobs in non-interactive shells; history_expand change to first argument 2023-01-20 14:31:00 -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 81e3a4fb07 first set of ANSI C changes: remove PARAMS 2023-01-03 10:01:11 -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 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 198210c58f more changes for bracket expressions in patterns 2022-12-02 11:41:48 -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 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 407d9afca0 fixes for bracket expressions in pathname expansion; changes for select/pselect; jobs builtin now removes terminated jobs from the jobs table after notifying 2022-11-18 11:01:00 -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