Re: [Suggestion] Flush command history to a "backup" file periodically

2023-01-20 Thread Chet Ramey
-a' (or `history -w' if you're paranoid) with whatever granularity you choose. -- ``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: Question about monitor mode / ignoreeof / EOF read

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

Re: 回复: Possible bug in bash

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

Re: BASH_XTRACEFD=1 read variable stdout flushing?

2023-01-16 Thread Chet Ramey
to write the trace output into the pipe, where `read' will see it. -- ``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 bug in bash

2023-01-16 Thread Chet Ramey
" is presumably the word following that one. The same is true for case alias al=' ' alias foo=bar al case foo in foo) echo foo;; bar) echo bar;; esac Everybody prints `foo'. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates C

Re: SIGINT handling during async functions

2023-01-16 Thread Chet Ramey
e `hard ignored' that is the problem 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: Next word of alias to alias that end with is not checked for alias

2023-01-12 Thread Chet Ramey
this, and no one has missed it. -- ``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: errexit is not suspended in a pipeline

2023-01-12 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: errexit is not suspended in a pipeline

2023-01-11 Thread Chet Ramey
On 1/11/23 4:04 PM, Quinn Grier wrote: On 2023-01-11 06:44, Chet Ramey wrote: On 1/10/23 9:36 PM, Quinn Grier wrote: In the documentation for set -e, the Bash manual says that errexit is suspended in all but the last command of a pipeline:     The shell does not exit if the command

Re: errexit is not suspended in a pipeline

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

Re: UBSAN error in lib/sh/random.c:79

2023-01-10 Thread Chet Ramey
is greater? Here's a version that does just that: Thanks, I pushed what I think is a simpler fix that should work fine. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp

Re: UBSAN error in lib/sh/random.c:79

2023-01-10 Thread Chet Ramey
harm - or maybe even is intended... Positive-to-negative overflow doesn't hurt the algorithm, but since overflow is undefined behavior, anything can happen. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech

Re: UBSAN error in lib/sh/random.c:79

2023-01-10 Thread Chet Ramey
question to l = ret % 127773; That is equivalent mathemetically and won't overflow (the overflow isn't actually damaging, though). -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduht

Re: Arithmetic expression: evaluation order bug

2023-01-04 Thread Chet Ramey
On 1/4/23 12:21 PM, Steffen Nurpmeso wrote: Chet Ramey wrote in <8a61e01d-65c0-6c91-3575-399022fcb...@case.edu>: |On 12/30/22 3:44 PM, Steffen Nurpmeso wrote: | |> Digital, logical, liberal, yuck :) | |We channeling Supertramp here? For a nice Breakfast in America, yes. (N

Re: Arithmetic expression: evaluation order bug

2023-01-04 Thread Chet Ramey
On 1/4/23 10:36 AM, G. Branden Robinson wrote: ..and some spend their years watching the moon bear wank himself off. Or, if you were in Yorkshire last week, a walrus. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet

Re: Errors are ignored with local variable assignment

2023-01-04 Thread Chet Ramey
://lists.gnu.org/archive/html/bug-bash/2022-12/msg3.html -- ``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: Arithmetic expression: evaluation order bug

2023-01-04 Thread Chet Ramey
brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Arithmetic expression: evaluation order bug

2023-01-04 Thread Chet Ramey
On 12/30/22 3:44 PM, Steffen Nurpmeso wrote: Digital, logical, liberal, yuck :) We channeling Supertramp here? -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp

Re: Arithmetic expression: evaluation order bug

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

Re: Read Prompt Width Miscalculation (Non-Printing Characters)

2022-12-29 Thread Chet Ramey
transformations are already documented. -- ``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: Read Prompt Width Miscalculation (Non-Printing Characters)

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

Re: printf %n is not documented

2022-12-27 Thread Chet Ramey
f 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: printf %n is not documented

2022-12-23 Thread Chet Ramey
). It's a standard part of printf(3), and is standardized by POSIX. Bash doesn't document the standard conversion specifiers. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp

Re: Bug: Subshell won't continue after .-sourcing a file

2022-12-22 Thread Chet Ramey
. It already has few external dependencies and cleans up before exiting. (Your script, for example, leaves three temp files in the file system.) Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc

Re: Bug: Subshell won't continue after .-sourcing a file

2022-12-22 Thread Chet Ramey
'(. <(echo ": && uname"); echo x)' Linux $ x is never printed. Looks like another bug caused by aggressive subshell optimizations Thanks for the reports, both of you. I've attached a patch. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer

Re: documentation for ${@: -1} is unclear

2022-12-21 Thread Chet Ramey
On 12/20/22 3:40 PM, Emanuele Torre wrote: The bash manual says: 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: for loop goes to stopped job when Ctrl+C is pressed

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

Re: Segfault with set -o emacs in -c

2022-12-19 Thread Chet Ramey
that says something about how many people try 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: [PATCH] loadables/sync: allow fsync of individual files like GNU coreutils

2022-12-19 Thread Chet Ramey
). Thanks for the patch. 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: compgen stops processing backslashes after any call to bind

2022-12-16 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: bash crashes if TERM is unset and the Delete key is pressed twice

2022-12-14 Thread Chet Ramey
On 12/14/22 2:01 PM, Emanuele Torre wrote: On Wed, Dec 14, 2022 at 12:31:39PM -0500, Chet Ramey wrote: On 12/13/22 9:00 AM, Emanuele Torre wrote: This happens since 88d69b4fa224d93ef1d26b80229668397bb6496b . If bash is started with the TERM variable unset or empty, it will segfault and crash

Re: bash crashes if TERM is unset and the Delete key is pressed twice

2022-12-14 Thread Chet Ramey
before the two Delete key presses). I can't reproduce this on macOS, RHEL 7, Fedora 35, or Fedora 37, all using xterm. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp

Bash-5.2 patch 15

2022-12-14 Thread Chet Ramey
nd->flags & (CMD_TIME_PIPELINE|CMD_INVERT_RETURN)) == 0) optimize_subshell_command (command->value.Subshell->command); *** ../bash-5.2/patchlevel.h2020-06-22 14:51:03.0 -0400 --- patchlevel.h2020-10-01 11:01:28.0 -0400 *** *** 26,30

Re: Nested expansion in heredoc fails

2022-12-14 Thread Chet Ramey
substitution within parameter expansion in a here-document line. Here's a patch. 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/ *** ../bash-5.2

Bash-5.2 patch 14

2022-12-14 Thread Chet Ramey
PATCHLEVEL 14 #endif /* _PATCHLEVEL_H_ */ -- ``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/

Bash-5.2 patch 13

2022-12-14 Thread Chet Ramey
looks for to find the patch level (for the sccs version string). */ ! #define PATCHLEVEL 13 #endif /* _PATCHLEVEL_H_ */ -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.edu

Re: curiosity: 'typeset -xr' vs. 'export -r'

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

Re: Fix module loading for OpenBSD

2022-12-09 Thread Chet Ramey
'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: loadables/finfo: fix time_t printing

2022-12-09 Thread Chet Ramey
for the report. I chose the second option. -- ``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: Pending signal in EXIT trap causes pattern matching to fail

2022-12-08 Thread Chet Ramey
On 12/7/22 11:24 AM, Andreas Schwab wrote: On Okt 12 2022, Chet Ramey wrote: But that's not really the issue right here. The question is whether the shell should process additional terminating signals while it's running the exit trap from the terminating signal handler. The problem

Re: Handling files with CRLF line ending

2022-12-05 Thread Chet Ramey
'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: `declare -f "a="' fails unnecessarily

