Commit Graph

945 Commits

Author SHA1 Message Date
Chet Ramey ee3b91dfd9 do not require leading . for rl color prefix etension; fix for isearch in single-byte locales; next set of doc updates (SIGNALS); add warning for invalid job id; allow function names to be non-identifiers in posix mode 2024-10-26 12:39:17 -04:00
Chet Ramey 474743f2da next set of documentation updates (word splitting), rearrange a test in readline's tilde expansion to avoid touching uninitialized data 2024-10-22 15:40:46 -04:00
Chet Ramey 261c6e8cc6 next set of documentation fixes: update formatting, make filename formatting consistent, typeset the name readline consistently 2024-10-18 12:19:48 -04:00
Chet Ramey 3ed028ccec next set of documentation updates (job control); fix read timeout problem; fix bash-source-fullpath default; brace expansion integer overflow fix; fix for help output for loadable builtins 2024-10-15 10:02:17 -04:00
Chet Ramey 5edfaa45e7 third set of documentation updates: readline and history 2024-10-12 14:18:07 -04:00
Chet Ramey c7439376a3 next set of documentation updates, includes readline 2024-10-11 09:41:57 -04:00
Chet Ramey 9d1eb43fdd First set of documentation updates to man page, texinfo manual 2024-10-08 09:52:21 -04:00
Chet Ramey 254081c097 fix for set -e and compound commands inverting return status; tty fix for fg' from a key binding; posix mode wait -n' can return notified jobs; off-by-one error in history word tokenization; new configure option to set bash_source_fullpath 2024-09-27 12:00:46 -04:00
Chet Ramey 8d74195d7f in posix mode, don't notify about other terminated jobs if the jobs builtin is listing individual jobs; in posix mode, if `wait pid' finds pid in bgpids, remove it from there 2024-09-20 14:47:56 -04:00
Chet Ramey bc5ddc8698 wait -n' notifies on a job it returns; in posix mode, wait' defers notification on a reaped pid unless the shell is interactive, as posix now specifies 2024-09-11 15:54:24 -04:00
Chet Ramey 5576c26da8 track initial line number of {'', (', and `[[' compound commands; don't have readline check for signals while it's handling a signal; fix for malformed printf time format specifier 2024-09-04 17:26:15 -04:00
Chet Ramey 2e01122fe7 add bindable readline variable `force-meta-prefix' to allow users to tell readline how their Meta key works 2024-08-23 15:08:31 -04:00
Chet Ramey e327891b52 fix for printf with broken strtold; fix readline reading specified number of multibyte characters; fix read builtin to deal with invalid utf-8 continuation character as delimiter; turn off -n if supplied at interactive shell invocation 2024-08-21 16:11:01 -04:00
Chet Ramey cf694865de optimize asynchronous function invocations; fix for running return from trap while sourcing a file; restore completion function if read -e is interrupted 2024-08-15 16:37:54 -04:00
Chet Ramey 772e7e760e fix issue with read builtin delimiter in invaild mutibyte char; fix crash if caller passes negative count argument to one of the history file writing functions 2024-08-09 10:01:38 -04:00
Chet Ramey e45ec6f76b new bash_source_fullpath shell option; documentation updates for wait builtin 2024-07-30 11:18:17 -04:00
Chet Ramey d5ef283cbd fix issue with invalidating pointer to last procsub; fix boundary issues with small reallocs 2024-07-26 09:30:30 -04:00
Chet Ramey 5d53be184e update copyright dates; fix problem with ignoring completions 2024-07-16 09:38:09 -04:00
Chet Ramey a91b8b0773 doc changes for --rcfile; fix isearch undo list incompatibility with bash-5.2; non-inc search preserves undo lists in history entries 2024-07-06 12:54:57 -04:00
Chet Ramey dbff8b786e updates for several readline examples; update examples in readline documentation; update documentation for --rcfile option 2024-07-02 14:34:40 -04:00
Chet Ramey 5e28a1813c size_t changes for multibyte characters; fix for running debug trap in asynchronous pipeline; remove support for precomputed cache files for cross-compiling; more size_t and ssize_t changes to avoid overflow 2024-06-28 14:16:29 -04:00
Chet Ramey ad1f497a84 use name as GLOBSORT secondary sort key; new GLOBSORT sort specifier: `numeric'; let readonly and export work on local variables at previous scopes for both array and scalar variables 2024-06-21 10:51:53 -04:00
Chet Ramey f65ed506d4 fix issue with interupting timed functions; fix for parsing comsubs inside arith for commands; allow break and continue inside arith for expressions; fix for case-insensitive completion with multibyte chars; fix some minor memory leaks; reset read buffer if it returns partial results on EINTR; fix for undo in execute-named-command 2024-06-03 09:09:11 -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 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 b3d8c8a4e7 change some error messages so the format string isn't the return value from gettext(); work around macos problem with gettext() in child processes; don't try to set tty state while running a trap; don't default to trying enable -f file if the shell is restricted; note that configure now supports --enable-year2038 2024-05-13 11:36:34 -04:00
Chet Ramey 1f42d15864 fix for internal redirection flags colliding with open/fcntl flags; call memfd_create with MFD_NOEXEC_SEAL; fix for setting $BASH in su-started login shell; fix for unsetting $REPLY after nofork comsubs 2024-05-01 11:39:51 -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 03c8c43b79 man page typesetting updates for compatibilityand layout issues 2024-04-05 09:03:52 -04:00
Chet Ramey 4f2595eff3 more fixes for using bool and the stdckdint functions for integer overflow; another update to test from coreutils-9.2 changes; fix memleak in parser state on parse error; Makefile changes for macOS 2024-03-28 12:16:15 -04:00
Chet Ramey b1e7f68032 add stdbool.h detection and replacement for bool; use ckd_mul/ckd_add/ckd_sub where appropriate; update overflow detection in brace expansion and printf builtin 2024-03-18 11:45: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 9b2a8c6d65 internal fixes for declare; additional tests for broken wcwidth() 2024-02-27 14:40:31 -05:00
Chet Ramey 43ecbeb31e fix quoting for positional parameters if not word splitting; retry open for startup files on EINTR; update HISTIGNORE description 2024-02-21 09:42:10 -05: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 092aa45bcc updates to man pages to deal with groff warnings and old troff versions 2024-02-09 10:41:58 -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 35465406cd fix for cd when curent directory doesn't exist; fix wait -n in posix mode to delete any job that it returns; fix some variables where readonly can be circumvented; fix some overflows in printf 2024-02-02 14:39:50 -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 10702735a0 fix two bugs with shells started to run executable scripts inheriting shell state; fix potential buffer overflow in brace expansion; fix crash caused by nofork command substitution not saving enough state 2024-01-23 16:38:15 -05:00
Chet Ramey a4f44b7a11 fix bug parsing a compound assignment inside a (( nested subshell; man page style and formatting updates 2024-01-19 12:05:12 -05:00
Chet Ramey f2fdb5e313 unconditionally define PGRP_PIPE; fix wait in funsubs; fix REPLY as nameref in varsub; fix crash with parse errors in compound assignments 2024-01-14 15:38:36 -05:00
Chet Ramey 584a2b4c9e fix issue with reserved words in case clauses in command substitution; fix issue with double free in compound assignment 2024-01-09 16:00:15 -05:00
Chet Ramey fa0b002927 fix for dequoting words in pretty-print mode; posix mode changes for readonly/export invalid identifier errors 2024-01-02 10:42:34 -05:00
Chet Ramey aa2d23cfac fix history expansion to not perform quick substitution on a new line that's part of a quoted string; save the value of $_ around prompt string decoding 2023-12-19 09:56:34 -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 ba57a3e752 readline fix for do-lowercase-version; fix for reading here-documents from aliases 2023-12-05 11:54:24 -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