Bug 109024 - gawk not issuing warnings
gawk not issuing warnings
Status: CLOSED RAWHIDE
Product: Red Hat Raw Hide
Classification: Retired
Component: gawk (Show other bugs)
1.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Florian La Roche
Brock Organ
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-11-04 10:12 EST by Stepan Kasal
Modified: 2007-04-18 12:59 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-12-09 09:00:50 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Stepan Kasal 2003-11-04 10:12:29 EST
What lead you to have gawk-3.1.0-shutup.patch?
I beleive these warnings are useful and often indicate that gawk is doing something else then what the programmer has intended.
They are issued only in cases which are described as
``giving undefined results'' in POSIX.
Comment 1 Florian La Roche 2003-11-04 18:37:23 EST
This should probably honor some POSIXLY_CORRECT environment variable or
another option to enable warnings again instead of unconditionally
disabling this warning. I want to keep the default to not give a warning.

Florian La Roche
Comment 2 Stepan Kasal 2003-11-05 08:05:37 EST
I don't care too much about the POSIXLY_CORRECT case.
I think it's useful in the default case.
It can help to discover a typo, like this:
$ gawk 'BEGIN{file="C:\win";print"\space"}'
gawk: cmd. line:1: warning: escape sequence `\w' treated as plain `w'
gawk: cmd. line:1: warning: escape sequence `\s' treated as plain `s'
space
Comment 3 Florian La Roche 2003-12-09 09:00:50 EST
Ok, enabled warnings again. Will shut them off again if too many
complains and too old code is still showing up.

greetings,

Florian La Roche
Comment 4 Stepan Kasal 2003-12-16 06:56:03 EST
Thank you very much.
Stepan Kasal

Note You need to log in before you can comment on or make changes to this bug.