Commit Graph

738 Commits

Author SHA1 Message Date
Chet Ramey 935fe11af0 more small fixes to command printing code; simplify readline username completion if getpwent is not available 2023-07-03 10:29:28 -04:00
Chet Ramey 6a9e77e881 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 2023-07-03 10:26:23 -04:00
Chet Ramey b91488b51c new readline application variable rl_full_quoting_desired; new programmable completion option "fullquote"; TIMEFORMAT now accepts precisions up to six digits 2023-06-16 12:49:11 -04:00
Chet Ramey 76112093ec extend assoc_expand_once to indexed arrays; rename to array_expand_once, keeping old name as a synonym; udpate shopt documentation 2023-06-13 11:44:33 -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 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 877ff72675 rest of work to convert unwind-protects to ANSI/ISO C; size_t updates; function prototype changes for ANSI/ISO C 2023-04-03 12:07:25 -04:00
Chet Ramey 727e92c806 more ANSI/ISO C cleanups 2023-03-28 16:34:56 -04:00
Chet Ramey 1efe6d6b69 remove more old, unused files 2023-03-28 15:54:06 -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 deedd41cf4 changes for PATH being the empty string; more minor asan fixes 2023-03-17 16:03:11 -04:00
Chet Ramey 22cdf92bee posix conformance fixes 2023-03-10 15:45:52 -05:00
Chet Ramey 277c21d2b2 readline fix for rl_undo_list pointer aliasing; arith command sets word_top 2023-03-06 10:50:45 -05:00
Chet Ramey 349e21043e local variables no longer modify external variables if the variable is supplied as a variable assignment preceding a function call; assignments in compound assignment statements don't undergo brace expansion 2023-02-27 10:55:06 -05:00
Chet Ramey 7411382644 fix tilde expansion in associative array compound assignments 2023-02-07 10:16:51 -05:00
Chet Ramey 315095ad7f printf changes: %q/%Q altform, %ls/%lc wide character strings; posix mode changes for function execution; allow <( and >) in function names 2023-02-06 10:02:16 -05:00
Chet Ramey de195f9483 changes to function printing; new trap -P option; posix mode changes for command builtin as a declaration utility; changes for compiling without multibyte code 2023-01-31 10:20:31 -05:00
Chet Ramey a37b2af985 fix terminal pgrp issue with async jobs in non-interactive shells; history_expand change to first argument 2023-01-20 14:31:00 -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 b648a9ab79 fix for optimizing issues in sourced files; change to printf documentation to specify valid format characters 2023-01-03 09:38:11 -05:00
Chet Ramey c4a2e37470 fix comsub inside parameter expansion in here-document; fix readline longjmp botch; posix change for unset non-identifier; posix change for double quotes inside backquote comsub in here-document; add missing posix pieces to umask builtin 2022-12-19 09:38:15 -05:00
Chet Ramey 49918d90cd fix for parameter length expressions for nameref variables expanding to invalid identifiers 2022-12-13 12:57:47 -05:00
Chet Ramey 237c32ba16 fix for programmable completion functions setting traps on signals that readline handles 2022-12-06 10:41:41 -05:00
Chet Ramey 198210c58f more changes for bracket expressions in patterns 2022-12-02 11:41:48 -05:00
Chet Ramey e8652353ae fixes for HAVE_SELECT/HAVE_PSELECT; change some warning messages for nameref loops; run unwind-protects if max function nesting level is exceeded 2022-11-29 09:32:40 -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 31f4d468b6 fix for displaying `local -'; fix for trap and POSIX interp 1602; fix for readline redisplay when the last invisible character in the prompt string is not on the last line 2022-11-07 10:25:28 -05:00
Chet Ramey b48c234286 change to binary file detection; fix for negative fractional read timeout; check more often for terminating signals in subshells; clear process substitutions in subshells; wait only for last procsub if `wait' is called without arguments 2022-10-31 10:08:36 -04:00
Chet Ramey 6711d2dc77 fix for interactive shell parser reset issue; fix for nested array subscript quoting issue; fix for process substitutions being closed to early in for loops 2022-10-24 10:09:52 -04:00
Chet Ramey 5d423d8ab3 fixes for posix-mode alias expansion in command substitutions; fix for multiple function definitions with here-documents inside command substitutions 2022-10-18 15:27:25 -04:00
Chet Ramey 055a4552c9 change to readline callback signal handling; fix message when popping shell function context; handle new terminating signals inside terminating signal handler; fix to pattern substitution with null replacement and null string; fix to alias expansion when we get a SIGINT while entering a command substitution in an interactive shell 2022-10-15 13:34:51 -04:00
Chet Ramey 22f21b760e fixes for extended glob in compat mode; fix for brackets appearing in nested parameter expansions 2022-10-07 17:46:16 -04:00
Chet Ramey 43e861c2cd fix crash with unset arrays in arithmetic constructs ; change to avoid printing foreground job statuses when we don't want to 2022-10-04 11:58:54 -04:00
Chet Ramey b7b9d7c306 fix for problem with command substitutions inside aliases 2022-09-01 10:25:58 -04:00
Chet Ramey e9e3e4fea5 fixed gcc printf warning; fixed typos in comments and support files 2022-07-26 11:44:09 -04:00
Chet Ramey 52ae6c3f5d fix for local variable problem in EXIT trap; add sed-like behavior for null patterns in pattern substitution 2022-07-19 11:42:23 -04:00
Chet Ramey 87a6e89edc additional tests; documentation updates 2022-07-12 10:19:29 -04:00
Chet Ramey 67e47f224c changes to text representation of parsed command substitution; small changes to tests 2022-07-06 10:05:59 -04:00
Chet Ramey 42768befc0 fix error message when completing backquote command substitution; fix test builtin with double negation 2022-06-28 16:15:24 -04:00
Chet Ramey eb2d46d77c updated translations; minor change to DEBUG trap 2022-06-22 10:51:18 -04:00
Chet Ramey d0cd67ee13 fix up parser flags command substitution parsing inherits; using temp files for here-documents is now a compatibility mode option 2022-04-27 16:16:59 -04: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 3be2a2ca9a minor portability fixes; printf now uses double for floating point conversions by default in posix mode 2022-04-12 09:57:43 -04:00
Chet Ramey 505f60f94c fix for history-search-backward after previous-history clearing the undo list 2022-04-04 09:40:49 -04:00
Chet Ramey 8f68f9f0ff remove history position change to non-incremental search; fixes to $@ in some word expansions like :+ 2022-03-25 09:52:26 -04:00
Chet Ramey 6c4a9a5cb7 efficiency change to command hashing; fix pointer aliasing problem with readline history-search-backward 2022-03-01 09:32:15 -05:00