Re: ixz.bug.1.varnotnewalias

2021-02-05 Thread Chet Ramey
On 2/5/21 4:28 PM, Alex fxmbsw7 Ratchev wrote: you mean there is a i xz and a l xz ? indeed, thats a bug of myself instead of bash thats all about this report ill redo anyway as it appeared to have good effects thank you and sorry for my bug instead of yours OK, on to the next one. Pick the n

Re: feature request: ${ regex s expander, and multiple expandrs inside one

2021-02-05 Thread Alex fxmbsw7 Ratchev
i actually hope for also replacement code that can use regex grouped data On Fri, Feb 5, 2021 at 10:13 PM Chet Ramey wrote: > On 2/5/21 3:29 PM, Alex fxmbsw7 Ratchev wrote: > > .. > > > > var=mynewfoo > > printf ${var~~n[^f]+} > > -> > > myfoo > > So you want to remove portions of a vari

Re: ixz.bug.1.varnotnewalias

2021-02-05 Thread Alex fxmbsw7 Ratchev
you mean there is a i xz and a l xz ? indeed, thats a bug of myself instead of bash thats all about this report ill redo anyway as it appeared to have good effects thank you and sorry for my bug instead of yours On Fri, Feb 5, 2021 at 10:26 PM Chet Ramey wrote: > On 2/5/21 12:52 PM, Alex fxmbs

Re: ixz.bug.1.varnotnewalias

2021-02-05 Thread Chet Ramey
On 2/5/21 12:52 PM, Alex fxmbsw7 Ratchev wrote: so first bug: running arr=( 1 2 ) \n . src/to/alias_add then \n var=( 3 ) \n alias_made_by_the_alias_add This is totally inscrutable. If that is an accurate summation of your bug report, try to redo things with maybe a quarter of the code. Lawren

Re: feature request: ${ regex s expander, and multiple expandrs inside one

2021-02-05 Thread Chet Ramey
On 2/5/21 3:29 PM, Alex fxmbsw7 Ratchev wrote: .. var=mynewfoo printf ${var~~n[^f]+} -> myfoo So you want to remove portions of a variable's value that match a regex? and also multiple expanders inside one statement would greatly speed up processment and also fulfill old greatly codi

Re: ixz.bug.1.varnotnewalias

2021-02-05 Thread Lawrence Velázquez
> On Feb 5, 2021, at 3:40 PM, Alex fxmbsw7 Ratchev wrote: > > im sorry, in my terminal there is no unescaped ( or at all ) '(' in the > regex There are no parentheses in the gawk command I sent. It is identical to the one you sent initially. > see the display problem is.. > > bash-5.1# bash -x

Re: ixz.bug.1.varnotnewalias

2021-02-05 Thread Alex fxmbsw7 Ratchev
well many settings, i set there this it reloaded but seems it didnt work oh well ill add still, till i code my public domain open source code imperium that'll include chats and such On Fri, Feb 5, 2021 at 9:41 PM Lawrence Velázquez wrote: > There are multiple Reply All buttons in the Gmail web i

Re: ixz.bug.1.varnotnewalias

2021-02-05 Thread Alex fxmbsw7 Ratchev
> > i tried to report, that i tried to set the var new, but it didnt work so > second alias | source run returned same two firstly aixz=( .. ) defined > elements again > and the gawk which catched the first aixz=( .. but not the second, yes, why > you pasted gawk '/..|..' in my code it always ended

feature request: ${ regex s expander, and multiple expandrs inside one

2021-02-05 Thread Alex fxmbsw7 Ratchev
.. var=mynewfoo printf ${var~~n[^f]+} -> myfoo and also multiple expanders inside one statement would greatly speed up processment and also fulfill old greatly coding wanting possibilities thanks

Re: ixz.bug.1.varnotnewalias

2021-02-05 Thread Lawrence Velázquez
> On Feb 5, 2021, at 3:02 PM, Alex fxmbsw7 Ratchev wrote: > > i tried to report, that i tried to set the var new, but it didnt work so > second alias | source run returned same two firstly aixz=( .. ) defined > elements again > and the gawk which catched the first aixz=( .. but not the second,

Re: ixz.bug.1.varnotnewalias

2021-02-05 Thread Lawrence Velázquez
> On Feb 5, 2021, at 12:52 PM, Alex fxmbsw7 Ratchev wrote: > > bash-5.1# bash -x ixz.bug.varnotnewalias 2>&1 | gawk '/aixz=|alias --|not > fou/' > + aixz=("$ixzd"/+{ixz,kw}) > ++ alias -- '+ixz= > ++ alias -- '+kw= > ++ alias -- '+ixz= > ++ alias -- '+kw= > ixz.bug.varnotnewalias: line 13: KWS: c

Re: Bash shouldn't perform syntax check on single-quoted strings

2021-02-05 Thread Oğuz
On Fri, Feb 5, 2021 at 5:46 PM Chet Ramey wrote: > I can't reproduce this. > After rebuilding it, neither can I. Weird

ixz.bug.1.varnotnewalias

2021-02-05 Thread Alex fxmbsw7 Ratchev
so first bug: running arr=( 1 2 ) \n . src/to/alias_add then \n var=( 3 ) \n alias_made_by_the_alias_add ( in another post its the same withotu using the alias directly but simply . file again, var doesnt get new ) i did also, on another post, simply do var=( path/nonrexist ) and in set -x its in

Re: Bash shouldn't perform syntax check on single-quoted strings

2021-02-05 Thread Chet Ramey
On 2/5/21 5:15 AM, Oğuz wrote: $ echo ' > ${a+$(|)} bash: command substitution: line 7: syntax error near unexpected token `|' bash: command substitution: line 7: `|)}' bash: unexpected EOF while looking for matching `)' > Reproducible on devel, 5.1.4, and 5.0.17, but the latte

Bash shouldn't perform syntax check on single-quoted strings

2021-02-05 Thread Oğuz
$ echo ' > ${a+$(|)} bash: command substitution: line 7: syntax error near unexpected token `|' bash: command substitution: line 7: `|)}' bash: unexpected EOF while looking for matching `)' > Reproducible on devel, 5.1.4, and 5.0.17, but the latter handles it better. And while testing