Re: [PATCH 2/2] allow keeping output of potentially failed tests

2025-10-15 Thread Chet Ramey
`Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: heap-use-after-free executing_line_number() bash/execute_cmd.c:419:40

2025-10-13 Thread Chet Ramey
push. 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/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: Bash redirection operator ‘<<-’

2025-10-13 Thread Chet Ramey
xed in the devel branch back in August. -- ``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] ununnecessary open(2) mode args

2025-10-09 Thread Chet Ramey
On 10/9/25 8:05 AM, Stan Marsh wrote: (**) What "cat thing" ? The `cat' loadable builtin. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.

Re: [PATCH] ununnecessary open(2) mode args

2025-10-08 Thread Chet Ramey
t code has been there since 1991 (execpt for the cat thing). It seems kind of silly to suddenly be worrying about it now. But I suppose it's necessary to quite the warnings. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis

Re: [bug #67579] crash during reverse i-search

2025-10-08 Thread Chet Ramey
tps://lists.gnu.org/archive/html/bug-bash/2025-08/msg00080.html in commit https://cgit.git.savannah.gnu.org/cgit/bash.git/commit/?h=devel&id=086456835944d1a3098a026646144573deafc917 Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa,

Re: [PATCH] bashref.texi: @minus{} rendering

2025-10-06 Thread Chet Ramey
difference in how you write it in a script or in an interactive shell: you use `-'. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru

Re: [PATCH 3/6] doc/bash.1: Revise "BUG REPORTS" section.

2025-10-06 Thread Chet Ramey
ng the line to `.IP (b) 4n' doesn't fix 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/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: array from tempenv in further-nested scope

2025-10-03 Thread Chet Ramey
not to treat a variable from the temporary environment that's converted to a non-scalar as a temp variable any more. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU

Re: bash crashes on SIGPIPE on 2nd write to broken TCP connection

2025-10-02 Thread Chet Ramey
e craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: [BUG] shell_start_time

2025-10-02 Thread Chet Ramey
ular. -- ``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/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: Some compile-time warnings

2025-10-01 Thread Chet Ramey
, but this is a reasonable change. -- ``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/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: valgrind errors (sometimes resulting in a crash)

2025-09-30 Thread Chet Ramey
ached to a debugger. OK. Let me know if you find a way to reproduce it easily. -- ``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/ Ope

Re: Some compile-time warnings

2025-09-30 Thread Chet Ramey
On 9/29/25 5:15 PM, Collin Funk wrote: Chet Ramey writes: On 9/29/25 1:00 AM, Martin D Kealey wrote: The malloc size warning is concerning, as the excessive “size” is (uint64_t)(-1). It seems theoretical, since the line in question is temp = pointer ? realloc (pointer, bytes) : malloc

Re: Stdin read-ahead in Emacs mode

2025-09-29 Thread Chet Ramey
le, but not a tty), and we're running under emacs, bash could perform single-character reads, but it seems like an awfully special case compensating for some strange circumstances. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita b

Re: [PATCH v2 3/7] doc/bash.1: Mention quoting when assigning to FIGNORE

2025-09-25 Thread Chet Ramey
On 9/24/25 10:23 AM, Andreas Schwab wrote: On Sep 24 2025, Chet Ramey wrote: On 9/22/25 10:19 AM, Gioele Barabucci wrote: diff --git a/doc/bash.1 b/doc/bash.1 index 8c6b51a4..5b180065 100644 --- a/doc/bash.1 +++ b/doc/bash.1 @@ -2513,6 +2513,8 @@ A filename whose suffix matches one of the

Re: About fltexpr

2025-09-25 Thread Chet Ramey
imal representation that will survive a round-trip from double to string to double. Look at fltexpr.c:fltexpr_format(). -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.edu

Re: valgrind errors (sometimes resulting in a crash)

2025-09-24 Thread Chet Ramey
`make valgrind'? The bash malloc and wrapper functions seriously confuse valgrind. -- ``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/~c

Re: [PATCH v2 3/7] doc/bash.1: Mention quoting when assigning to FIGNORE

2025-09-24 Thread Chet Ramey
.Q .o:\*~ . And, by the way, the example is wrong. The values in FIGNORE are not patterns, so the `*' will likely not match. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU

Re: About fltexpr

2025-09-23 Thread Chet Ramey
g to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: About fltexpr

2025-09-23 Thread Chet Ramey
g' would address the OP's requirements. -- ``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/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: About fltexpr

