www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/09/06:37:44

Date: Wed, 9 Apr 1997 13:10:42 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: David McKee <david DOT mckee AT rtp DOT gtegsc DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Gawk doesn't like close...
In-Reply-To: <334A38EA.5760@rtp.gtegsc.com>
Message-ID: <Pine.SUN.3.91.970409130940.3639B-100000@is>
MIME-Version: 1.0

On Tue, 8 Apr 1997, David McKee wrote:

>    close bpFile 	#--/ Close Boiler Plate !!! HERE IS WHERE GAWK DIES.

Please in future always describe what exactly does Gawk (or any other
program) print; ``GAWK DIES'' is very emotionally-charged, but its
information content is exceedingly low.

The problem is that the correct way to close a file is this:

	close(bpFile)

Without parentheses, Gawk complains about ``parse error'', at least on
my machine.  I don't know how does Nawk digest the form without the
parens, but I do know that Gawk is very POSIX-compliant, so I think
Nawk will probably also accept the parenthesized form.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019