]> git.ipfire.org Git - thirdparty/bash.git/log
thirdparty/bash.git
10 months agoin posix mode, don't notify about other terminated jobs if the jobs builtin is listin...
Chet Ramey [Fri, 20 Sep 2024 18:47:56 +0000 (14:47 -0400)] 
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

10 months ago`wait -n' notifies on a job it returns; in posix mode, `wait' defers notification...
Chet Ramey [Wed, 11 Sep 2024 19:54:24 +0000 (15:54 -0400)] 
`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

10 months agotrack initial line number of `{'', `(', and `[[' compound commands; don't have readli...
Chet Ramey [Wed, 4 Sep 2024 21:26:15 +0000 (17:26 -0400)] 
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

11 months agodocumentation updates; fix for null commands with redirection expansion errors; chang...
Chet Ramey [Wed, 28 Aug 2024 15:42:10 +0000 (11:42 -0400)] 
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

11 months agoadd bindable readline variable `force-meta-prefix' to allow users to tell readline...
Chet Ramey [Fri, 23 Aug 2024 19:08:31 +0000 (15:08 -0400)] 
add bindable readline variable `force-meta-prefix' to allow users to tell readline how their Meta key works

11 months agoremove extra directory
Chet Ramey [Thu, 22 Aug 2024 13:15:48 +0000 (09:15 -0400)] 
remove extra directory

11 months agofix for printf with broken strtold; fix readline reading specified number of multibyt...
Chet Ramey [Wed, 21 Aug 2024 20:11:01 +0000 (16:11 -0400)] 
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

11 months agooptimize asynchronous function invocations; fix for running return from trap while...
Chet Ramey [Thu, 15 Aug 2024 20:37:54 +0000 (16:37 -0400)] 
optimize asynchronous function invocations; fix for running return from trap while sourcing a file; restore completion function if read -e is interrupted

11 months agofix issue with read builtin delimiter in invaild mutibyte char; fix crash if caller...
Chet Ramey [Fri, 9 Aug 2024 14:01:38 +0000 (10:01 -0400)] 
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

12 months agonew bash_source_fullpath shell option; documentation updates for wait builtin
Chet Ramey [Tue, 30 Jul 2024 15:18:17 +0000 (11:18 -0400)] 
new bash_source_fullpath shell option; documentation updates for wait builtin

12 months agofix issue with invalidating pointer to last procsub; fix boundary issues with small...
Chet Ramey [Fri, 26 Jul 2024 13:30:30 +0000 (09:30 -0400)] 
fix issue with invalidating pointer to last procsub; fix boundary issues with small reallocs

12 months agojob control cleanups; wait -n can return terminated jobs if supplied pid arguments...
Chet Ramey [Thu, 18 Jul 2024 20:48:17 +0000 (16:48 -0400)] 
job control cleanups; wait -n can return terminated jobs if supplied pid arguments; wait -n can wait for process substitutions if supplied pid arguments

12 months agoupdate copyright dates; fix problem with ignoring completions
Chet Ramey [Tue, 16 Jul 2024 13:38:09 +0000 (09:38 -0400)] 
update copyright dates; fix problem with ignoring completions

12 months agoreap and store status of process substitutions even when there are no jobs; fix issue...
Chet Ramey [Thu, 11 Jul 2024 16:03:23 +0000 (12:03 -0400)] 
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

12 months agodoc changes for --rcfile; fix isearch undo list incompatibility with bash-5.2; non...
Chet Ramey [Sat, 6 Jul 2024 16:54:57 +0000 (12:54 -0400)] 
doc changes for --rcfile; fix isearch undo list incompatibility with bash-5.2; non-inc search preserves undo lists in history entries

12 months agoupdates for several readline examples; update examples in readline documentation...
Chet Ramey [Tue, 2 Jul 2024 18:34:40 +0000 (14:34 -0400)] 
updates for several readline examples; update examples in readline documentation; update documentation for --rcfile option

13 months agosize_t changes for multibyte characters; fix for running debug trap in asynchronous...
Chet Ramey [Fri, 28 Jun 2024 18:16:29 +0000 (14:16 -0400)] 
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

13 months agouse name as GLOBSORT secondary sort key; new GLOBSORT sort specifier: `numeric';...
Chet Ramey [Fri, 21 Jun 2024 14:51:53 +0000 (10:51 -0400)] 
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

13 months agobetter parser error messages; add -p option to source builtin
Chet Ramey [Fri, 21 Jun 2024 14:38:39 +0000 (10:38 -0400)] 
better parser error messages; add -p option to source builtin

13 months agoavoid storing extra copy of function bodies; fix some minor memory leaks
Chet Ramey [Tue, 4 Jun 2024 16:23:18 +0000 (12:23 -0400)] 
avoid storing extra copy of function bodies; fix some minor memory leaks

13 months agofix issue with interupting timed functions; fix for parsing comsubs inside arith...
Chet Ramey [Mon, 3 Jun 2024 13:09:11 +0000 (09:09 -0400)] 
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

14 months agofix minor errors uncovered by address sanitizer; work around android issue with read...
Chet Ramey [Tue, 28 May 2024 13:19:03 +0000 (09:19 -0400)] 
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

14 months agofix to backslash quoting of glob pattern characters; allow newly-loaded compspecs...
Chet Ramey [Mon, 20 May 2024 14:48:44 +0000 (10:48 -0400)] 
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

14 months agochange some error messages so the format string isn't the return value from gettext...
Chet Ramey [Mon, 13 May 2024 15:36:34 +0000 (11:36 -0400)] 
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

14 months agoallow some job notifications while running $PROMPT_COMMAND; allow notifications while...
Chet Ramey [Mon, 6 May 2024 15:25:35 +0000 (11:25 -0400)] 
allow some job notifications while running $PROMPT_COMMAND; allow notifications while running bind -x commands; change some translated messages to be more uniform

14 months agofix for crash without arrays built in; allow some job status changes while the jobs...
Chet Ramey [Mon, 6 May 2024 15:15:17 +0000 (11:15 -0400)] 
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

14 months agofix for internal redirection flags colliding with open/fcntl flags; call memfd_create...
Chet Ramey [Wed, 1 May 2024 15:39:51 +0000 (11:39 -0400)] 
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

15 months agoenable MULTIPLE_COPROCS; bind -p/-P can print out bindings for individual command...
Chet Ramey [Fri, 26 Apr 2024 20:51:04 +0000 (16:51 -0400)] 
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

15 months agominor updates to several tests
Chet Ramey [Mon, 22 Apr 2024 13:19:14 +0000 (09:19 -0400)] 
minor updates to several tests

15 months agofix recogniation of IN token in for command nested within case command
Chet Ramey [Mon, 15 Apr 2024 14:11:38 +0000 (10:11 -0400)] 
fix recogniation of IN token in for command nested within case command

15 months agoposix change for cd; fix for command word completion where the command names contain...
Chet Ramey [Thu, 11 Apr 2024 01:17:29 +0000 (21:17 -0400)] 
posix change for cd; fix for command word completion where the command names contain spaces; fix for error-and-output redirection with quoted filename

15 months agofix coproc code to close previous coproc file descriptors if another one is created...
Chet Ramey [Sat, 6 Apr 2024 20:06:11 +0000 (16:06 -0400)] 
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

15 months agoman page typesetting updates for compatibilityand layout issues
Chet Ramey [Fri, 5 Apr 2024 13:03:52 +0000 (09:03 -0400)] 
man page typesetting updates for compatibilityand layout issues

15 months agofix parser state with funsubs in PS2 and line continuations; fix for @P transformatio...
Chet Ramey [Mon, 1 Apr 2024 16:20:58 +0000 (12:20 -0400)] 
fix parser state with funsubs in PS2 and line continuations; fix for @P transformation in prompt strings

16 months agomore fixes for using bool and the stdckdint functions for integer overflow; another...
Chet Ramey [Thu, 28 Mar 2024 16:16:15 +0000 (12:16 -0400)] 
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

16 months agochange to test builtin for parenthesized expressions when there are more than four...
Chet Ramey [Mon, 25 Mar 2024 14:32:07 +0000 (10:32 -0400)] 
change to test builtin for parenthesized expressions when there are more than four arguments to test; tentative change to @A transformation to output declare commands for local variables

16 months agoadd stdbool.h detection and replacement for bool; use ckd_mul/ckd_add/ckd_sub where...
Chet Ramey [Mon, 18 Mar 2024 15:45:39 +0000 (11:45 -0400)] 
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

16 months agoadd more overflow handling for printf builtin; start incorporating C23 stdckdint...
Chet Ramey [Fri, 15 Mar 2024 16:55:39 +0000 (12:55 -0400)] 
add more overflow handling for printf builtin; start incorporating C23 stdckdint ; rework PRIdMAX replacements

16 months agofixes to printf for wide characters in single-byte locales; fixes to job notification...
Chet Ramey [Wed, 13 Mar 2024 13:33:32 +0000 (09:33 -0400)] 
fixes to printf for wide characters in single-byte locales; fixes to job notification for -c command shells

16 months agofix for printing case pattern lists beginning with "esac"; several fixes for expansio...
Chet Ramey [Mon, 4 Mar 2024 19:59:33 +0000 (14:59 -0500)] 
fix for printing case pattern lists beginning with "esac"; several fixes for expansion when IFS contains DEL

17 months agointernal fixes for declare; additional tests for broken wcwidth()
Chet Ramey [Tue, 27 Feb 2024 19:40:31 +0000 (14:40 -0500)] 
internal fixes for declare; additional tests for broken wcwidth()

17 months agofix quoting for positional parameters if not word splitting; retry open for startup...
Chet Ramey [Wed, 21 Feb 2024 14:42:10 +0000 (09:42 -0500)] 
fix quoting for positional parameters if not word splitting; retry open for startup files on EINTR; update HISTIGNORE description

17 months agoavoid executing unsafe functions if we get a terminating signal while handling SIGCHL...
Chet Ramey [Tue, 20 Feb 2024 14:53:58 +0000 (09:53 -0500)] 
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

17 months agoadditional error checking for declare; changes for MSYS32; add support for unlocked...
Chet Ramey [Fri, 16 Feb 2024 15:55:13 +0000 (10:55 -0500)] 
additional error checking for declare; changes for MSYS32; add support for unlocked-io stdio functions; several C23 changes

17 months agoperformance improvements for large history lists; fix problem with not unwind-protect...
Chet Ramey [Wed, 14 Feb 2024 14:43:03 +0000 (09:43 -0500)] 
performance improvements for large history lists; fix problem with not unwind-protecting current command and name while executing

17 months agofix for background jobs killed by SIGTERM being marked as notified
Chet Ramey [Fri, 9 Feb 2024 15:56:43 +0000 (10:56 -0500)] 
fix for background jobs killed by SIGTERM being marked as notified

17 months agoupdates to man pages to deal with groff warnings and old troff versions
Chet Ramey [Fri, 9 Feb 2024 15:41:58 +0000 (10:41 -0500)] 
updates to man pages to deal with groff warnings and old troff versions

17 months agofix nofork comsub overwriting currently executing command; free readline undo list...
Chet Ramey [Fri, 9 Feb 2024 15:30:02 +0000 (10:30 -0500)] 
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

17 months agofix for cd when curent directory doesn't exist; fix wait -n in posix mode to delete...
Chet Ramey [Fri, 2 Feb 2024 19:39:50 +0000 (14:39 -0500)] 
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

18 months agomake completion of nofork comsubs a little better; fix leaks on signals for non-incre...
Chet Ramey [Sat, 27 Jan 2024 21:28:31 +0000 (16:28 -0500)] 
make completion of nofork comsubs a little better; fix leaks on signals for non-incremental searches; fix leaks in readstr interface

18 months agofix two bugs with shells started to run executable scripts inheriting shell state...
Chet Ramey [Tue, 23 Jan 2024 21:38:15 +0000 (16:38 -0500)] 
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

18 months agofix bug parsing a compound assignment inside a (( nested subshell; man page style...
Chet Ramey [Fri, 19 Jan 2024 17:05:12 +0000 (12:05 -0500)] 
fix bug parsing a compound assignment inside a (( nested subshell; man page style and formatting updates

18 months agounconditionally define PGRP_PIPE; fix wait in funsubs; fix REPLY as nameref in varsub...
Chet Ramey [Sun, 14 Jan 2024 20:38:36 +0000 (15:38 -0500)] 
unconditionally define PGRP_PIPE; fix wait in funsubs; fix REPLY as nameref in varsub; fix crash with parse errors in compound assignments

18 months agofix issue with reserved words in case clauses in command substitution; fix issue...
Chet Ramey [Tue, 9 Jan 2024 21:00:15 +0000 (16:00 -0500)] 
fix issue with reserved words in case clauses in command substitution; fix issue with double free in compound assignment

18 months agofix for dequoting words in pretty-print mode; posix mode changes for readonly/export...
Chet Ramey [Tue, 2 Jan 2024 15:42:34 +0000 (10:42 -0500)] 
fix for dequoting words in pretty-print mode; posix mode changes for readonly/export invalid identifier errors

19 months agofix history expansion to not perform quick substitution on a new line that's part...
Chet Ramey [Tue, 19 Dec 2023 14:56:34 +0000 (09:56 -0500)] 
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

19 months agofix off by one error when dequoting completed filenames; initial cut at readline...
Chet Ramey [Wed, 13 Dec 2023 15:52:43 +0000 (10:52 -0500)] 
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

19 months agoreadline fix for do-lowercase-version; fix for reading here-documents from aliases
Chet Ramey [Tue, 5 Dec 2023 16:54:24 +0000 (11:54 -0500)] 
readline fix for do-lowercase-version; fix for reading here-documents from aliases

19 months agofix for ssh infinite loop when SSH_SOURCE_BASHRC is defined and bash is run in a...
Chet Ramey [Mon, 4 Dec 2023 21:40:00 +0000 (16:40 -0500)] 
fix for ssh infinite loop when SSH_SOURCE_BASHRC is defined and bash is run in a comsub in .bashrc; implement posix interp 1009 in posix mode

19 months agotest suite fixes for some locales; fix to make bind -x bindings work with negative...
Chet Ramey [Mon, 4 Dec 2023 21:14:53 +0000 (16:14 -0500)] 
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

20 months ago.gitignore updates
Chet Ramey [Sat, 25 Nov 2023 19:06:32 +0000 (14:06 -0500)] 
.gitignore updates

20 months agofix for fdflags loadable builtin; new strptime loadable builtin; enable -f doesn...
Chet Ramey [Fri, 24 Nov 2023 17:39:17 +0000 (12:39 -0500)] 
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

20 months agoallow quoted-insert while reading readline search strings; force filename argument...
Chet Ramey [Tue, 14 Nov 2023 15:20:05 +0000 (10:20 -0500)] 
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

20 months agonew bindable readline command `execute-named-command', bound to M-x in emacs mode
Chet Ramey [Mon, 6 Nov 2023 14:44:01 +0000 (09:44 -0500)] 
new bindable readline command `execute-named-command', bound to M-x in emacs mode

20 months agorenamed several functions beginning with legal_; changed all callers
Chet Ramey [Mon, 6 Nov 2023 14:26:02 +0000 (09:26 -0500)] 
renamed several functions beginning with legal_; changed all callers

21 months agochanges to SIGINT handler while waiting for a child; skip vertical whitespace after...
Chet Ramey [Mon, 30 Oct 2023 16:16:07 +0000 (12:16 -0400)] 
changes to SIGINT handler while waiting for a child; skip vertical whitespace after translating an integer

21 months agosmall change to brace expansion to inhibit some error messages; changes to printf...
Chet Ramey [Mon, 23 Oct 2023 13:50:02 +0000 (09:50 -0400)] 
small change to brace expansion to inhibit some error messages; changes to printf builtin for precision and field widths

21 months agochanges for backslashes in glob patterns and single-quoted strings; brace expansion...
Chet Ramey [Tue, 17 Oct 2023 15:09:23 +0000 (11:09 -0400)] 
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

21 months agochanges to quoting for some globbing characters; regularize error behavior of builtin...
Chet Ramey [Wed, 11 Oct 2023 15:40:08 +0000 (11:40 -0400)] 
changes to quoting for some globbing characters; regularize error behavior of builtins that take numeric arguments and complain about too many arguments

21 months agofix for @E transformation; fixes for failures in arith for and for commands; style...
Chet Ramey [Tue, 10 Oct 2023 16:00:19 +0000 (12:00 -0400)] 
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

21 months agofix for subshells resetting job stats; new hook for rewriting part of completion...
Chet Ramey [Thu, 5 Oct 2023 13:02:27 +0000 (09:02 -0400)] 
fix for subshells resetting job stats; new hook for rewriting part of completion word

21 months agochanges to several error messages; more test suite additions
Chet Ramey [Wed, 4 Oct 2023 19:04:31 +0000 (15:04 -0400)] 
changes to several error messages; more test suite additions

22 months agosmall changes to some error messages; greatly expanded builtins tests
Chet Ramey [Thu, 28 Sep 2023 14:47:17 +0000 (10:47 -0400)] 
small changes to some error messages; greatly expanded builtins tests

22 months agoa select command invalid selection variable name is now a fatal error in posix mode...
Chet Ramey [Mon, 25 Sep 2023 19:08:04 +0000 (15:08 -0400)] 
a select command invalid selection variable name is now a fatal error in posix mode; many test suite additions

22 months agouse size_t for string indices; document rl_reparse_colors
Chet Ramey [Fri, 22 Sep 2023 13:50:33 +0000 (09:50 -0400)] 
use size_t for string indices; document rl_reparse_colors

22 months agomore error checking for hash builtin; fix for [[ builtin and some test syntax errors
Chet Ramey [Wed, 13 Sep 2023 20:25:28 +0000 (16:25 -0400)] 
more error checking for hash builtin; fix for [[ builtin and some test syntax errors

22 months agofix for race condition with process creation and terminal process group; changes...
Chet Ramey [Mon, 11 Sep 2023 14:09:22 +0000 (10:09 -0400)] 
fix for race condition with process creation and terminal process group; changes to printf builtin for multibyte characters

22 months agofix typo in readline custom LS_COLORS extension; fix so `time' is recognized as a...
Chet Ramey [Thu, 7 Sep 2023 21:09:24 +0000 (17:09 -0400)] 
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

23 months agodocumentation updates for arrayname[0]; update trace/debug order for some compound...
Chet Ramey [Mon, 28 Aug 2023 16:16:01 +0000 (12:16 -0400)] 
documentation updates for arrayname[0]; update trace/debug order for some compound commands

23 months agofix for readline numeric args and bind -x commands; fix for printing null simple...
Chet Ramey [Wed, 23 Aug 2023 20:32:40 +0000 (16:32 -0400)] 
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

23 months agofix for LINENO after shell errors; fix for crash with !&; new read -E option
Chet Ramey [Fri, 18 Aug 2023 20:41:55 +0000 (16:41 -0400)] 
fix for LINENO after shell errors; fix for crash with !&; new read -E option

23 months agoupdate included libintl to gettext-0.21.1
Chet Ramey [Mon, 14 Aug 2023 15:14:46 +0000 (11:14 -0400)] 
update included libintl to gettext-0.21.1

23 months agoadd more characters to inhibit history expansion; allow asynchronous `!' and `time...
Chet Ramey [Fri, 11 Aug 2023 14:32:40 +0000 (10:32 -0400)] 
add more characters to inhibit history expansion; allow asynchronous `!' and `time' commands without a pipeline

23 months agoseveral fixes for printing readline key bindings and macro values containing characte...
Chet Ramey [Tue, 8 Aug 2023 14:49:46 +0000 (10:49 -0400)] 
several fixes for printing readline key bindings and macro values containing characters with the high bit set

23 months agofixes for read builtin with backslash escapes; change history builtin behavior when...
Chet Ramey [Fri, 4 Aug 2023 15:06:57 +0000 (11:06 -0400)] 
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

2 years agonew readline application hook to print macro key sequences and values; change bind...
Chet Ramey [Tue, 1 Aug 2023 13:59:09 +0000 (09:59 -0400)] 
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

2 years agofixes for $LINENO in multi-line simple commands; printf out-of-range values now cause...
Chet Ramey [Fri, 28 Jul 2023 15:35:44 +0000 (11:35 -0400)] 
fixes for $LINENO in multi-line simple commands; printf out-of-range values now cause a non-zero return status

2 years agochanges for quoting special and multibyte characters in glob patterns; changes to...
Chet Ramey [Tue, 25 Jul 2023 14:18:35 +0000 (10:18 -0400)] 
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

2 years agochange redisplay to handle some cases where the line consumes more than the number...
Chet Ramey [Wed, 19 Jul 2023 19:33:45 +0000 (15:33 -0400)] 
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

2 years agofix for leak when completing command word with glob pattern that matches multiple...
Chet Ramey [Mon, 17 Jul 2023 21:35:59 +0000 (17:35 -0400)] 
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

2 years agofix cd when user assigns a value to OLDPWD; fix android issue with blocked system...
Chet Ramey [Mon, 10 Jul 2023 13:41:30 +0000 (09:41 -0400)] 
fix cd when user assigns a value to OLDPWD; fix android issue with blocked system calls; fix historical use of test -t; fix issue with foreground-TSTP async jobs

2 years agoprefer nanosleep for sleep loadable builtin; changes for overflow in indexed array...
Chet Ramey [Wed, 5 Jul 2023 20:38:35 +0000 (16:38 -0400)] 
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

2 years agomore small fixes to command printing code; simplify readline username completion...
Chet Ramey [Mon, 3 Jul 2023 14:29:28 +0000 (10:29 -0400)] 
more small fixes to command printing code; simplify readline username completion if getpwent is not available

2 years agofix up semantics of assigning to noassign variables; fix error message in arithmetic...
Chet Ramey [Mon, 3 Jul 2023 14:26:23 +0000 (10:26 -0400)] 
fix up semantics of assigning to noassign variables; fix error message in arithmetic noeval mode; add shared memory option to anonymous files; fix static linking config in configure

2 years agofix minor mem leaks; fix problem with parser state during a DEBUG trap with -T enable...
Chet Ramey [Wed, 28 Jun 2023 18:48:09 +0000 (14:48 -0400)] 
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

2 years agofix for exit builtin when ignoreeof set; better resource deallocation when completion...
Chet Ramey [Mon, 26 Jun 2023 21:09:08 +0000 (17:09 -0400)] 
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

2 years agofix for -c command ending with backslash; fix several small memory leaks; fix several...
Chet Ramey [Mon, 26 Jun 2023 20:23:10 +0000 (16:23 -0400)] 
fix for -c command ending with backslash; fix several small memory leaks; fix several uninitialized variables; compgen -V fix

2 years agoapply several fixes tagged for bash-5.3; use memfd_create in anon file open if availa...
Chet Ramey [Tue, 20 Jun 2023 15:35:05 +0000 (11:35 -0400)] 
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

2 years agofix for nofork comsub command printing; fix for crash caused by tempvar assignment...
Chet Ramey [Tue, 20 Jun 2023 15:10:39 +0000 (11:10 -0400)] 
fix for nofork comsub command printing; fix for crash caused by tempvar assignment converted to an array in a function

2 years agonew BASH_MONOSECONDS, BASH_TRAPSIG variables; make checkwinsize work in subshells...
Chet Ramey [Tue, 20 Jun 2023 14:10:11 +0000 (10:10 -0400)] 
new BASH_MONOSECONDS, BASH_TRAPSIG variables; make checkwinsize work in subshells of interactive shells; fix for declare -f and function names containing `='