2025-09-23 Thread Chet Ramey
raft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: [PATCH] command: time

2025-09-23 Thread Chet Ramey
execute a command a specified number of times (we're not), adding a repeat count here is not the right way to do it, either. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, U

Re: [PATCH v2 0/7] Ancient documentation fixes from Debian

2025-09-23 Thread Chet Ramey
;s fine, the real question is whether they're necessary at all. ## [PATCH 1/7] doc: Document interaction between `exec` and redirections On 22/09/25 17:28, Chet Ramey wrote: I'm satisfied with the language in the current man page, which is "When used with the exec builtin, redir

Re: CORRECTED: Bug in the read command

2025-09-23 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/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: Bad filename tab completion with bracket and dollar sign

2025-09-22 Thread Chet Ramey
On 9/21/25 8:14 AM, Koichi Murase wrote: 2025年8月23日(土) 4:28 Chet Ramey : Repeat-By: 1. touch '[$L]'a '[$L]'b; 2. less * The completion is less "[$L]. Because bash completion guesses that the user wants the expansion to take place, since there&#

Re: [PATCH v2 0/7] Ancient documentation fixes from Debian

2025-09-22 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/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: [PATCH v2] examples/s-f/Bash_aliases: Fix off-by-one error

2025-09-22 Thread Chet Ramey
ors in the command, you're going to have to quote them. Such a thing can only be done by a bash internal command, like... It has to be a compound command, yes. Not a builtin. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis&#

Re: [PATCH v2 0/7] Ancient documentation fixes from Debian

2025-09-22 Thread Chet Ramey
r that they can serve as starting points for discussions about possible additional documentation. Why are you sending these again? -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, U

Re: [PATCH] examples/s-f/Bash_aliases: Fix off-by-one error

2025-09-22 Thread Chet Ramey
` function shadows `/usr/bin/seq`. Long before there was an external `seq' 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

Re: [PATCH 2/7] doc/bash.1: Document deprecated syntax for arithmetic evaluation

2025-09-22 Thread Chet Ramey
x27;' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: [PATCH 5/7] builtins/test: Document that file expressions act on the symlink target

2025-09-22 Thread Chet Ramey
craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: [PATCH 6/7] builtins/test: Document handling of parameters

2025-09-22 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/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: [PATCH v2] examples/s-f/Bash_aliases: Fix off-by-one error

2025-09-22 Thread Chet Ramey
On 9/22/25 10:36 AM, Greg Wooledge wrote: On Mon, Sep 22, 2025 at 10:12:09 -0400, Chet Ramey wrote: On 9/22/25 3:24 AM, Gioele Barabucci wrote: +for ((i=1; i<=n; i++)); do +"$@" You need the eval, otherwise something like repeat 5 v+=f fails. On the other ha

Re: [PATCH 4/7] doc/bash.1: Document role of LC_COLLATE in case-insensitive pathname expansion

2025-09-22 Thread Chet Ramey
shell options. I can see adding some text referencing globasciiranges to that section. -- ``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/7] doc/bash.1: Mention quoting when assigning to FIGNORE

2025-09-22 Thread Chet Ramey
sion might matter? -- ``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/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: [PATCH 1/7] doc: Document interaction between `exec` and redirections

2025-09-22 Thread Chet Ramey
ons modify file handles in the current shell execution 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/ OpenPGP_si

Re: [PATCH 7/7] doc/bash.1: Document -v/-x options

2025-09-22 Thread Chet Ramey
``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: [PATCH] examples/s-f/Bash_aliases: Fix off-by-one error

2025-09-22 Thread Chet Ramey
ga, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: [PATCH v2] examples/s-f/Bash_aliases: Fix off-by-one error

2025-09-22 Thread Chet Ramey
On 9/22/25 3:24 AM, Gioele Barabucci wrote: +for ((i=1; i<=n; i++)); do +"$@" You need the eval, otherwise something like repeat 5 v+=f fails. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis

Re: [PATCH] examples/s-f/Bash_aliases: Fix off-by-one error

2025-09-22 Thread Chet Ramey
; - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: [PATCH] examples/s-f/Bash_aliases: Fix off-by-one error

2025-09-22 Thread Chet Ramey
ft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: CORRECTED: Bug in the read command

