Re: "builtin jobs" does not output to stdout.

2023-02-14 Thread Chet Ramey
not a particularly useful concept, but bash embraces it in posix mode. Chet can decide if making bash handle more cases than it currently does is worth it or not for bash and its users. I think handling it in `jobs' and `command jobs' is enough for now. -- ``The lyf so short, the cr

Re: "builtin jobs" does not output to stdout.

2023-02-14 Thread Chet Ramey
condition of job control." -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: "builtin jobs" does not output to stdout.

2023-02-14 Thread Chet Ramey
On 2/14/23 2:39 PM, Dale R. Worley wrote: Chet Ramey writes: Yes. As described in later messages, there is a special case that allows the output of `jobs' to be piped. This came in at some point between bash-1.05 (March 1990) and bash-1.08 (May 1991). I never extended this special ca

Re: "builtin jobs" does not output to stdout.

2023-02-15 Thread Chet Ramey
ion replacement. I wish POSIX had picked it up instead of inventing `command'. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Defining variable as local -r defines variable outside the function in some cases

2023-02-15 Thread Chet Ramey
IX removing the special handling of temporary variable assignments preceding function calls (it's all completely unspecified in the upcoming revision). -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: [PATCH] Add missing parenthesis to tputs declaration in readline's tcap.h

2023-02-15 Thread Chet Ramey
On 2/15/23 2:35 PM, Eduardo A. Bustamante López wrote: Signed-off-by: Eduardo A. Bustamante López Thanks for the report. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, C

Re: Having an alias and a function with the same name leads to some sort of recursion

2023-02-16 Thread Chet Ramey
examined to determine whether it is an unquoted, valid alias name." You can put any syntax element into an alias and the shell will parse it. The only POSIX restriction is that you can't alias reserved words. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer

Re: unset does not remove functions like a[b] unless -f is specified

2023-02-16 Thread Chet Ramey
- Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Bash 5.2 breaks our Arch Linux devtools

2023-02-16 Thread Chet Ramey
``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Having an alias and a function with the same name leads to some sort of recursion

2023-02-17 Thread Chet Ramey
ng the word before attempting alias substitution. The characters '/', '$', '`', '=' and any of the shell metacharacters or quoting characters listed above may not appear in an alias name. (and so on) -- ``The lyf so short, the craft so long to lerne.''

Re: Having an alias and a function with the same name leads to some sort of recursion

2023-02-20 Thread Chet Ramey
rom the input instead of the alias value. It's been on the list to fix for a while. It's not hard, just hasn't gotten there yet in priority. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates

Re: Cmd history is not displaying correctly

2023-02-20 Thread Chet Ramey
-printing characters in the prompt string using the \[ and \] escape sequences, so readline knows about them. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduht

Re: EOF while in parse_matched_pair closes interactive shell

2023-02-21 Thread Chet Ramey
token that wasn't handled by the grammar. If there's a bug here, it's that interactive shells need to handle IGNOREEOF in this case. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet

Re: On the behaviour of the checkwinsize shopt from within a subshell

2023-02-21 Thread Chet Ramey
he craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: On the behaviour of the checkwinsize shopt from within a subshell

2023-02-21 Thread Chet Ramey
ew feature request and take a look. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: EOF while in parse_matched_pair closes interactive shell

2023-02-21 Thread Chet Ramey
On 2/21/23 3:59 PM, Eduardo A. Bustamante López wrote: On Tue, Feb 21, 2023 at 11:03:59AM -0500, Chet Ramey wrote: (...) The shell should exit on EOF. Previous versions relied on undocumented bison behavior, which resulted in a token that wasn't handled by the grammar. Thank you for revi

Re: umask doesn't accept some valid symbolic modes

2023-02-22 Thread Chet Ramey
vel branch should be fully POSIX conformant. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Behaviour of an empty conditional expression is undefined?

2023-02-23 Thread Chet Ramey
lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Behaviour of an empty conditional expression is undefined?

2023-02-24 Thread Chet Ramey
and will return a 0 status because it's non-empty. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: segfault on history-search-*

2023-02-28 Thread Chet Ramey
lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: undo list free crash

2023-03-02 Thread Chet Ramey
nter aliasing problem. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Vulnerability Report(UI Redressing)

2023-03-05 Thread Chet Ramey
not reported one. Why would you feel you're entitled to a reward? -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: global-buffer-overflow in parse.y

2023-03-06 Thread Chet Ramey
. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Vulnerability Report(UI Redressing)

2023-03-07 Thread Chet Ramey
On 3/7/23 1:49 PM, Elijah Conners wrote: Chet Ramey writes: Why would you feel you're entitled to a reward? Because they're trying to take advantage of other people. Exactly. I just want him to admit it, even if he doesn't do it in so many words. -- ``The lyf so short, the c

Re: The memory occupied by bash has been increasing due to the fork bomb

2023-03-10 Thread Chet Ramey
SIGTERM. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: The memory occupied by bash has been increasing due to the fork bomb

2023-03-10 Thread Chet Ramey
exceeded, fork(2) fails, and this code is not executed. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: The memory occupied by bash has been increasing due to the fork bomb

2023-03-10 Thread Chet Ramey
about fork failing, then fork hasn't failed, and the processes continue to run. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Document that here strings don't support brace expansion.

2023-03-13 Thread Chet Ramey
ecause people asked about them. To this point, no one has asked about brace expansion. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: asan report+fix in sh_mkdoublequoted

2023-03-14 Thread Chet Ramey
On 3/7/23 1:05 PM, Grisha Levit wrote: mkdir -p /tmp/bin '/tmp/bin/$' chmod +x '/tmp/bin/$' PATH=/tmp/bin ./bash --norc -in <<<$'\e*' Thanks for the report and fix. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer

Re: asan report in spname

2023-03-14 Thread Chet Ramey
On 3/7/23 12:12 PM, Grisha Levit wrote: happens when attempting spell-correct-word on an empty line ./bash --norc -in <<<$'\030s' Thanks for the report. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'

Re: asan report in bash_add_history

2023-03-14 Thread Chet Ramey
``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Document that here strings don't support brace expansion.

2023-03-14 Thread Chet Ramey
tened up a bit as well to clarify what it does not do? Sure, it can list the word expansions it performs. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Document that here strings don't support brace expansion.

2023-03-14 Thread Chet Ramey
ing that if it's not specified as being performed, it's not performed? -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Document that here strings don't support brace expansion.

2023-03-15 Thread Chet Ramey
or the documentation for the shell-expand-line Readline command. Yes, I can make that explicit. - A Readline command to expand braces is a nice to have, but not essential. OK. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita bre

Re: command_not_found_handle not run when PATH is empty

2023-03-16 Thread Chet Ramey
aft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: command_not_found_handle not run when PATH is empty

2023-03-16 Thread Chet Ramey
en allow PATH to be unset. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: The memory occupied by bash has been increasing due to the fork bomb

2023-03-16 Thread Chet Ramey
ant to run a system call tracer and look at calls to kill and sigaction. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: The memory occupied by bash has been increasing due to the fork bomb

2023-03-16 Thread Chet Ramey
bomb that you can run valgrind on. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: double-free in bashline.c

2023-03-17 Thread Chet Ramey
. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: global-buffer-overflow in parse.y

2023-03-17 Thread Chet Ramey
On 3/16/23 6:10 PM, Grisha Levit wrote: On Mon, Mar 6, 2023 at 9:16 AM Chet Ramey wrote: Thanks for the report. It's the specific combination of `if' and the `((' command that causes the problem. Looks like same thing also happens when `if' is followed by a newline T

Re: asan report in extmatch

2023-03-17 Thread Chet Ramey
keep the FNM_PATHNAME check at a higher level. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: EXIT trap definition order

2023-03-20 Thread Chet Ramey
.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: EXIT trap definition order

2023-03-20 Thread Chet Ramey
On 3/20/23 11:02 AM, Grisha Levit wrote: On Mon, Mar 20, 2023 at 10:57 AM Chet Ramey wrote: On 3/17/23 1:28 PM, Grisha Levit wrote: It seems that if a trap handler for a terminating signal resends its own signal (after resetting the signal disposition), any configured EXIT trap will be

Re: parsing command substitution inside parameter expansion in interactive shell

2023-03-20 Thread Chet Ramey
start): Thanks, it's an easy fix to preserve the newline here. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: compgen respecting dotglob changes

