bug-gawk
[Top][All Lists]
Advanced

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

[bug-gawk] Minor documentation errata


From: Manuel Collado
Subject: [bug-gawk] Minor documentation errata
Date: Thu, 30 Oct 2014 17:55:10 +0100
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Thunderbird/17.0

The gawk manual says:

-----------------
2.7 Including Other Files Into Your Program
[...]
Let’s see an example. We’ll start with two (trivial) awk scripts, namely test1 and test2. Here is the test1 script:

BEGIN {
    print "This is script test1."
}

and here is test2:

@include "test1"
BEGIN {
    print "This is script test2."
}

Running gawk with test2 produces the following result:

$ gawk -f test2
-| This is file test1.
-| This is file test2.
------------------

I think the expected output should be:

-| This is script test1.
-| This is script test2.

Right? And the same for the additional example.

Regards.
--
Manuel Collado - http://lml.ls.fi.upm.es/~mcollado




reply via email to

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