2025-09-22 Thread Chet Ramey
read -N 1 v var+=v done `Wasteful' or not, it's something you can try out today. -- ``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/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: Bash glob range [0-5] in UTF-8 locale misses ¹, ² & ³

2025-09-20 Thread Chet Ramey
both in the range U+0001..U+00FF. This doesn't make much sense for codepoints in the range U+0080..U+00FF. Maybe not common, but it's perfectly valid. We should either: * Remove the <= UCHAR_MAX checks (which would make the behavior match the documentation) This is the rig

Re: builtin_name --help

2025-09-20 Thread Chet Ramey
``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: builtin_name --help

2025-09-19 Thread Chet Ramey
reason --help is there in the first place. -- ``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/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: builtin_name --help

2025-09-19 Thread Chet Ramey
ta brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: builtin_name --help

2025-09-19 Thread Chet Ramey
Prints the accumulated user and system times for the shell and all of its child processes. Exit Status: Always succeeds. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech,

Re: builtin_name --help

2025-09-19 Thread Chet Ramey
On 9/19/25 11:06 AM, Lawrence Velázquez wrote: On Fri, Sep 19, 2025, at 9:20 AM, Chet Ramey wrote: On 9/19/25 7:26 AM, Andreas Kähäri wrote: To get the help text, one should use "help builtin_name" (this also works for built-ins like "[" and "echo" that do not rec

Re: builtin_name --help

2025-09-19 Thread Chet Ramey
a, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: builtin_name --help

2025-09-19 Thread Chet Ramey
rt, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: builtin_name --help

2025-09-19 Thread Chet Ramey
t;--help" is supported? You can in the case we're discussing, but only because bash is a GNU program and `--help' is part of the GNU coding standards. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' -

Re: builtin_name --help

2025-09-19 Thread Chet Ramey
ong to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: builtin_name --help

2025-09-19 Thread Chet Ramey
[-H | -L | -P]] [-fi | -n] [-aclpSsvXx] source_file target_file cp [-R [-H | -L | -P]] [-fi | -n] [-aclpSsvXx] source_file ... target_directory $ echo $? 64 -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocr

Re: builtin_name --help

