Commit Graph

341 Commits

Author SHA1 Message Date
Chet Ramey 0864568359 fix for nofork comsubs undoing enclosing command's redirections; fix for binding _ variable in the temporary environment; fix for crash when making special variables arrays; accommodate IFS as array variable; fix for SIGINT arriving while cleaning up a readline incremental search 2025-08-20 11:08:28 -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 0f0cea342e updated translations; back out change allowing quoted characters and process substitution words in function names; rework readline change for GNU Hurd and ncurses 2025-06-16 13:47:40 -04:00
Chet Ramey 15df599354 check for delimiter_depth being 0 before popping off the stack (reset_parser resets it); make EOFs while reading here-doc delimiters sticky; when reading arith command, push back a character after the first closing paren that isn't a second close paren to fix backslash issue 2025-04-30 16:19:08 -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 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 4917f2859c fixes for a couple of autoconf macros; update exit builtin for POSIX interp 1602; include more info in EOF error message when parsing compound command; update Makefiles by removing some variables, initializing others; update dependencies on version.h 2024-10-28 15:05:35 -04: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 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 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 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 d3e86e66ce reap and store status of process substitutions even when there are no jobs; fix issue with optimizing shell functions that set RETURN trap; fix issue with procsubs and eval allowing '<file'; fix for fignore and ignorning completions 2024-07-11 12:03:23 -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 dbb48b9786 avoid storing extra copy of function bodies; fix some minor memory leaks 2024-06-04 12:23:18 -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 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 d17d185fff fix for crash without arrays built in; allow some job status changes while the jobs list is frozen; change format for interactive shell terminated job notifications; allow some job notifications while running traps 2024-05-06 11:15:17 -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 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 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 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 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 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 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 ba57a3e752 readline fix for do-lowercase-version; fix for reading here-documents from aliases 2023-12-05 11:54:24 -05:00
Chet Ramey b30389070a renamed several functions beginning with legal_; changed all callers 2023-11-06 09:26:02 -05:00
Chet Ramey b348b871b4 small change to brace expansion to inhibit some error messages; changes to printf builtin for precision and field widths 2023-10-23 09:50:02 -04:00
Chet Ramey 1e1a0342a4 changes for backslashes in glob patterns and single-quoted strings; brace expansion knows '${...}' expansions; read returns status 2 if trying to assign to a readonly variable 2023-10-17 11:09:23 -04:00
Chet Ramey 1cc5a8f752 use size_t for string indices; document rl_reparse_colors 2023-09-22 09:50:33 -04:00
Chet Ramey aab2c1fb1d fix typo in readline custom LS_COLORS extension; fix so `time' is recognized as a reserved word after $( and ${; don't run traps while parsing a command substitution 2023-09-07 17:09:24 -04:00
Chet Ramey 944ac21503 fix for readline numeric args and bind -x commands; fix for printing null simple commands; fix to make read builtin callable recursively; fix for ignoreeof with nofork comsubs in PS1 2023-08-23 16:32:40 -04:00
Chet Ramey 85b466d64f add more characters to inhibit history expansion; allow asynchronous !' and time' commands without a pipeline 2023-08-11 10:32:40 -04:00
Chet Ramey f6a78e24d8 fixes for $LINENO in multi-line simple commands; printf out-of-range values now cause a non-zero return status 2023-07-28 11:35:44 -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 a629483b0e fix for adding ;' to nofork command substitution; IBM z/OS changes; fix for files ending with backslash; fix for expanding compound assignment in an alias; fix for printing here-documents in if statements; change to make enable -fn load a builtin but mark it as disabled; fix for removing FIFOs during .'; fix for single-quoting translations 2023-06-03 14:21:03 -04:00
Chet Ramey e252024788 remove (' from chars that can follow ${' command substitution; fix for empty command substitutions; fix for adding incomplete command substitutions to history; fix for function source file with -c command; fix for EOF at PS2 when ignoreeof is set 2023-05-26 17:29:41 -04:00
Chet Ramey 782af56204 updates for nofork command substitution; changes for z/OS machines; fix for race in wait_for_any_job 2023-05-22 09:37:41 -04:00
Chet Ramey e44e3d50de complete initial implementation of nofork command substitution (${ command; }) 2023-05-15 13:30:18 -04:00
Chet Ramey c375f8f45f subshells should not inherit FIFOs; initial framework for nofork (foreground) command substitutions 2023-05-09 10:33:56 -04:00
Chet Ramey 896df2874a fix for incomplete multibyte characters in pasted input; fix for syntax errors while entering compound assignments; fix for jobs not removing jobs from the list in a SIGCHLD trap; fix for PS0 that contains a command substitution after interactive shell reads EOF; fix for non-interactive shell reading from stdin and evaling a command that dups stdin 2023-05-04 11:19:43 -04:00
Chet Ramey d06fefb2ba new GLOBSORT variable 2023-04-16 16:13:14 -04:00
Chet Ramey 15b199c0dd posix mode changes for interp 1150; fix for varassign redirection; fix for nameref in ${param=value} expansion 2023-04-11 09:56:03 -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 f539a75606 changes to terminate_current_pipeline; fix for adding incomplete command substitutions to the history list; fix dotglob and compgen interaction 2023-03-22 10:27:41 -04:00