Commit Graph

281 Commits

Author SHA1 Message Date
Chet Ramey 2610d40b32 documentation updates; fix for null commands with redirection expansion errors; changes to job notifications for interactive shells sourcing files; fix underflow issue with word_top 2024-08-28 11:42:10 -04:00
Chet Ramey dbd27e54cc fix to backslash quoting of glob pattern characters; allow newly-loaded compspecs to be used in more cases; fixes to the cross-compiling environment; avoid potential overflow in GLOBSORT processing 2024-05-20 10:48:44 -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 8c8daff1e3 minor updates to several tests 2024-04-22 09:19:14 -04:00
Chet Ramey a06616a689 fix recogniation of IN token in for command nested within case command 2024-04-15 10:11:38 -04:00
Chet Ramey 167a9248f9 add more overflow handling for printf builtin; start incorporating C23 stdckdint ; rework PRIdMAX replacements 2024-03-15 12:55:39 -04:00
Chet Ramey bf944fe91f fixes to printf for wide characters in single-byte locales; fixes to job notification for -c command shells 2024-03-13 09:33:32 -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 9702b74a28 test suite fixes for some locales; fix to make bind -x bindings work with negative arguments; several portability fixes from pkgsrc; fixes for funsubs with return builtin state and local OPTIND 2023-12-04 16:14:53 -05:00
Chet Ramey 55a224da44 fix for fdflags loadable builtin; new strptime loadable builtin; enable -f doesn't fall back to current directory if using BASH_LOADABLES_PATH; new operator for rl_complete_internal that just dumps possible completions 2023-11-24 12:39:17 -05:00
Chet Ramey f491b93350 allow quoted-insert while reading readline search strings; force filename argument to enable -f without a slash to read from the current directory; update BASH_LOADABLES_PATH documentation 2023-11-14 10:20:05 -05:00
Chet Ramey b30389070a renamed several functions beginning with legal_; changed all callers 2023-11-06 09:26:02 -05:00
Chet Ramey 09c32bc946 fix for @E transformation; fixes for failures in arith for and for commands; style changes to man page; fix for bug in read builtin if it assigns to IFS 2023-10-10 12:00:19 -04:00
Chet Ramey 32826f717d fix for race condition with process creation and terminal process group; changes to printf builtin for multibyte characters 2023-09-11 10:09:22 -04:00
Chet Ramey f4683835d8 documentation updates for arrayname[0]; update trace/debug order for some compound commands 2023-08-28 12:16:01 -04:00
Chet Ramey b64a7d8cbe fix for LINENO after shell errors; fix for crash with !&; new read -E option 2023-08-18 16:41:55 -04:00
Chet Ramey dc91b3f509 fixes for read builtin with backslash escapes; change history builtin behavior when HISTFILE is unset or null; change to compopt to make it use the name from the actual compspec it uses; fix for executing coproc in functions; fix for array variables and declare -g 2023-08-04 11:06:57 -04:00
Chet Ramey 2f09fa19cf fix cd when user assigns a value to OLDPWD; fix android issue with blocked system calls; fix historical use of test -t; fix issue with foreground-TSTP async jobs 2023-07-10 09:41:30 -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 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 d06fefb2ba new GLOBSORT variable 2023-04-16 16:13:14 -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 277c21d2b2 readline fix for rl_undo_list pointer aliasing; arith command sets word_top 2023-03-06 10:50:45 -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 8fd8cd8f7b set of portability changes from lint/asan/ubsan 2023-01-07 13:18:20 -05:00
Chet Ramey 81e3a4fb07 first set of ANSI C changes: remove PARAMS 2023-01-03 10:01: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 49918d90cd fix for parameter length expressions for nameref variables expanding to invalid identifiers 2022-12-13 12:57:47 -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 38d9d3590f fix for readline to handle setlocale() returning NULL 2022-10-07 17:44:03 -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 b9ed20acfd modify readline so it adjusts internal variables when the locale changes between calls to readline() 2022-08-15 12:32:00 -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 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 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 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 bf09dfc08d document new readline variables "active-region-start-color" and "active-region-end-color" 2022-02-11 09:12:39 -05:00
Chet Ramey 5e6f45d9b1 getting ready for bash-5.2 2022-01-11 15:53:25 -05:00
Chet Ramey 567c0bc2ed fix to make += work with dynamic integer vars like RANDOM 2021-12-13 09:37:23 -05:00
Chet Ramey 71a11dbeb4 portability and compatibility fixes 2021-12-06 09:17:41 -05:00
Chet Ramey 006856edf6 minimal-config changes; $"..." support is now a configuration option 2021-12-01 16:40:52 -05:00