Re: missing way to extract data out of data

2021-03-19 Thread Greg Wooledge
On Fri, Mar 19, 2021 at 09:10:06PM -0400, Dale R. Worley wrote: > Alex fxmbsw7 Ratchev writes: > > yea well it does wonders, however was looking for a way without spawning > > externals like gawk.. maybe in future there will be =) > > Traditionally, shell scripts depended on external binaries to

Re: missing way to extract data out of data

2021-03-19 Thread Dale R. Worley
Alex fxmbsw7 Ratchev writes: > yea well it does wonders, however was looking for a way without spawning > externals like gawk.. maybe in future there will be =) Traditionally, shell scripts depended on external binaries to do a lot of the processing. At the least, what newer shells do with "{NNN

Re: in devel tree currently control-l doesnt refresh it prints newline or something non clearing

2021-03-19 Thread Alex fxmbsw7 Ratchev
thank you i dunno about gdb but adding ncurses et la fixed it thanks On Fri, Mar 19, 2021 at 2:18 PM Chet Ramey wrote: > > On 3/18/21 3:28 PM, Alex fxmbsw7 Ratchev wrote: > > hm how can i help > > its a fresh deb all-tree's system, i had bash 5.1.4-maint from a month or > > so ago ( only binary f

Re: why does this define bla() instead of respect the newline as command separator

2021-03-19 Thread Oğuz
19 Mart 2021 Cuma tarihinde Robert Elz yazdı: > Date:Fri, 19 Mar 2021 17:59:18 +0300 > From:=?UTF-8?B?T8SfdXo=?= > Message-ID: ar2vo1zribryvegnu...@mail.gmail.com> > > > | Not much related, but isn't this supposed to work? > > It is perhaps no surprise (considerin

Re: why does this define bla() instead of respect the newline as command separator

2021-03-19 Thread Robert Elz
Date:Fri, 19 Mar 2021 17:59:18 +0300 From:=?UTF-8?B?T8SfdXo=?= Message-ID: | Not much related, but isn't this supposed to work? It is perhaps no surprise (considering their relationship with dash) that the FreeBSD and NetBSD shells (at least a reasonably up to d

Re: why does this define bla() instead of respect the newline as command separator

2021-03-19 Thread Alex fxmbsw7 Ratchev
try with dev bash version, aliases work there, also include an ending space in your aliases to make the next get expanded instead of passed as arg On Fri, Mar 19, 2021, 15:59 Oğuz wrote: > On Fri, Mar 19, 2021 at 4:11 PM Chet Ramey wrote: > >> On 3/19/21 4:12 AM, Alex fxmbsw7 Ratchev wrote: >>

Re: why does this define bla() instead of respect the newline as command separator

2021-03-19 Thread Oğuz
On Fri, Mar 19, 2021 at 4:11 PM Chet Ramey wrote: > On 3/19/21 4:12 AM, Alex fxmbsw7 Ratchev wrote: > > eval $'alias n=bla\nn() { type $FUNCNAME ; }\nn' > > bla is a function > > bla () > > { > > type $FUNCNAME > > } > > > > it was supposed to be n() .. > > `n' is the first word in a positio

Re: Character corruption

2021-03-19 Thread Chet Ramey
On 3/19/21 10:02 AM, Кириллов Дима wrote: Bash Version: 5.1 Patch Level: 4 Release Status: release Description: Two bytes unicode characters getting corrupted under certain circumstances around every 5th attempt of running below command Repeat-By: 1) create an U

Character corruption

2021-03-19 Thread Кириллов Дима
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -DDEFAULT_PATH_VALUE='/usr/local/sbin:/usr/local/bin:/usr/bin' -DSTANDARD_UTILS_PATH='/usr/bin' -D

Re: why does this define bla() instead of respect the newline as command separator

2021-03-19 Thread Alex fxmbsw7 Ratchev
yes, thank you On Fri, Mar 19, 2021, 14:11 Chet Ramey wrote: > On 3/19/21 4:12 AM, Alex fxmbsw7 Ratchev wrote: > > eval $'alias n=bla\nn() { type $FUNCNAME ; }\nn' > > bla is a function > > bla () > > { > > type $FUNCNAME > > } > > > > it was supposed to be n() .. > > `n' is the first word

