Manual entry for !!:$

2025-01-17 Thread Martin Schulte
Hello, in 9.3.2 of https://www.gnu.org/software/bash/manual/bash.html we find: !!:$ designates the last argument of the preceding command. This may be shortened to !$. Shouldn't this be "the last word" instead of the "the last argument": $ echo hello > /dev/null $ echo !!:$ echo /dev/null /dev

Re: Suggestion of wording for portion of man page

2025-01-17 Thread Lawrence Velázquez
On Fri, Jan 17, 2025, at 7:55 AM, Greg Wooledge wrote: > On Thu, Jan 16, 2025 at 21:16:47 -0800, Wiley Young wrote: >> But sentence six is an emphatic concern if you ask me, for how "character" >> reads as "alphabetic character". Also how sentences five and six can be >> read as contradictory. > >

Re: Another undo list UAF

2025-01-17 Thread Grisha Levit
On Fri, Jan 17, 2025 at 5:34 PM Chet Ramey wrote: > > On 1/17/25 4:57 PM, Grisha Levit wrote: > > On Fri, Jan 17, 2025 at 4:47 PM Grisha Levit wrote: > >> > >> On Fri, Jan 17, 2025 at 9:31 AM Chet Ramey wrote: > >>> > >>> On 1/15/25 4:08 PM, Grisha Levit wrote: > Another undo list UAF. Rela

Re: READ builtin returns wrong value

2025-01-17 Thread Greg Wooledge
On Fri, Jan 17, 2025 at 21:11:12 +0100, dv wrote: > Description: > # If the input string of a READ matches a variable in the script, REPLY is > # set to the value that variable, not to the string. > declare -i int There's your problem: you're using the -i attribute on a variable without understan

READ builtin returns wrong value

2025-01-17 Thread dv
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall uname output: Linux amnesia 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03)

Re: Another undo list UAF

2025-01-17 Thread Chet Ramey
On 1/17/25 4:57 PM, Grisha Levit wrote: On Fri, Jan 17, 2025 at 4:47 PM Grisha Levit wrote: On Fri, Jan 17, 2025 at 9:31 AM Chet Ramey wrote: On 1/15/25 4:08 PM, Grisha Levit wrote: Another undo list UAF. Related, I think, to edit-and-execute-command. HISTFILE= INPUTRC=/ bash --norc -in <

Re: Another undo list UAF

2025-01-17 Thread Chet Ramey
On 1/17/25 4:47 PM, Grisha Levit wrote: I just tried a fresh build on macOS (15.2, arm64) and see the same result: $ ./configure CFLAGS='-fsanitize=address' $ make -j $ HISTFILE= INPUTRC=/ ./bash --norc -in <<< $' \n\cP \cN\cP\cU\cX\cE\n\e<' bash-5.3$ bash-5.3$ bash-5.3$ bash-5.3$

Re: Another undo list UAF

2025-01-17 Thread Grisha Levit
On Fri, Jan 17, 2025 at 4:47 PM Grisha Levit wrote: > > On Fri, Jan 17, 2025 at 9:31 AM Chet Ramey wrote: > > > > On 1/15/25 4:08 PM, Grisha Levit wrote: > > > Another undo list UAF. Related, I think, to edit-and-execute-command. > > > > > > HISTFILE= INPUTRC=/ bash --norc -in <<< $' \n\cP \cN\cP

Re: Another undo list UAF

2025-01-17 Thread Grisha Levit
On Fri, Jan 17, 2025 at 9:31 AM Chet Ramey wrote: > > On 1/15/25 4:08 PM, Grisha Levit wrote: > > Another undo list UAF. Related, I think, to edit-and-execute-command. > > > > HISTFILE= INPUTRC=/ bash --norc -in <<< $' \n\cP \cN\cP\cU\cX\cE\n\e<' > > I can't reproduce this on macOS. > I just trie

Re: Another undo list UAF

2025-01-17 Thread microsuxx
those bugs have old lib versions around .. On Fri, Jan 17, 2025, 3:32 PM Chet Ramey wrote: > On 1/15/25 4:08 PM, Grisha Levit wrote: > > Another undo list UAF. Related, I think, to edit-and-execute-command. > > > > HISTFILE= INPUTRC=/ bash --norc -in <<< $' \n\cP \cN\cP\cU\cX\cE\n\e<' > > I can'

Re: Another undo list UAF

2025-01-17 Thread Chet Ramey
On 1/15/25 4:08 PM, Grisha Levit wrote: Another undo list UAF. Related, I think, to edit-and-execute-command. HISTFILE= INPUTRC=/ bash --norc -in <<< $' \n\cP \cN\cP\cU\cX\cE\n\e<' I can't reproduce this on macOS. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer

Re: Suggestion of wording for portion of man page

2025-01-17 Thread Greg Wooledge
On Thu, Jan 16, 2025 at 21:16:47 -0800, Wiley Young wrote: > Well, however an amendment might occur, "Each character in the expanded > value of parameter is tested against pattern" to my ear reads as referring > to alphabetic characters, as per sentence one, however they may appear in > binary. Ch