[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Hermann Peifer
Subject: Re: WHINY_USERS=0
Date: Mon, 26 Oct 2009 11:47:23 +0100
User-agent: Thunderbird (Windows/20090812)

John Cowan wrote:
Aharon Robbins scripsit:

The feature as coded means "if WHINY_USERS exists in the environment,
enable the whiny user related features." (There are at least two.)

Three, but I concede that I can't figure out how to trigger the third
use of the feature, which appears to print a warning that a file is
unopenable just before printing a fatal error that it's unopenable.

Trying to open a directory w/o WHINY_USERS, with gawk 3.1.7 -> fatal error

$ gawk '1' somedir/ somefile
gawk: cmd. line:1: fatal: cannot open file `somedir/' for reading (Success)

With WHINY_USERS, there is only a warning and processing continues (somefile has only 1 record: Hello World)

$ WHINY_USERS=1 gawk '1' somedir/ somefile
gawk: cmd. line:1: warning: cannot open file `somedir/' for reading (Success)
Hello World

Hope this helps, Hermann

reply via email to

[Prev in Thread] Current Thread [Next in Thread]