2022-12-05 Thread Chet Ramey
On 12/3/22 6:18 AM, Emanuele Torre wrote: `declare -f "something="' fails with the following error: 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.e

Re: `declare -f' does not output the "function" keyword when required

2022-12-05 Thread Chet Ramey
with the "function" keyword, generating invalid code: 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: declare XXX=$(false);echo $?

2022-12-05 Thread Chet Ramey
shells, but interactive shells continue. -- ``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: declare XXX=$(false);echo $?

2022-12-02 Thread Chet Ramey
uld? `declare' has a well-defined return status. -- ``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 "extglob" needs to upgrade at least like zsh "kshglob"

2022-12-01 Thread Chet Ramey
On 11/28/22 5:51 AM, Koichi Murase wrote: 2022年11月23日(水) 5:24 Chet Ramey : I attached the latest patch against bash-5.2.9. commit 3c9dd4565792bc53de3a94ec38a65a1989f3fe2f (upstream/devel) associative array elements; last set of changes to globbing bracket expressions; fix

Re: bash "extglob" needs to upgrade at least like zsh "kshglob"

2022-12-01 Thread Chet Ramey
On 11/28/22 5:51 AM, Koichi Murase wrote: 2022年11月23日(水) 5:24 Chet Ramey : I attached the latest patch against bash-5.2.9. commit 3c9dd4565792bc53de3a94ec38a65a1989f3fe2f (upstream/devel) associative array elements; last set of changes to globbing bracket expressions; fix

Re: Localised variables become exposed to environment when FUNCNEST reached

2022-11-28 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: degraded error message in case of hash-bang interpreter error

2022-11-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: Bad leaks file fd to child processes

2022-11-26 Thread Chet Ramey
.html Can you supply a reproducer that demonstrates this is a problem with bash? -- ``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 4] 'test -v 1' is never true

2022-11-26 Thread Chet Ramey
-bash/2018-12/msg00104.html https://lists.gnu.org/archive/html/bug-bash/2020-01/msg00027.html I added support for testing positional parameters in bash-5.1. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU

Bash-5.2 official patch 12

2022-11-25 Thread Chet Ramey
patch level (for the sccs version string). */ ! #define PATCHLEVEL 11 #endif /* _PATCHLEVEL_H_ */ --- 26,30 looks for to find the patch level (for the sccs version string). */ ! #define PATCHLEVEL 12 #endif /* _PATCHLEVEL_H_ */ -- ``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/

Bash-5.2 official patch 10

2022-11-25 Thread Chet Ramey
e sccs version string). */ ! #define PATCHLEVEL 10 #endif /* _PATCHLEVEL_H_ */ -- ``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/

Bash-5.2 official patch 11

2022-11-25 Thread Chet Ramey
the patch level (for the sccs version string). */ ! #define PATCHLEVEL 11 #endif /* _PATCHLEVEL_H_ */ -- ``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 5.2 regression in optimize_connection_fork

2022-11-25 Thread Chet Ramey
credit is due. -- ``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: If Conditional Logic Error in Bash

2022-11-23 Thread Chet Ramey
tor requires integer operands, you get this error: line 135: [: false: integer expression expected. -- ``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: read builtin: timeout setting valid is next read

2022-11-23 Thread Chet Ramey
longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: `time ( someCmd )` Doesn't Print Time Under 5.2

2022-11-22 Thread Chet Ramey
On 11/22/22 5:04 PM, Dabrien 'Dabe' Murphy wrote: On 11/22/22 5:01 PM, Chet Ramey wrote: Thanks for the report. It's an easy fix; bash was optimizing away the fork and therefore not printing the timing information. Awesome!     Hitting it with a hammer: $10      Knowing WHERE to hit

Re: `time ( someCmd )` Doesn't Print Time Under 5.2

2022-11-22 Thread Chet Ramey
/archive/html/bug-bash/2021-09/msg00047.html No, all that stuff is a red herring. -- ``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: `time ( someCmd )` Doesn't Print Time Under 5.2

2022-11-22 Thread Chet Ramey
. Thanks for the report. It's an easy fix; bash was optimizing away the fork and therefore not printing the timing information. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp

Re: [EXT] Re: manual page missing ${parameter-replacement}

2022-11-22 Thread Chet Ramey
boldface. This is correct. The operator is in boldface, as is the corresponding short name for or description of the operator. -- ``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 "extglob" needs to upgrade at least like zsh "kshglob"

2022-11-22 Thread Chet Ramey
it. I attached the latest patch against bash-5.2.9. 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/ *** ../bash-5.2-patched/lib/glob/sm_loop.c

Re: bash memory leak when querying associative array for nonexisting element

2022-11-21 Thread Chet Ramey
I did not find a fix. Thanks for the report. Koichi's fix is a good one. 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: bash 5.2 regression in optimize_connection_fork

2022-11-21 Thread Chet Ramey
ifferent angle that I think will work as well. -- ``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 5.2 regression in optimize_connection_fork

2022-11-19 Thread Chet Ramey
at least see what the commands are, and maybe synthesize a reproducer from that? -- ``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] glob: add shopt globmtimesort to sort globs by mtime

2022-11-18 Thread Chet Ramey
On 11/16/22 12:35 PM, Evan Gates wrote: On Mon Nov 14, 2022 at 1:00 PM MST, Chet Ramey wrote: On 10/3/22 2:56 PM, Evan Gates wrote: --- There is currently no good way to sort files by mtime in the shell. It's possible to do so with an ls that supports -t, but parsing ls is problematic

Re: "cannot execute binary file" error with Bash 5.2

2022-11-18 Thread Chet Ramey
should add it to the manual. -- ``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 "extglob" needs to upgrade at least like zsh "kshglob"

2022-11-17 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/ *** ../bash-5.2-patched/lib/glob/sm_loop.c 2021-08-03 10:24:49.0 -0400 --- lib/glob/sm_loo

Re: bash "extglob" needs to upgrade at least like zsh "kshglob"

2022-11-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: bash "extglob" needs to upgrade at least like zsh "kshglob"

2022-11-16 Thread Chet Ramey
your fix to issue 1 above. 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/ *** ../bash-5.2-patched/lib/glob/sm_loop.c 2021-08-03 10:24:49.000

Re: local/typeset/declare -p - outputs invalid declare -- -

2022-11-16 Thread Chet Ramey
ve and restore the options; `declare -p -' and `typeset -p -' should have no special meaning. -- ``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-5.2.9 lib/readline/input.c fix for Tru64

