Bug 437750
Summary: | gawk complains about directory args | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | JW <ohtmvyyn> |
Component: | gawk | Assignee: | Stepan Kasal <kasal> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | low | ||
Version: | 8 | CC: | dvlasenk |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-11-08 13:05:04 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
JW
2008-03-17 08:26:43 UTC
Testing latest released upstream version:
Seems like gawk 3.1.6 can be made to continue on directory errors with
--disable-directories-fatal configure switch, do we want to build it for RH that
way?
> This also happens regardless of use of --compat option...
Indeed it does in 3.1.5, but 3.1.6 seems to have that fixed.
Just tested 3.1.6 with --compat and with --traditional and it works with both -
directories are silently ignored.
Indeed, you are right. I will build gawk with --disable-directories-fatal. Note that grep does the same: silently ignores directories. answering to myself:
> Note that grep does the same: silently ignores directories.
This was a silly note. Most utilities do complain, try
sed -n p /tmp /etc/hosts
The POSIX standard implies the current behaviour. Quoting from http://www.opengroup.org/onlinepubs/009695399/utilities/awk.html#tag_04_06_15: CONSEQUENCES OF ERRORS If any file operand is specified and the named file cannot be accessed, awk shall write a diagnostic message to standard error and terminate without any further action. --end of quote-- So, on current GNU/Linux system, where it is not possible to open a directory for reading, awk has not option other then to print an error and immediately quit. |