Re: filedescriptor leakage, potential crash

2025-02-07 Thread Martin D Kealey
On Sat, 8 Feb 2025 at 13:04, Oğuz wrote: > On Saturday, February 8, 2025, Martin D Kealey > wrote: >> >> ls -mU /proc/$$/fd >> ls -log /proc/$$/fd/99 >> > > They should appear in the output of `ls -l /proc/self/fd' in order for it > to be considered leakage > Oh gosh, I'm so glad you've corre

filedescriptor leakage, potential crash

2025-02-07 Thread Martin D Kealey
Funny the bugs one finds when reading the source code to a program... I was looking at the usage of INPUT_REDIRECT and TRANSLATE_REDIRECT in execute_null_command() and thought “why compare against 8 values, when by re-ordering enum r_instruction in command.h, a simple range check would suffice?” Wh

Re: "printf %d ''" should diagnose the empty string

2025-02-07 Thread Martin D Kealey
Hi Chet We seem to have very similar opinions about strong backwards compatibility in theory, and yet somehow we keep butting heads on how that pans out in practice. I'm concerned that the last ten years has seen a number of Linux distributions *stop* including Bash by default, and it has ceased

Re: Patch on shellmath.sh from bash-doc v.5.2.32, r.1.fc41

2025-02-07 Thread Chet Ramey
On 2/4/25 8:42 PM, Wiley Young wrote: Hi, Please say something if this patch should be sent someplace else. If you do send this along to the github repo for this project, you might consider saving the diff output to a file and attaching it to something instead of pasting it and letting your

Re: filedescriptor leakage, potential crash

2025-02-07 Thread Oğuz
On Saturday, February 8, 2025, Martin D Kealey wrote: > > ls -mU /proc/$$/fd > ls -log /proc/$$/fd/99 > They should appear in the output of `ls -l /proc/self/fd' in order for it to be considered leakage -- Oğuz

Re: "printf %d ''" should diagnose the empty string

2025-02-07 Thread Robert Elz
Date:Sat, 8 Feb 2025 13:21:34 +1000 From:Martin D Kealey Message-ID: | While POSIX doesn't directly specify what happens when converting | an empty-string to a number, It also doesn't say what should be done when converting %%% into a number either, but I doub

Re: return [n] documentation.

2025-02-07 Thread Chet Ramey
On 2/6/25 5:08 PM, Phi Debian wrote: I still don't know the impact (implication) of extdebug, does it impact perf ? The effects of extdebug are documented in the man page. Some of the bookkeeping for BASH_ARGC and BASH_ARGV will have an effect on performance versus not maintaining them, but mos

Re: return [n] documentation.

2025-02-07 Thread Chet Ramey
On 2/6/25 5:12 PM, Phi Debian wrote: Again, may be it is just me, but the reading with the back and forth reading and long distance jump in the docco to figure out how it works looks complicated, but that's good enough, I can proceed :-) This is one place where the info format, with its intern

Re: Documenting Bash’s Tilde Expansion in PATH: A Proposal for Clarity and Compatibility

2025-02-07 Thread Martin D Kealey
On Tue, 4 Feb 2025 at 11:03, Zeffie via Bug reports for the GNU Bourne Again SHell wrote: > To address the above points, the following text (or similar language) is > proposed for inclusion in the Bash Reference Manual: > > *[...] * In interactive Bash sessions, any element of the `PATH` variabl