Re: Bash manual - possible minor formatting issue

2023-11-13 Thread Chet Ramey

On 11/11/23 3:05 PM, Greg wrote:

Hello,

I think there may be a minor formatting issue in the set​ builtin section of the Bash manual 
(https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html). In the description of 
the "x​" option, the second "for" in the first sentence is formatted as inline 
code but I believe it should be formatted as regular text.

So instead of "arithmetic ​`for​​` commands" I believe it should be "arithmetic for 
commands" all in regular text. If I am mistaken then please ignore this email.


Thanks for the report. In this use, `for' is a reserved word, and reserved
words are emphasized in the text.

--
``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: git commit for 5.2 patch 16 added a "tags" file

2023-11-13 Thread Chet Ramey

On 11/12/23 10:44 AM, Clark Wang wrote:

commit 4214b0e12b4345c970d4d50705b1443441baedf8
Author: Chet Ramey 
Date:   Fri 2023-11-10 05:39:38 +0800

 Bash-5.2 patch 16: fix for a crash if one of the expressions in an
arithmetic for command expands to NULL

M   execute_cmd.c
M   patchlevel.h
A   tags

I guess it's not intentional.


It's harmless, but I should probably put it in .gitignore.

--
``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: FEATURE REQUEST : shell option to automatically terminate child processes on parent death

2023-11-13 Thread Chet Ramey
On 11/12/23 4:49 AM, Corto Beau via Bug reports for the GNU Bourne Again 
SHell wrote:


There's another reason the shell option is not a good idea though ; it 
tells Bash to set the PDEATHSIG flag on all direct children, but we might 
want to set the flag only for some specific children. Hence the 
"run_with_pdeathsig" builtin that sets it only for the child created to 
execute the command.


If target-specific features are an issue, I won't push that proposal any 
further.


I'd look at a loadable builtin for this. With that approach, you can be
as selective as you want, and extend it to children or mess around with
subreapers.

A loadable builtin is appropriate for a feature that only works on Linux.

--
``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/