2023-03-21 Thread Chet Ramey
lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: wait on procsub in EXIT trap

2023-03-21 Thread Chet Ramey
ne: $ (trap 'wait $!; echo $?' EXIT; : <(:); (:); kill 0) Because the procsub gets reaped before the terminating signal arrives. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTe

Re: [PATCH] Save more readline state when running compgen

2023-03-21 Thread Chet Ramey
lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: wait on procsub in EXIT trap

2023-03-21 Thread Chet Ramey
``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: [PATCH] Save more readline state when running compgen

2023-03-21 Thread Chet Ramey
On 3/21/23 4:04 PM, Grisha Levit wrote: On Tue, Mar 21, 2023 at 3:47 PM Chet Ramey wrote: OK, say you did in fact run compgen in the foreground -- very unusual because it's awkward to capture the possible completions that way -- to generate completions. Sorry I should have explained.

Re: [PATCH] Save more readline state when running compgen

2023-03-22 Thread Chet Ramey
ng the readline completion state? -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: [PATCH] Save more readline state when running compgen

2023-03-23 Thread Chet Ramey
; - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Bash not portable to C23

2023-03-24 Thread Chet Ramey
ng to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: history file missing timestamp when HISTFILESIZE reached

2023-03-24 Thread Chet Ramey
.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: $SECONDS and timeout values use realtime `gettimeofday()`

