Commit Graph

232 Commits

Author SHA1 Message Date
Chet Ramey ab17ddb7af fix for rare readline case where read(2) succeeds but also gets a signal as it is returning to user mode; fix for bash completion filename quoting when there is more than one match 2025-08-22 16:10:45 -04:00
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 a23c863e75 fix for crash when executing PROMPT_COMMAND; fix for readline crash when rl_save_prompt is not followed by rl_set_prompt; fix for bash C-xg key binding listing completions; fix for precision overflow issue in printf; fix for readline non-multibyte builds 2025-07-09 16:33:00 -04:00
Chet Ramey 12ea4bfec3 update formatted documentation; fix typo in bashline.c; update system-dependent tests 2025-07-08 09:59:39 -04:00
Chet Ramey b35866a289 updated translations; documentation updates; update copyright dates 2025-06-27 14:07:28 -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 bb56d620e0 more documentation updates; fix two issues when displaying readline completions; fix another use-after-free error with readline undo lists 2024-12-13 09:51:46 -05:00
Chet Ramey 5d53be184e update copyright dates; fix problem with ignoring completions 2024-07-16 09:38:09 -04:00
Chet Ramey 9cea457aef fix minor errors uncovered by address sanitizer; work around android issue with read -e -u; fix minor memory leaks; make spell-correct-shellword work with negative arguments; fix readline change-case on invalid multibyte character 2024-05-28 09:19:03 -04:00
Chet Ramey 6fb61ee126 allow some job notifications while running $PROMPT_COMMAND; allow notifications while running bind -x commands; change some translated messages to be more uniform 2024-05-06 11:25:35 -04:00
Chet Ramey 136cdf8108 posix change for cd; fix for command word completion where the command names contain spaces; fix for error-and-output redirection with quoted filename 2024-04-10 21:17:29 -04:00
Chet Ramey 2532a2ccef fix parser state with funsubs in PS2 and line continuations; fix for @P transformation in prompt strings 2024-04-01 12:20:58 -04:00
Chet Ramey e1dd98a1db additional error checking for declare; changes for MSYS32; add support for unlocked-io stdio functions; several C23 changes 2024-02-16 10:55:13 -05:00
Chet Ramey 6bd75b8d63 performance improvements for large history lists; fix problem with not unwind-protecting current command and name while executing 2024-02-14 09:43:03 -05:00
Chet Ramey dc97ded434 fix nofork comsub overwriting currently executing command; free readline undo list on signal in callback mode; avoid disabling readonly when assigning variables from the environment; fix bug with shell-expand-line and $'...' quoting inside command substitutions; add `bash-vi-complete' as bindable command name 2024-02-09 10:30:02 -05:00
Chet Ramey 138f3cc359 make completion of nofork comsubs a little better; fix leaks on signals for non-incremental searches; fix leaks in readstr interface 2024-01-27 16:28:31 -05:00
Chet Ramey 9d51df7546 fix off by one error when dequoting completed filenames; initial cut at readline identifying ANSI terminals; print coproc commands without coproc name if the coproc is a simple command 2023-12-13 10:52:43 -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 b30389070a renamed several functions beginning with legal_; changed all callers 2023-11-06 09:26:02 -05:00
Chet Ramey 2eb9a3699b fix for subshells resetting job stats; new hook for rewriting part of completion word 2023-10-05 09:02:27 -04:00
Chet Ramey ab99fdbca6 new readline application hook to print macro key sequences and values; change bind -X default output format; bind -x accepts more input formats; quoting changes for pathname expansion patterns 2023-08-01 09:59:09 -04:00
Chet Ramey 8418224f32 changes for quoting special and multibyte characters in glob patterns; changes to filename unicode normalization on macOS for globbing and filename completion; send SIGCONT unconditionally to just-restarted job in fg/bg 2023-07-25 10:18:35 -04:00
Chet Ramey ad39c5c3d7 change redisplay to handle some cases where the line consumes more than the number of physical screen lines; add regerror() error messages if regular expression compilation fails; make sure active region readline variables are displayed with bind -v; partial fix for bind -x and commands containing quoting characters 2023-07-19 15:33:45 -04:00
Chet Ramey 7f7ee0e9c6 fix for leak when completing command word with glob pattern that matches multiple files; preserve export attribute when unsetting local variable in case it is reset; fix for using nl_langinfo when performing charset conversions 2023-07-17 17:35:59 -04:00
Chet Ramey fa98070927 fix minor mem leaks; fix problem with parser state during a DEBUG trap with -T enabled in a shell function; fix crash with propagating array variables; fix overflow in compound array appending 2023-06-28 14:48:09 -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 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 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 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 deedd41cf4 changes for PATH being the empty string; more minor asan fixes 2023-03-17 16:03:11 -04:00
Chet Ramey 437b73931c bash asan fixes; minor documentation updates 2023-03-15 14:59:24 -04: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 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 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 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
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 d70b53393e new variables to control the active region color; minor fix to $? 2022-02-09 10:21:04 -05:00
Chet Ramey 6e1ab9a367 fix to expand $'...' and $"..." in certain word expansions while expanding lines of here-document data 2022-01-25 09:33:34 -05:00
Chet Ramey be7fc0525e minor change to here-doc processing in compoind lists; change to completion to avoid quoting word expansion characters like `$' 2022-01-04 11:05:30 -05:00
Chet Ramey ea32b611f7 new "@k" parameter transformation; minor completion fix for uncommon case 2021-08-23 15:54:49 -04:00
Chet Ramey 2adf06d9f8 minor fixes; readline API change for rl_completer_word_break_characters ; readline fixes for MSVC 2021-08-19 15:48:31 -04:00