Cursor jumps to leftmost column on trap ... SIGALRM

2022-02-04 Thread Markus Schwarzenberg
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/us

Re: Incorrect alias expansion within command substitution

2022-02-04 Thread Chet Ramey
On 2/4/22 2:23 PM, Alex fxmbsw7 Ratchev wrote: > imho the example above should have resulted in error ')' > it would execute cat a b ) with hello till $( then rather \n and a b ) > again, useless > especially the $( wasnt even quoted What can this possibly mean? What sem

Re: Cursor jumps to leftmost column on trap ... SIGALRM

2022-02-04 Thread Chet Ramey
On 2/4/22 9:54 AM, Markus Schwarzenberg wrote: Bash Version: 5.1 Patch Level: 8 Release Status: release Description: The position of the cursor changes to the first column when bash, running inside xterm, receives the signal SIGALRM Thanks for the report. It's readline and bra

Re: Incorrect alias expansion within command substitution

2022-02-04 Thread Chet Ramey
On 2/3/22 4:20 PM, Robert Elz wrote: | and it's just | as clear that, let's say, implementations differ in this area. Aside from bash 5.2, not really. There are lots of implementation bugs are limitations, but not really any expectation that the here doc end word text can be modified (b

Re: Incorrect alias expansion within command substitution

2022-02-04 Thread Chet Ramey
On 2/3/22 9:46 PM, Alex fxmbsw7 Ratchev wrote: The case I had in question with the question about $( a b ) was this one...         cat <<$( a b )         hello         $( a b ) i think you are mis understanding the differencies here between shell expression parsing, an

Re: Incorrect alias expansion within command substitution

2022-02-04 Thread Alex fxmbsw7 Ratchev
On Fri, Feb 4, 2022, 20:18 Chet Ramey wrote: > On 2/3/22 9:46 PM, Alex fxmbsw7 Ratchev wrote: > > > The case I had in question with the question about $( a b ) was this > > one... > > > > cat <<$( a b ) > > hello > > $( a b ) > > > > > > i think you

Re: Incorrect alias expansion within command substitution

2022-02-04 Thread Alex fxmbsw7 Ratchev
On Fri, Feb 4, 2022 at 8:28 PM Chet Ramey wrote: > > On 2/4/22 2:23 PM, Alex fxmbsw7 Ratchev wrote: > > > > imho the example above should have resulted in error ')' > > > it would execute cat a b ) with hello till $( then rather \n and a b > > ) > > > again, useless > > > espe

Re: Incorrect alias expansion within command substitution

2022-02-04 Thread Alex fxmbsw7 Ratchev
On Fri, Feb 4, 2022 at 8:56 PM Alex fxmbsw7 Ratchev wrote: > > On Fri, Feb 4, 2022 at 8:28 PM Chet Ramey wrote: > > > > On 2/4/22 2:23 PM, Alex fxmbsw7 Ratchev wrote: > > > > > > imho the example above should have resulted in error ')' > > > > it would execute cat a b ) with hello till

Re: Cursor jumps to leftmost column on trap ... SIGALRM

2022-02-04 Thread Markus Schwarzenberg
On Fri, 4 Feb 2022 13:19:37 -0500 Chet Ramey wrote: > On 2/4/22 9:54 AM, Markus Schwarzenberg wrote: > > > Bash Version: 5.1 > > Patch Level: 8 > > Release Status: release > > > > Description: > > The position of the cursor changes to the first column when > > bash, running inside xterm, re

Re: Incorrect alias expansion within command substitution

2022-02-04 Thread Robert Elz
Date:Fri, 4 Feb 2022 21:06:11 +0100 From:Alex fxmbsw7 Ratchev Message-ID: | now changing this to dynamic eof marker There is no such thing. Unlikely (*VERY* unlikely) there ever will be. | cat <<$( printf leet ) | $( printf leet ) | $( printf leet )

Re: Incorrect alias expansion within command substitution

2022-02-04 Thread Alex fxmbsw7 Ratchev
On Fri, Feb 4, 2022 at 10:18 PM Robert Elz wrote: > > Date:Fri, 4 Feb 2022 21:06:11 +0100 > From:Alex fxmbsw7 Ratchev > Message-ID: > > > > | now changing this to dynamic eof marker > > There is no such thing. Unlikely (*VERY* unlikely) there ever will be. > >

Re: Incorrect alias expansion within command substitution

2022-02-04 Thread Chet Ramey
On 2/4/22 2:56 PM, Alex fxmbsw7 Ratchev wrote: by flat non lexical text parsing, excepts for quotes but then $( logically expands, excepts: but imho the topic here is how far to expand shell stuff at this position, however factically its just needs to be a constant data separator Well, you'd c

Re: Cursor jumps to leftmost column on trap ... SIGALRM

2022-02-04 Thread Chet Ramey
On 2/4/22 4:11 PM, Markus Schwarzenberg wrote: On Fri, 4 Feb 2022 13:19:37 -0500 Chet Ramey wrote: On 2/4/22 9:54 AM, Markus Schwarzenberg wrote: Bash Version: 5.1 Patch Level: 8 Release Status: release Description: The position of the cursor changes to the first column when bash, r

Re: Cursor jumps to leftmost column on trap ... SIGALRM

2022-02-04 Thread Markus Schwarzenberg
On Fri, 4 Feb 2022 17:37:06 -0500 Chet Ramey wrote: > It depends on whether or not bracketed paste is active. Must admit I wasn't aware of this. And will think about whether I need it. > On 2/4/22 4:11 PM, Markus Schwarzenberg wrote: > > On Fri, 4 Feb 2022 13:19:37 -0500 > > Chet Ramey wrote:

Re: Incorrect alias expansion within command substitution

2022-02-04 Thread Alex fxmbsw7 Ratchev
On Fri, Feb 4, 2022, 23:12 Chet Ramey wrote: > On 2/4/22 2:56 PM, Alex fxmbsw7 Ratchev wrote: > > >>> by flat non lexical text parsing, excepts for quotes but then $( > logically > >>> expands, excepts: > >>> but imho the topic here is how far to expand shell stuff at this > position, > >>> howev

Re: Incorrect alias expansion within command substitution

2022-02-04 Thread Alex fxmbsw7 Ratchev
what about this viewing point aliases can start, $(('s, but not end... this is unlogic alias -- \ p='printf %s\\n ' \ assign='assign=$(( ' begin='$(( ' \ for data in "1 + 2" do alias -- data="$d " p begin data )) done this works and results 3 its just, early bugs, unlogic :) On Sat, Feb 5, 202

Re: Incorrect alias expansion within command substitution

2022-02-04 Thread Alex fxmbsw7 Ratchev
it seems me here the data was used as var inside $(( not as alias i tried d1 d2 d3 combination and didnt work On Sat, Feb 5, 2022 at 12:17 AM Alex fxmbsw7 Ratchev wrote: > > what about this viewing point > aliases can start, $(('s, but not end... this is unlogic > > alias -- \ > p='printf %s\\n '