Memory Leak - Bash 4.3.x30

2024-03-26 Thread Jordi Ferrer
Just in case for people running old servers: This simple code cause a memory leak in bash: #!/bin/bash # Array=("S" "E") while [ 1 ]; do A=${Array[0]} done But, adding colons to the assignment it doesn't: #!/bin/bash # Array=("S" "E") while [ 1 ]; do

Debian bug #929178: wrong trap displayed inside functions

2024-03-26 Thread Oğuz
On Tuesday, March 26, 2024, Martin D Kealey wrote: > > When forwarding incoming HTML to a text-only list, most mailing list > servers will put the hyperlinks in a footnote, so that that long links > won't obscure the text they apply to. (The better ones only do this when > text text and its hyperl

Re: Debian bug #929178: wrong trap displayed inside functions

2024-03-26 Thread Martin D Kealey
On Tue, 26 Mar 2024 at 04:05, Oğuz wrote: > On Mon, Mar 25, 2024 at 8:38 PM G. Branden Robinson > wrote: > > [1] > > [1] http... > > I keep seeing this. Why don't you guys just paste the link? > When forwarding incoming HTML to a text-only list, most mailing list servers will put the hyperlinks

Re: feat: exit 1 "file not found"

2024-03-26 Thread Chet Ramey
On 3/22/24 3:29 PM, teknopaul wrote: Hi not sure if this is the correct forum... exit builtin accepts one and only one arg currently. Would it be backwards compatible and generally useful to support echoing a reason for exiting? Thanks for the suggestion. I don't see this as being of enough

funsub in PS2

2024-03-26 Thread Grisha Levit
Having funsubs in PS2 seems to cause input tokens that are split across lines to be partially replaced with the last token of the last funsub to be parsed while expanding the prompt string. $ PS2='${ : ; }> ' $ printf '[%s]\n' ab\ > cd [XXcd]

[PATCH] fix cmd and hist nums in ${var@P} inside $PS[012]

2024-03-26 Thread Grisha Levit
When \# or \! is decoded in a ${var@P} expansion embedded in a prompt string, the value can be off by one from that of the same sequence embedded directly in the prompt string. $ H='\!' $ PS1='(\!:${H@P}) $' (3:2 501:500) $ * parse.y - decode_prompt_string: accept new int flag to sign