Re: Discussing Readline

2021-03-19 Thread Chet Ramey
On 3/18/21 12:48 PM, IFo Hancroft wrote: Would this be the right place to discuss Readline as well as propose features? Usually it's bug-readl...@gnu.org. If readline is included in an ncurses software that also uses its own keybindings for things, how would that work? It depends on what th

Re: in devel tree currently control-l doesnt refresh it prints newline or something non clearing

2021-03-19 Thread Chet Ramey
On 3/18/21 3:28 PM, Alex fxmbsw7 Ratchev wrote: hm how can i help its a fresh deb all-tree's system, i had bash 5.1.4-maint from a month or so ago ( only binary from another system ) and fetched the new today and compiled and installed, and cp'd to /bin i suspect it could be internal readline s

Re: why does this define bla() instead of respect the newline as command separator

2021-03-19 Thread Chet Ramey
On 3/19/21 4:12 AM, Alex fxmbsw7 Ratchev wrote: eval $'alias n=bla\nn() { type $FUNCNAME ; }\nn' bla is a function bla () { type $FUNCNAME } it was supposed to be n() .. `n' is the first word in a position where a simple command can be parsed, so it's subject to alias expansion. -- ``Th

Re: why does this define bla() instead of respect the newline as command separator

2021-03-19 Thread Robert Elz
Date:Fri, 19 Mar 2021 16:23:55 +0700 From:Robert Elz Message-ID: <18800.1616145...@jinx.noi.kre.to> Sorry for all the typos... | nothing to do with the \n that woukd have | worked just fine. I was "typing" that reply from my phone, something I do a much worse jo

Re: why does this define bla() instead of respect the newline as command separator

2021-03-19 Thread Robert Elz
Date:Fri, 19 Mar 2021 09:12:34 +0100 From:Alex fxmbsw7 Ratchev Message-ID: | eval $'alias n=bla\nn() { type $FUNCNAME ; }\nn' | bla is a function | bla () | { | type $FUNCNAME | } | | it was supposed to be n() .. nothing to do with the \n that

Re: why does this define bla() instead of respect the newline as command separator

2021-03-19 Thread Alex fxmbsw7 Ratchev
oh i know, it works as expected by alias definition, there is no space between alias defined and op, so it gets expanded correspondingly thank you On Fri, Mar 19, 2021, 10:14 Mike Jonkmans wrote: > On Fri, Mar 19, 2021 at 09:12:34AM +0100, Alex fxmbsw7 Ratchev wrote: > > eval $'alias n=bla\nn()

Re: why does this define bla() instead of respect the newline as command separator

2021-03-19 Thread Mike Jonkmans
On Fri, Mar 19, 2021 at 09:12:34AM +0100, Alex fxmbsw7 Ratchev wrote: > eval $'alias n=bla\nn() { type $FUNCNAME ; }\nn' > bla is a function > bla () > { > type $FUNCNAME > } > > it was supposed to be n() .. The eval $'...' can be left out. $ echo $BASH_VERSION 5.0.17(1)-release $ alias n=b

Re: missing way to extract data out of data

2021-03-19 Thread Alex fxmbsw7 Ratchev
ehe :)) you tell me rather a good pike beginnings resource On Fri, Mar 19, 2021 at 9:42 AM Andreas Schwab wrote: > On Mär 19 2021, Alex fxmbsw7 Ratchev wrote: > > > yea well it does wonders, however was looking for a way without spawning > > externals like gawk.. maybe in future there will be =

Re: missing way to extract data out of data

2021-03-19 Thread Andreas Schwab
On Mär 19 2021, Alex fxmbsw7 Ratchev wrote: > yea well it does wonders, however was looking for a way without spawning > externals like gawk.. maybe in future there will be =) You know where to get perl or python. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB4

why does this define bla() instead of respect the newline as command separator

2021-03-19 Thread Alex fxmbsw7 Ratchev
eval $'alias n=bla\nn() { type $FUNCNAME ; }\nn' bla is a function bla () { type $FUNCNAME } it was supposed to be n() ..