2022-11-16 Thread Chet Ramey
On 11/15/22 7:25 PM, Koichi Murase wrote: 2022年11月16日(水) 0:11 Chet Ramey : It should be possible to simulate a machine like this by manually editing config.h after running configure. You are right. There are three more places to fix in addition to the two in the previous reply (see

Re: bash-5.2.9 lib/readline/input.c fix for Tru64

2022-11-15 Thread Chet Ramey
configure. -- ``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-5.2.9 lib/readline/input.c fix for Tru64

2022-11-15 Thread Chet Ramey
the linker to produce a static executable? -- ``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: "cannot execute binary file" error with Bash 5.2

2022-11-15 Thread Chet Ramey
so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ *** ../bash-5.2-patched/general.c 2021-11-04 14:12:38.0 -0400 --- general.c 2022-10-24 10:20:12.0 -0400 ***

Re: [PATCH] glob: add shopt globmtimesort to sort globs by mtime

2022-11-14 Thread Chet Ramey
at a more general approach for the next version. 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: Should the readline *-meta flags reset when $LANG changes?

2022-11-14 Thread Chet Ramey
On 11/14/22 11:40 AM, Koichi Murase wrote: 2022年11月15日(火) 0:22 Chet Ramey : On 8/11/22 5:56 PM, Koichi Murase wrote: Can we also change the behavior of TERM in a similar way with option 4? Currently, a temporal change of TERM clears keybindings of some keys (home, end, right, left, etc.) even

Re: Should the readline *-meta flags reset when $LANG changes?

2022-11-14 Thread Chet Ramey
inning-of-line beginning-of-line can be invoked via "\C-a", "\eOH", "\e[1~", "\e[H". I think the "TERM=$TERM" idiom to reset the readline terminal settings without overwriting existing key bindings is useful enough to retain the current behavior. --

Re: Bash-5.2 official patch 9

2022-11-14 Thread Chet Ramey
On 11/12/22 4:39 AM, Kerin Millar wrote: On Tue, 8 Nov 2022 09:50:51 -0500 Chet Ramey wrote: BASH PATCH REPORT = Bash-Release: 5.2 Patch-ID: bash52-009 Are there any plans to backport the "fixes for ext

Re: cannot validate read -e entry when bound to TAB

2022-11-11 Thread Chet Ramey
this. Thanks for the report. I just fixed this yesterday based on another report. Here's a patch; it will be in the next devel branch push. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc

Bash-5.2 official patch 9

2022-11-08 Thread Chet Ramey
ta brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Bash-5.2 official patch 8

2022-11-08 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/

Bash-5.2 official patch 7

2022-11-08 Thread Chet Ramey
EVEL 6 #endif /* _PATCHLEVEL_H_ */ --- 26,30 looks for to find the patch level (for the sccs version string). */ ! #define PATCHLEVEL 7 #endif /* _PATCHLEVEL_H_ */ -- ``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/

Bash-5.2 official patch 6

2022-11-08 Thread Chet Ramey
*/ --- 26,30 looks for to find the patch level (for the sccs version string). */ ! #define PATCHLEVEL 6 #endif /* _PATCHLEVEL_H_ */ -- ``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/

Bash-5.2 official patch 5

2022-11-08 Thread Chet Ramey
el (for the sccs version string). */ ! #define PATCHLEVEL 5 #endif /* _PATCHLEVEL_H_ */ -- ``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/

Bash-5.2 official patch 4

2022-11-08 Thread Chet Ramey
ng). */ ! #define PATCHLEVEL 4 #endif /* _PATCHLEVEL_H_ */ -- ``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/