2025-09-19 Thread Chet Ramey
t accepting any options) do not return 0? Then maybe they should. Both /bin/[ and /bin/echo support "--help". This is a bad idea, and certainly not universal. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'

Re: builtin_name --help

2025-09-19 Thread Chet Ramey
ong to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: Bash glob range [0-5] in UTF-8 locale misses ¹, ² & ³

2025-09-19 Thread Chet Ramey
re. We could probably just remove the <= UCHAR_MAX checks (though this would make the option more like "globcranges"). I should have named it `rationalglobranges' but that ship sailed years ago. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer

Re: [bug #67486] Can't use if with two separate awk floating number comparisons

2025-09-18 Thread Chet Ramey
te if they wished. I prefer the mailing list; it integrates better with my workflow. -- ``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: CORRECTED: Bug in the read command

2025-09-18 Thread Chet Ramey
On 9/17/25 11:31 AM, pou...@tutamail.com wrote: Chet Ramey wrote: > Why? If you're running the script from an interactive shell with job > control enabled, the standard input and standard output will be the > same as the parent shell. I am kicking myself why I had to be so easi

Re: CORRECTED: Bug in the read command

2025-09-18 Thread Chet Ramey
Then you can choose how to handle it, probably by reading one character. -- ``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/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: bash hangs when executing a script with a here document larger than 64 KiB

2025-09-18 Thread Chet Ramey
ong to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: [PATCH] command substitution with trailing newlines (was Re: [PATCH] Add shopts for ...)

2025-09-18 Thread Chet Ramey
it a new patch because I think Chet will adjust this patch in a way he thinks is proper. I haven't looked at merging it yet. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ra

Re: Bug in the read command

2025-09-17 Thread Chet Ramey
On 9/17/25 10:37 AM, Oğuz wrote: On Wed, Sep 17, 2025 at 5:31 PM Chet Ramey wrote: Thanks, this is a mostly-unrelated issue that is easily fixed. Ah, you beat me to it. The problem is `i' ends up with -1 here https://cgit.git.savannah.gnu.org/cgit/bash.git/tree/builtins/read.def?h=devel

Re: [bug #67486] Can't use if with two separate awk floating number comparisons

2025-09-17 Thread Chet Ramey
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: Missing semicolon tolerated after double-bracket [[ ]] expression

2025-09-17 Thread Chet Ramey
On 9/16/25 10:58 PM, Martin D Kealey wrote: On Tue, 16 Sept 2025 at 01:46, Chet Ramey <mailto:chet.ra...@case.edu>> wrote: On 9/15/25 10:46 AM, Robert Elz wrote: > If it was intended to mean "parsing the script" it would certainly say so. Doe

Re: Bug in the read command

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

Re: Bug in the read command

2025-09-17 Thread Chet Ramey
On 9/17/25 11:09 AM, pourko--- via Bug reports for the GNU Bourne Again SHell wrote: Chet Ramey wrote: It's more likely that the OP is running the scripts from an interactive shell that is not bash. On my box I have no shells other than bash, and even sh is symlinked to bash ~# help |

Re: CORRECTED: Bug in the read command

2025-09-17 Thread Chet Ramey
cess has stopped. -- ``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: Bug in the read command

2025-09-17 Thread Chet Ramey
but it isn't, directly anyway, related to the issue complained of here.) This is correct. -- ``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: Bug in the read command

2025-09-17 Thread Chet Ramey
rting...$ Thanks, this is a mostly-unrelated issue that is easily fixed. -- ``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] command substitution with trailing newlines (was Re: [PATCH] Add shopts for ...)

2025-09-16 Thread Chet Ramey
On 9/15/25 11:03 PM, Kevin Pulo wrote: On Tue, 9 Sept 2025 at 00:05, Chet Ramey wrote: That association seems kind of tenuous, but it's better than nothing. Attached is a patch for suggested docs and tests updates, to go alongside the original ${;cmd;} patch. Shouldn't be t

Re: trap and BASH_COMMAND

2025-09-15 Thread Chet Ramey
On 9/13/25 5:45 AM, Mike Jonkmans wrote: Thanks for your answers. On Fri, Sep 12, 2025 at 04:31:07PM -0400, Chet Ramey wrote: On 9/11/25 5:02 PM, Mike Jonkmans wrote: The below script echoes (when saved to bash_command.bash): Trace: 1: bash_command.bash:29 onerror () 2

Re: [PATCH] ansic_quote: zero mbstate when needed

2025-09-15 Thread Chet Ramey
- Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: Missing semicolon tolerated after double-bracket [[ ]] expression

2025-09-15 Thread Chet Ramey
lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: Missing semicolon tolerated after double-bracket [[ ]] expression

2025-09-15 Thread Chet Ramey
ne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: more readline signal issue examples

2025-09-15 Thread Chet Ramey
On 9/5/25 8:21 PM, Grisha Levit wrote: On Thu, Sep 4, 2025 at 12:05 PM Chet Ramey wrote: Well, definitely a few. Thanks for the report. If you find other places where signals cause data to be freed, please report them as well. Sure, a couple variations on the recent reports: Thanks for

Re: Missing semicolon tolerated after double-bracket [[ ]] expression

2025-09-15 Thread Chet Ramey
only consider 0x00 through 0xFF, which are tabulated into syntax.c at build time [2]. That's the domain of isblank(3). -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU

Re: Missing semicolon tolerated after double-bracket [[ ]] expression

2025-09-15 Thread Chet Ramey
https://pubs.opengroup.org/onlinepubs/9799919799/functions/isblank.html#tag_17_266 -- ``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/ OpenPGP_

Re: trap and BASH_COMMAND

2025-09-13 Thread Chet Ramey
Would FUNCARGS[] be an addition? Holding the actual expanded arguments to the corresponding FUNCNAME. That seems like a lot of overhead for not much functionality beyond what BASH_ARGV provides. If you want to use BASH_ARGV, turn on extdebug. -- ``The lyf so short, the craft so long to

Re: [PATCH] command substitution with trailing newlines (was Re: [PATCH] Add shopts for ...)

2025-09-11 Thread Chet Ramey
) thinking along these lines when initially choosing ';'. That association seems kind of tenuous, but it's better than nothing. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Che

Re: Missing semicolon tolerated after double-bracket [[ ]] expression

2025-09-10 Thread Chet Ramey
t, or in. 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/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: On Martin D. Kealey

2025-09-10 Thread Chet Ramey
x27;' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: [bug #67486] Can't use if with two separate awk floating number comparisons

2025-09-10 Thread Chet Ramey
by hyperbole and the absolute certainty that you're right, which is off-putting and diminishes your argument. -- ``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: [bug #67486] Can't use if with two separate awk floating number comparisons

