252 Commits

Author SHA1 Message Date
Chet Ramey 8085ee1396 fix the expansion of $@ on the rhs of an assignment statement to be more consistent; fix mapfile to only look up the variable again if a callback is invoked; fix memory leak when converting a variable to an array 2026-06-08 10:31:31 -04:00
Chet Ramey 669b32f676 interim fix for generic list functions to avoid pointer aliasing issues; documentation updates 2026-05-08 11:36:36 -04:00
Chet Ramey 55f721c51e update fix to save history if fatal signal arrives during $PROMPT_COMMAND execution; fix issue with extglob and empty patterns preceding pattern beginning with a `.' 2026-03-24 10:10:30 -04:00
Chet Ramey 1f292e433e fix for heuristic to detect case statements when parsing $() command substitutions to find history expansion; fix for history not being saved if a SIGHUP arrives during $PROMPT_COMMAND execution; workaround for Cygwin bug that results in bash incorrectly calculating the system pipe size 2026-03-09 14:54:45 -04:00
Chet Ramey 8ea1a222df the `history' builtin prints error messages for certain read and write errors; implementation of new form of nofork command substitution that does not remove trailing newlines 2026-01-18 17:48:33 -05:00
Chet Ramey a43e08df2d history builtin has a -H option to display history entries as they would be written to the history file; history builtin now takes a START-END range specifier for listing; fix stray semicolon when printing shell functions containing a case command; changes to stdin redirection detection in preparation for POSIX interp 1913 2026-01-05 11:57:18 -05:00
Chet Ramey 722a855459 New -D option for fc to force it to delete history entries selected for editing and re-execution; change readline edit-and-execute-command bindable command so it acts more like an accept-line followed by a command execution than an editing command that returns to readline() 2025-12-30 15:55:55 -05:00
Chet Ramey f27bf94a79 implementation of printf '%N$' numbered argument conversion specifier, compatible with coreutils 2025-12-05 15:50:38 -05:00
Chet Ramey 6a48b39bba read builtin fixes for CHERI environment; use CLOCK_GETTIME in gettimeofday replacement; readline fix to not optimize typeahead while defining a keyboard macro; fix for crash with unset nameref variable; make sure to save currently executing command around running DEBUG trap 2025-10-14 14:21:00 -04:00
Chet Ramey 25c6aa5b23 fix issue with making local variables from the temporary environment arrays; documentation updates; fix read builtin to check that the delimiter is not a newline before changing the terminal settings with a zero-length timeout 2025-10-06 17:20:10 -04:00
Chet Ramey fbd078be0a builtins now return success if supplied --help; use groff to build HTML man pages; reset mbstate if $'...' strings read an invalid multibyte sequence; read -t 0 now looks at other options (-n/-N/-d) and sets the terminal state appropriately 2025-10-01 10:44:10 -04:00
Chet Ramey b88cd1c366 experimental change to use groff instead of man2html for HTML man pages; man page updates for reserved words; fix for pattern matching bracket expression ranges; readline changes to disallow defining some recursive keyboard macros 2025-09-18 17:26:51 -04:00
Chet Ramey a451bfc3f5 declare builtin changes to reject -i when used with -n; readline changes to make control characters visible in search strings; readline signal handling changes to avoid data corruption and UAF; documentation updates for more consistent quoting 2025-09-04 12:29:57 -04:00
Chet Ramey ff6cfb1464 allow the --with-curses configure argument to specify a library name; fix for case pattern lists containing both null and non-null strings; fix for bug with PS1 expansion containing an arithmetic syntax error 2025-08-08 12:11:17 -04:00
Chet Ramey 535a8150b6 fix for command substitution string parsing that resulted in top-level unwind-protects being run in the wrong spot; fix for delimiter byte being part of invalid multibyte character in read builtin 2025-05-04 17:21:25 -04:00
Chet Ramey 7731dc5c4d fix for read builtin and invalid multibyte characters followed by the delimiter; updated formatted documentation; new bash.pot file with updated strings; updated translations 2025-04-22 10:39:43 -04:00
Chet Ramey 2e113467f0 minor updates for 5.3-rc1 release 2025-04-04 10:50:15 -04:00
Chet Ramey c3997d51f8 documentation updates for arithmetic expansion and array subscripts; update BASH_COMMAND for subshells; fix potential file descriptor leak in here document pipes 2025-03-07 10:23:58 -05:00
Chet Ramey 25e213a551 taking the length of an unset variable subscripted with anything but @ or * is a fatal error; quote results of u prompt expansion; posix mode changes for exiting on -e when in a shell function; fix readline redisplay issue when bold prompt spans multiple lines 2025-01-24 11:21:16 -05:00
Chet Ramey 2ea356081d documentation updates; test suite updates to reduce extraneous diff output; don't export BASHOPTS into running tests 2025-01-09 16:13:16 -05: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 5b239ebbd2 another set of documentation updates; fix readline problem with history entry undo list corruption 2024-12-10 11:43:08 -05:00
Chet Ramey 22417e7881 new readline command `export-completions'; update documentation; update translations with new strings; Makefile updates 2024-11-21 10:31:38 -05:00
Chet Ramey b116cfe57d fix for readline redisplay issue in C locale; fix for small memory leak in termcap replacement library; updates to formatted documentation; fix problem with distclean and y.tab.h; Makefile clean targets updates 2024-11-08 11:13:57 -05:00
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 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 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 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 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 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 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 886e4e68be better parser error messages; add -p option to source builtin 2024-06-21 10:38:39 -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 e6795c05dd fix coproc code to close previous coproc file descriptors if another one is created; start at setting additional coproc states; change release status to bash-5.3-alpha 2024-04-06 16:06:11 -04:00
Chet Ramey 03c8c43b79 man page typesetting updates for compatibilityand layout issues 2024-04-05 09:03:52 -04:00
Chet Ramey 9b2a8c6d65 internal fixes for declare; additional tests for broken wcwidth() 2024-02-27 14:40:31 -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 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 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 b30389070a renamed several functions beginning with legal_; changed all callers 2023-11-06 09:26:02 -05:00
Chet Ramey 7a698806d1 changes to quoting for some globbing characters; regularize error behavior of builtins that take numeric arguments and complain about too many arguments 2023-10-11 11:40:08 -04: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 94bce520e8 more error checking for hash builtin; fix for [[ builtin and some test syntax errors 2023-09-13 16:25:28 -04:00