According to the POSIX standard, files named on the
command line must be text files; it is a fatal error if they are not.
Most versions of
awk treat a directory on the command line as
a fatal error.
gawk produces a warning for a directory on the
command line, but otherwise ignores it. This makes it easier to use
shell wildcards with your
$ gawk -f whizprog.awk * Directories could kill this program
If either of the --posix
or --traditional options is given, then
to treating a directory on the command line as a fatal error.
See Extension Sample Readdir, for a way to treat directories
as usable data from an