2023-03-24 Thread Chet Ramey
that these scripts will hit their timeout too quickly? -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Bash not portable to C23

2023-03-24 Thread Chet Ramey
e lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Bash not portable to C23

2023-03-24 Thread Chet Ramey
reas where Bash won't port to C23? Please report those as you find them. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: [PATCH] Work around GNU/Linux timestamp glitch

2023-03-24 Thread Chet Ramey
ugzilla/show_bug.cgi?id=30200>. Thanks for the report. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: [PATCH] Port lib/sh/tmpfile.c to hosts without mkdtemp

2023-03-25 Thread Chet Ramey
On 3/24/23 5:20 PM, Paul Eggert wrote: * lib/sh/tmpfile.c (sh_mktmpdir) [!USE_MKDTEMP]: Fix use of undeclared var 'fd'. Thanks for the report. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippo

Re: [PATCH] add definition for count_all_jobs() in parse.y if --disable-job-control

2023-03-27 Thread Chet Ramey
extern int count_all_jobs (void); #endif /* JOB_CONTROL */ #if defined (ALIAS) Thanks for the report. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: [PATCH] Pacify gcc -Wpointer-to-int-cast

2023-03-27 Thread Chet Ramey
g to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: segfault in hostnames_matching

2023-03-27 Thread Chet Ramey
On 3/27/23 12:49 PM, Grisha Levit wrote: another size_t issue Thanks for the reports. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Bash not portable to C23

2023-03-27 Thread Chet Ramey
On 3/26/23 7:53 PM, Paul Eggert wrote: On 2023-03-24 12:04, Chet Ramey wrote: However, Bash's devel branch still has old-style function definitions and therefore won't compile with a strict C23 compiler. For example, get_variable_value in variables.c is old-style. I assume ther

Re: [PATCH 1/4] Port more functions etc. to C23

2023-03-28 Thread Chet Ramey
much appreciated. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: $SECONDS and timeout values use realtime `gettimeofday()`

2023-03-29 Thread Chet Ramey
take it as a feature request. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: [PATCH 3/4] Port unwind protection to C23

2023-03-29 Thread Chet Ramey
t -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Bash Reference Manual Type

2023-03-31 Thread Chet Ramey
onga, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: IFS field splitting doesn't conform with POSIX

2023-03-31 Thread Chet Ramey
o long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: IFS field splitting doesn't conform with POSIX

2023-03-31 Thread Chet Ramey
ft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: IFS field splitting doesn't conform with POSIX

2023-03-31 Thread Chet Ramey
iors while allowing for their idiosyncrasies is more involved than you seem to think. This is well put. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Bash Reference Manual Type

2023-03-31 Thread Chet Ramey
yf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: size_t issue in expand_string_dollar_quote

2023-03-31 Thread Chet Ramey
robably not the cleanest fix but the issue is here: It's not unreasonable. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Possible problem with ${var%%[...]*}

