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/

Re: Function declarations produce no trace nor trigger debug trap while having side effects

2022-10-27 Thread Chet Ramey
appearing in trace and DEBUG (has cons) They are required to exit with status 0. https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_05_01 -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ra

Re: wait inside subshell waits for sibling

2022-10-27 Thread Chet Ramey
ution environment." -- ``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: wait inside subshell waits for sibling

2022-10-27 Thread Chet Ramey
substitutions individually if you save $! after they're created. -- ``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: wait inside subshell waits for sibling

2022-10-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: Exit trap changes return value of subshell for uncaught trap signals

2022-10-24 Thread Chet Ramey
before the second subshell exits. -- ``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: caller returns wrong line number in command substitution

2022-10-24 Thread Chet Ramey
unction is 10, and that's what it prints. You should be able to puzzle out what happens for the other cases based on this description. -- ``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] fix problem with uconvert

2022-10-24 Thread Chet Ramey
* mult; \ ! if (up) *up = upart * (ipart == 0 ? mult : 1); \ if (ep) *ep = p; \ return (x); \ -- ``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: Checking evolution of information about required symbols

2022-10-20 Thread Chet Ramey
requires the same version of readline it ships with in lib/readline. -- ``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: Regression in 5.2 in arithmetic comparison

2022-10-20 Thread Chet Ramey
e evaluation of array subscripts. The fix is to exempt the presence of `<' and `>' from that treatment, since they're not treated specially in that context. I've attached the trivial patch. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita

Re: bash 5.2 bad substitution for ${x:+${x}[}

2022-10-20 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/ *** ../bash-5.2-patched/subst.c 2022-10-05 10:22:02.0 -0400 --- subst.c 2022-10-06 15:19:08.0 -0400

Re: Parse error of function definition with here doc in command substitution

2022-10-17 Thread Chet Ramey
token `(' bash: command substitution: line 15: `}function f2 () ' Thanks for the report. This will be fixed in the next devel branch push. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@ca

Re: Bash segfaults when using extglob on an empty var

2022-10-14 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-5.2.002: 'alias' stops working after some commands are executed.

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

Re: -v no longer works for associative arrays

2022-10-13 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: -v no longer works for associative arrays

2022-10-13 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: -v no longer works for associative arrays

2022-10-13 Thread Chet Ramey
about `@' and `*' keys start here: https://lists.gnu.org/archive/html/bug-bash/2021-04/msg00058.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: pop_var_context msg when eval code with errexit set

2022-10-13 Thread Chet Ramey
On 10/12/22 10:25 AM, Chet Ramey wrote: Then run this test script with 'errexit' option set: $ ./bash -e test_script test_script: line 5: pop_var_context: head of shell_variables not a function context It's an internal message warning that something might be wrong. We'll see

Re: Pending signal in EXIT trap causes pattern matching to fail

2022-10-12 Thread Chet Ramey
terminating signals while it's running the exit trap from the terminating signal handler. -- ``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: pop_var_context msg when eval code with errexit set

2022-10-12 Thread Chet Ramey
cript: line 5: pop_var_context: head of shell_variables not a function context It's an internal message warning that something might be wrong. We'll see if something is. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrate

Re: bash core dumps doing glob pattern on long string

2022-10-11 Thread Chet Ramey
expansions; and variables like EXECIGNORE and GLOBIGNORE also apply pattern matching to arbitrary strings. -- ``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 core dumps doing glob pattern on long string

2022-10-10 Thread Chet Ramey
a filename-only restriction on those uses. 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: Less detailed error for ENOENT from execve

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

Re: New instances of Bash should ignore and reset BASH_ARGV0

2022-10-10 Thread Chet Ramey
of a user request (which I can't find right now, naturally). -- ``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 core dumps doing glob pattern on long string

2022-10-10 Thread Chet Ramey
es finding the appropriate recursion limit. -- ``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] Fix foreground dead jobs in trap handlers reported like background ones in `jobs'

2022-10-10 Thread Chet Ramey
On 10/8/22 9:09 AM, Koichi Murase wrote: Thank you for your reply and sorry for the late reply. 2022年10月4日(火) 0:56 Chet Ramey : I expect the same behavior of `f1' and `f2' as far as there are no background jobs. Why? f2 calls `jobs', and so requests information in a particular format, which

Re: declare -F incorrect line number

2022-10-08 Thread Chet Ramey
of function nesting. Anything more than that requires some sort of stack, and I'm not sure it's worth the implementation cost. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.edu

Re: extglob can be erroneously enabled in bash-5.2 through comsub nesting

2022-10-07 Thread Chet Ramey
nks for the additional test. I'll take a look. It's unlikely that users will encounter this scenario. -- ``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: bracket needs to be escaped in variable substitution?

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

Re: extglob can be erroneously enabled in bash-5.2 through comsub nesting

2022-10-06 Thread Chet Ramey
ied to fix 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/ *** ../bash-5.2-patched/parse.y 2022-08-31 11:47:03.0 -0400 --- parse.y 2022-10-05 11:55:18

Re: declare -F incorrect line number

2022-10-06 Thread Chet Ramey
On 10/5/22 6:29 PM, Robert Elz wrote: Date:Wed, 5 Oct 2022 15:36:55 -0400 From:Chet Ramey Message-ID: <3d89acac-4c0a-64c9-e22c-1a3ca6860...@case.edu> | Other than that, there's no advantage. There can be. I have, on occasion (not in bash - I don't

Re: Extrem memory consumption during unicode test with alt-array implementation

2022-10-06 Thread Chet Ramey
to satisfy those malloc requests. That's the tradeoff: space vs speed. -- ``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 -F incorrect line number

2022-10-05 Thread Chet Ramey
if the `main' function gets declared as an abstraction technique. Other than that, there's no advantage. 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: declare -F incorrect line number

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

Bash-5.2 official patch 1

2022-10-05 Thread Chet Ramey
efine PATCHLEVEL 0 #endif /* _PATCHLEVEL_H_ */ --- 26,30 looks for to find the patch level (for the sccs version string). */ ! #define PATCHLEVEL 1 #endif /* _PATCHLEVEL_H_ */ -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis''

Bash-5.2 official patch 2

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

Re: getconf.c breaks --disable-nls

2022-10-04 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: logic in m4/strtoimax.m4 inverted

2022-10-04 Thread Chet Ramey
-defined symbol error. -- ``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: logic in m4/strtoimax.m4 inverted

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

Re: [PATCH] Fix foreground dead jobs in trap handlers reported like background ones in `jobs'

2022-10-03 Thread Chet Ramey
On 10/2/22 11:04 PM, Koichi Murase wrote: 2022年10月1日(土) 4:30 Chet Ramey : On 7/17/22 11:52 PM, Koichi Murase wrote: the change to print_job appears not to be needed (at least all of your test cases work without it). Maybe it has been fixed in another way, but how about the following test

Re: [PATCH] Fix foreground dead jobs in trap handlers reported like background ones in `jobs'

2022-10-03 Thread Chet Ramey
On 10/2/22 11:04 PM, Koichi Murase wrote: 2022年10月1日(土) 4:30 Chet Ramey : On 7/17/22 11:52 PM, Koichi Murase wrote: Thanks for the detailed report and suggested patches. I applied a variant of your patch 3; Thank you for taking the time to review and apply the patch. the change to print_job

  1   2   3   4   5   6   7   8   9   10   >