2025-09-09 Thread Chet Ramey
On 9/9/25 11:42 AM, Koichi Murase wrote: 2025年9月9日(火) 23:55 Chet Ramey : You can be an administrator or a contributor. I am an administrator for two groups: Bash and Readline. Being a contributor means being one of the developers: "Type below the name of the group you want to contribu

Re: Project management in Savannah

2025-09-09 Thread Chet Ramey
old, of course. :-) -- ``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: Project management in Savannah

2025-09-09 Thread Chet Ramey
ommon perspective across a range of projects, but it's a project-specific decision. I welcome bug fixes, but I've never made it someone else's obligation, so by that standard, having no other members makes sense. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer

Re: [bug #67486] Can't use if with two separate awk floating number comparisons

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

Re: [bug #67486] Can't use if with two separate awk floating number comparisons

2025-09-09 Thread Chet Ramey
On 9/9/25 11:37 AM, G. Branden Robinson wrote: At 2025-09-09T10:54:29-0400, Chet Ramey wrote: On 9/9/25 10:23 AM, G. Branden Robinson wrote: [Martin D. Kealey wrote:] Savane <https://savannah.nongnu.org/p/administration> (the software that runs on Savannah) only seems to offer

Re: [bug #67486] Can't use if with two separate awk floating number ...

2025-09-09 Thread Chet Ramey
take the poster's words at face value, they're either not using `set -e' or using it in some unusual way, since -e isn't in effect for the command list following `if'. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars long

Re: Bash glob range [0-5] in UTF-8 locale misses ¹, ² & ³

2025-09-08 Thread Chet Ramey
4.txt Mac.lan(2)$ echo $BASH_VERSION 5.3.0(14)-maint I assume this has to do with how APFS or HFS+ stores filenames (NFC vs. NFD Unicode). -- ``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/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: [PATCH] command substitution with trailing newlines (was Re: [PATCH] Add shopts for ...)

2025-09-08 Thread Chet Ramey
ita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: [PATCH] command substitution with trailing newlines (was Re: [PATCH] Add shopts for ...)

2025-09-05 Thread Chet Ramey
command character? 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/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: [PATCH] doc: missing parameter expansion operators in bash(1)

2025-09-05 Thread Chet Ramey
On 9/4/25 7:14 AM, Martin D Kealey wrote: On Thu, 4 Sep 2025, 00:06 Chet Ramey, <mailto:chet.ra...@case.edu>> wrote: If you think "significant parts" of the shell's behavior are undocumented, either point them out or propose documentation patches. Lo

Re: integer variable that unsets itself causes segfault

2025-09-04 Thread Chet Ramey
On 9/3/25 9:47 PM, Zachary Santer wrote: On Wed, Sep 3, 2025 at 4:05 PM Chet Ramey wrote: So the question is now whether to disallow `declare -in foo' (or `declare -in foo=bar') and make it a usage error, print a warning that it will be ineffective, or simply let it be ineffective

Re: integer variable that unsets itself causes segfault

2025-09-04 Thread Chet Ramey
On 9/1/25 2:14 PM, Chet Ramey wrote: On 8/30/25 12:22 PM, Zachary Santer wrote: On Sat, Aug 30, 2025 at 11:41 AM Chet Ramey wrote: It occurs to me that bash should print a warning when you attempt something like this: declare -n foo=bar declare -i foo since bash disallows that now by

Re: [PATCH] _rl_isearch_cleanup: avoid nested execution

2025-09-04 Thread Chet Ramey
places where signals cause data to be freed, please report them 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/ O

Re: [bug] After unset of a local variable that was exported in a parent scope, variable still seen in the environment

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

Re: [PATCH] doc: missing parameter expansion operators in bash(1)

2025-09-03 Thread Chet Ramey
p.org <mailto:some...@opengroup.org>, or using the problem reporting page? I'd use the page to open an issue. No one will do it for you based on an email. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hipp

Re: [PATCH] doc: missing parameter expansion operators in bash(1)

2025-09-03 Thread Chet Ramey
nted, either point them out or propose documentation patches. -- ``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 exits with "Broken pipe" with process subsitution and sleep

2025-09-03 Thread Chet Ramey
On 9/1/25 9:39 AM, Martin D Kealey wrote: (One difference is that SIGINT & SIGQUIT get delivered to a process group, Only when generated from the keyboard. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis''

  1   2   3   4   5   6   7   8   9   10   >