Bash-5.2 official patch 3

2022-11-08 Thread Chet Ramey
. */ ! #define PATCHLEVEL 3 #endif /* _PATCHLEVEL_H_ */ -- ``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: string substitution broken since 5.2

2022-11-04 Thread Chet Ramey
forward when I think it's warranted. As you've seen, there's always spirited disagreement. -- ``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: string substitution broken since 5.2

2022-11-04 Thread Chet Ramey
On 11/4/22 3:56 AM, Léa Gris wrote: Le 03/11/2022 à 19:50, Chet Ramey écrivait : The option is enabled by default. If you want to restore the previous behavior, add `shopt -u patsub_replacement'. Having it enabled by default is not good, because it introduces side-effects for existing

Re: bash "extglob" needs to upgrade at least like zsh "kshglob"

2022-11-03 Thread Chet Ramey
a/x/b/c/d/5 -- ``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: string substitution broken since 5.2

2022-11-03 Thread Chet Ramey
vior, add `shopt -u patsub_replacement'. -- ``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: regex string ">(...)" in [[ ]] command recognize as process substitution

2022-10-31 Thread Chet Ramey
pens only in the terminal. but very unexpectedly happens I can't reproduce this using bash-5.2.2. -- ``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: Function declarations produce no trace nor trigger debug trap while having side effects