2023-04-03 Thread Chet Ramey
. I am surprised that `<()' is not a syntax error when `()' is though. Because `<()' is a valid word expansion that can appear as part of a word. `()' is not. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brev

Re: Possible problem with ${var%%[...]*}

2023-04-03 Thread Chet Ramey
es. No command, no child process, no pipe, no pathname. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Failed $(

2023-04-03 Thread Chet Ramey
On 3/31/23 10:20 PM, Zev Weiss wrote: Bash Version: 5.2 Patch Level: !PATCHLEVEL! Release Status: release Description: When 'set -e' is enabled, file-content substitutions of the form $(<...) cause an immediate exit even when the subsitution is in a conditional context such as the condition

Re: "dt" doesn't work correctly in vi mode

2023-04-04 Thread Chet Ramey
one as well, and probably y/Y. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

bug-bash@gnu.org

2023-04-10 Thread Chet Ramey
On 4/6/23 1:04 PM, Grisha Levit wrote: If $var is non-empty and not a valid a number, {var}>&- silently closes fd 0. Thanks for the report. The check should be == 0. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis

Re: parameter expansion assignment to array index nameref

2023-04-10 Thread Chet Ramey
sense to fix it there. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: [PATCH] support getconf builtin build without confstr

2023-04-13 Thread Chet Ramey
Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: [PATCH] compgen -V option (store output in array)

2023-04-17 Thread Chet Ramey
. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: [PATCH] compgen -V option (store output in array)

2023-04-17 Thread Chet Ramey
ernal commands such as `sort -z'. Once you have -V, isn't -z superfluous? It's just compgen -V varname options word printf '%s\0' "${varname[@]}" right? What am I missing? -- ``The lyf so short, the craft so long to lerne.'' - Chaucer `

Re: 'mapfile -O1 array' breaks '[[ -v array ]]'

2023-04-17 Thread Chet Ramey
] or [[ ${#a[@]} > 0 ]]. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Prompt save/restore for vi movement argument

2023-04-18 Thread Chet Ramey
``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: segfault on initial word completion

2023-04-19 Thread Chet Ramey
5.2$ Segmentation fault: 11 Thanks for the report. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: How difficult would it be to add a timeout to "wait"?

2023-04-20 Thread Chet Ramey
cho $? -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: SIGINT not breaking loop with non-list function body

2023-04-20 Thread Chet Ramey
, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: [PATCH] FIGNORE: ignore results that are exactly equal to a suffix

2023-04-20 Thread Chet Ramey
Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: How difficult would it be to add a timeout to "wait"?

2023-04-21 Thread Chet Ramey
;wait" builtin using this mechanism? See above. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: jobs builtin inside SIGCHLD trap doesn't clean up terminated jobs

2023-04-25 Thread Chet Ramey
is not the case for 'jobs' called from within a SIGCHLD handler. I'll take a look. Until last November, the bash `jobs' builtin didn't remove jobs from the jobs list at all. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars

Re: heap-use-after-free in rl_do_undo

2023-04-26 Thread Chet Ramey
as already hit by the other guy sending in fuzzing output. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: segfault on initial word completion

2023-04-28 Thread Chet Ramey
short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: heap-buffer-overflow in history_expand

2023-04-28 Thread Chet Ramey
so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: [PATCH] allow quoting completions w/o filename treatment

2023-04-28 Thread Chet Ramey
Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: heap-buffer-overflow in history_expand

2023-04-29 Thread Chet Ramey
On 4/28/23 9:28 PM, Grisha Levit wrote: On Fri, Apr 28, 2023, 11:35 Chet Ramey <mailto:chet.ra...@case.edu>> wrote: On 4/24/23 1:40 AM, Grisha Levit wrote: > The history expansion code can end up reading past the end of the > input line buffer if the line ends

Re: heap-buffer-overflow in history_expand

2023-05-01 Thread Chet Ramey
On 4/30/23 5:03 AM, Grisha Levit wrote: On Sat, Apr 29, 2023, 14:02 Chet Ramey <mailto:chet.ra...@case.edu>> wrote: On 4/28/23 9:28 PM, Grisha Levit wrote: > Piping input that simply ends in an leading byte doesn't trigger the issue > -- that byte byte d

Re: recovering from parser errors during compound assignment

2023-05-01 Thread Chet Ramey
sion state is not properly restored: Thanks for the reports. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: recovering from parser errors during compound assignment

2023-05-01 Thread Chet Ramey
./extra to topic content of the code I can't make heads or tails of this. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: jobs builtin inside SIGCHLD trap doesn't clean up terminated jobs

2023-05-03 Thread Chet Ramey
a pipeline to get the jobs list. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: bash feature suggestion, show command RC codes in history

2023-05-03 Thread Chet Ramey
g to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: EOF at PS2

2023-05-03 Thread Chet Ramey
he craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: [PATCH] add missing null check in duplicate_buffered_stream()

2023-05-04 Thread Chet Ramey
- Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

<    4   5   6   7   8   9   10   11   12   13   >