Commit Graph

258 Commits

Author SHA1 Message Date
Chet Ramey c1d9c08853 history library can now read history from non-regular files; fix for readline char search and macros; better fix for PROMPT_COMMAND and aliases ending in newlines; fix for casting COMMAND * and SIMPLE_COM * when parsing |&; fix to avoid undefined behavior when performing left and right arithmetic shifts 2025-08-01 16:26:31 -04:00
Chet Ramey 80a8f650a1 change overflow behavior in fltexpr; fix for readline event hook; fix for internal quoting of array subscripts in arithmetic expression contexts 2025-07-11 11:48:01 -04:00
Chet Ramey 727b8d3663 addition to POSIX mode documentation; new translations; update copyrights on some files; update formatted documentation; changes to cut/lcut loadable builtins when supplied -a ARRAY 2025-06-06 12:16:11 -04:00
Chet Ramey 482872ed8b fix to preserve blank lines when reading multiline entries from a history file; fix for completion with quoted command delimiters; updated translations 2025-04-18 11:08:27 -04:00
Chet Ramey 42c6cbd459 add math function calls to fltexpr; HISTFILESIZE documentation updates; help text updates for exxport, history; update translations 2025-04-09 11:14:41 -04:00
Chet Ramey 2e113467f0 minor updates for 5.3-rc1 release 2025-04-04 10:50:15 -04:00
Chet Ramey e009d30dff fix for invalid brace sequence expressions; cosmetic fix to help builtin; documentation and copyright updates; bump version to bash-5.3-rc1; cosmetic locale fixes 2025-03-24 17:07:43 -04:00
Chet Ramey e608233770 revert change that suppressed array subscript expansion when called by the let builtin; fix default file descriptor for <> redirection when printing command 2025-02-24 11:36:49 -05:00
Chet Ramey c3ca11424d fix issue with redirections to bash input file descriptor; new minimal chmod builtin; posix mode change for kill builtin return status; perform additional validation on brace expansion sequence expressions 2025-02-12 11:18:16 -05:00
Chet Ramey 3cfc255efe fix error return from wait builtin in a subshell when there are no children of this shell 2025-02-10 09:27:45 -05:00
Chet Ramey 42c49d621d fix issue with internally quoting multibyte characters; the let builtin now suppresses additional array subscript expansion; small change to how readline export-completions displays filenames; new loadable builtin to do floating-point arithmetic 2025-01-17 11:41:49 -05:00
Chet Ramey fa68e6da80 More Makefile updates; updates for bash-5.3-beta 2024-11-15 11:15:23 -05:00
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 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 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 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