2022-10-31 Thread Chet Ramey
On 10/28/22 12:09 PM, Erik Adelbert wrote: Hello Chet and other bash maintainers, Thanks for your time. On 27 Oct 2022, at 23:26, Chet Ramey <mailto:chet.ra...@case.edu>> wrote: we believe the current semantic to be at least unclear and would like to see either: 0 the DEBUG tr

Re: bash "extglob" needs to upgrade at least like zsh "kshglob"

2022-10-31 Thread Chet Ramey
increase the number of dependencies. -- ``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 "extglob" needs to upgrade at least like zsh "kshglob"

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

Re: bash "extglob" needs to upgrade at least like zsh "kshglob"

2022-10-31 Thread Chet Ramey
the results, as long as it didn't add dependencies on, say, pcre or gnulib regex. 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: bash "extglob" needs to upgrade at least like zsh "kshglob"

2022-10-31 Thread Chet Ramey
as changed since you brought this up last month. The same two-line sed workaround works on the 90K string from `gcc --help'. https://lists.gnu.org/archive/html/bug-bash/2022-09/msg00029.html -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hi

Re: Multiline editing breaks if the previous output doesn't end in newline

2022-10-31 Thread Chet Ramey
'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Multiline editing breaks if the previous output doesn't end in newline

2022-10-31 Thread Chet Ramey
to determine the physical cursor location, so it has to make assumptions. There are various imperfect workarounds, but the easiest one is to hit return. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc

Re: Subsequent Here Doc/String Never Evaluated in Process Substitution

2022-10-31 Thread Chet Ramey
of https://lists.gnu.org/archive/html/bug-bash/2022-10/msg00092.html The fix is in the devel branch. -- ``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/

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