On Wed, 20 Jan 2021 10:03:49 +0000, Pancho wrote:
> On 19/01/2021 22:15, Martin Gregorie wrote:
>
>>> I think you are missing the point. If I pipe 4095 characters into
>>> mawk,
>>> nothing happens, if a pipe an extra char to make 4096, it prints out.
>>
>> Thats definitely faulty behaviour: pipe operation should not depend on
>> how full the pipe is.
>>
>>
> Richard explained it better than me. It's mawk waiting until it has a
> block of 4096 bytes (or EOF). Clearly designed behaviour.
>
> With 20.04, Ubuntu seems to have switched from mawk to gawk as default
> awk. I don't know if this is Ubuntu specific or Debian. So it's quite
> possible this will be reflected in the next version of Raspbian
> (Rasberry Pi OS)
>
> This is exactly what I mean by fragile. Someone writes a script to do
> something using awk, an OS update comes along and the app completely
> changes.
In Fedora systems the binary is called gawk with awk as an alias
In Raspbian Buster the binary is /usr/bin/mawk with awk and nawk as
aliases
So, the same shell script should run in both places: my test scripts do
exactly that *and* do not show the long delay you're seeing.
--
--
Martin | martin at
Gregorie | gregorie dot org
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|