Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

I'll say it again for the logic impaired. -- Larry Wall


devel / comp.unix.shell / Re: awk: cmd. line:2: warning: regexp escape sequence `\ ' is not a known regexp operator

SubjectAuthor
* awk: cmd. line:2: warning: regexp escape sequence `\ ' is not a knownhongy...@gmail.com
`* Re: awk: cmd. line:2: warning: regexp escape sequence `\ ' is not aEd Morton
 `- Re: awk: cmd. line:2: warning: regexp escape sequence `\ ' is not aKenny McCormack

1
awk: cmd. line:2: warning: regexp escape sequence `\ ' is not a known regexp operator

<4d186125-9dc1-4f38-a411-b1ed6fd96702n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=4971&group=comp.unix.shell#4971

 copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:adf:ef83:0:b0:1e4:f048:7193 with SMTP id d3-20020adfef83000000b001e4f0487193mr2295759wro.349.1645105426031;
Thu, 17 Feb 2022 05:43:46 -0800 (PST)
X-Received: by 2002:ae9:e015:0:b0:60d:e5e2:1dcb with SMTP id
m21-20020ae9e015000000b0060de5e21dcbmr816210qkk.306.1645105425763; Thu, 17
Feb 2022 05:43:45 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Thu, 17 Feb 2022 05:43:45 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=203.175.13.138; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 203.175.13.138
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4d186125-9dc1-4f38-a411-b1ed6fd96702n@googlegroups.com>
Subject: awk: cmd. line:2: warning: regexp escape sequence `\ ' is not a known
regexp operator
From: hongyi.z...@gmail.com (hongy...@gmail.com)
Injection-Date: Thu, 17 Feb 2022 13:43:46 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 25
 by: hongy...@gmail.com - Thu, 17 Feb 2022 13:43 UTC

Today, on Ubuntu 20.04.3 LTS, when I'm running some tests of vasp [1], I encounter the awk warning as follows:

```
awk: cmd. line:2: warning: regexp escape sequence `\ ' is not a known regexp operator
```

The awk version is as follows:

```
$ awk --version
GNU Awk 5.0.1, API: 2.0 (GNU MPFR 4.0.2, GNU MP 6.2.0)
```

I also noticed the discussion here [2], it says the following:

```
It's a problem of gawk,I downgrade gawk from 5.0.1 to 4.2.1 then this report of "awk : cmd..." disappeared.
```

However, I am not sure if this is harmful. Any hints/explanations/fixings/workarounds will be highly appreciated.

[1] https://www.vasp.at/
[2] https://github.com/KittyKatt/screenFetch/issues/627#issuecomment-512685269

Regards,
HZ

Re: awk: cmd. line:2: warning: regexp escape sequence `\ ' is not a known regexp operator

<sullr0$noo$1@dont-email.me>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=4972&group=comp.unix.shell#4972

 copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mortons...@gmail.com (Ed Morton)
Newsgroups: comp.unix.shell
Subject: Re: awk: cmd. line:2: warning: regexp escape sequence `\ ' is not a
known regexp operator
Date: Thu, 17 Feb 2022 08:24:33 -0600
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <sullr0$noo$1@dont-email.me>
References: <4d186125-9dc1-4f38-a411-b1ed6fd96702n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 17 Feb 2022 14:24:33 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="758e5e05a239cd89b6fccc904ad6d223";
logging-data="24344"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/4FA46FOAfKYSH/rCMa6oE"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.6.0
Cancel-Lock: sha1:HhrWjjpjiF6MeX+bES+0J9o8zI0=
In-Reply-To: <4d186125-9dc1-4f38-a411-b1ed6fd96702n@googlegroups.com>
X-Antivirus-Status: Clean
Content-Language: en-US
X-Antivirus: Avast (VPS 220217-2, 2/17/2022), Outbound message
 by: Ed Morton - Thu, 17 Feb 2022 14:24 UTC

On 2/17/2022 7:43 AM, hongy...@gmail.com wrote:
> Today, on Ubuntu 20.04.3 LTS, when I'm running some tests of vasp [1], I encounter the awk warning as follows:
>
> ```
> awk: cmd. line:2: warning: regexp escape sequence `\ ' is not a known regexp operator
> ```
>
> The awk version is as follows:
>
> ```
> $ awk --version
> GNU Awk 5.0.1, API: 2.0 (GNU MPFR 4.0.2, GNU MP 6.2.0)
> ```
>
> I also noticed the discussion here [2], it says the following:
>
> ```
> It's a problem of gawk,I downgrade gawk from 5.0.1 to 4.2.1 then this report of "awk : cmd..." disappeared.
> ```
>
> However, I am not sure if this is harmful. Any hints/explanations/fixings/workarounds will be highly appreciated.
>
> [1] https://www.vasp.at/
> [2] https://github.com/KittyKatt/screenFetch/issues/627#issuecomment-512685269
>
> Regards,
> HZ

You showed us everything except the command you ran to produce the
warning. It's like asking your mechanic to diagnose your car trouble
without letting them see your car. Not sure how you expect us to help
you with hints/explanations/fixings/workarounds for code we can't see.

Ed.

Re: awk: cmd. line:2: warning: regexp escape sequence `\ ' is not a known regexp operator

<sulph7$j1r7$1@news.xmission.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=4973&group=comp.unix.shell#4973

 copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gaze...@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.shell
Subject: Re: awk: cmd. line:2: warning: regexp escape sequence `\ ' is not a
known regexp operator
Date: Thu, 17 Feb 2022 15:27:35 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <sulph7$j1r7$1@news.xmission.com>
References: <4d186125-9dc1-4f38-a411-b1ed6fd96702n@googlegroups.com> <sullr0$noo$1@dont-email.me>
Injection-Date: Thu, 17 Feb 2022 15:27:35 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="624487"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Thu, 17 Feb 2022 15:27 UTC

In article <sullr0$noo$1@dont-email.me>,
Ed Morton <mortonspam@gmail.com> wrote:
....
>You showed us everything except the command you ran to produce the
>warning. It's like asking your mechanic to diagnose your car trouble
>without letting them see your car. Not sure how you expect us to help
>you with hints/explanations/fixings/workarounds for code we can't see.

Well, it is Hongy, so you try to help at your own risk. The danger of
getting irretrievably caught in quicksand is always present.

But it is far from clear to me that there is any problem here. That there
is anything to "fix". Two facts of life are:

1) Any interpreter or compiler is free to warn about anything it wants to
warn about. Obviously, earlier versions of (G)AWK did not always complain
about "superfluous" backslashes, but this is an area where GAWK has been
making improvements recently.

2) When building FOSS stuff, sometimes you just have to accept that
warnings can happen, and you have to learn to ignore them (for the most
part). Of course, when writing your own code, you should try as hard as
possible to fix all warnings, so you get "clean compiles", but with other
people's stuff, sometimes you just have to accept that we live in an
imperfect world.

Finally, if you (i.e., Hongy) really wanted/needed to "fix" this, you'd
just have to find whatever line of code is causing the warning to be
emitted and "fix" it. Whether or not this is worth the bother, is
something you'll have to decide on your own.

--
Trump - the President for the rest of us.

https://www.youtube.com/watch?v=C8jSzLAJn6k

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor