NetBSD-Bugs archive

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

Re: bin/56743: Cannot create more than 1022 files from an AWK program



The following reply was made to PR bin/56743; it has been noted by GNATS.

From: Silas <silas_nbgt22%silas.net.br@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost,
	silas_nbgt22%silas.net.br@localhost
Subject: Re: bin/56743: Cannot create more than 1022 files from an AWK program
Date: Wed, 9 Mar 2022 17:39:08 -0300

 On Wed, Mar 09, 2022 at 06:30:02PM +0000, Michael van Elst wrote:
 >  The awk '>' operator works differently than a shell redirect. It opens
 >  the file and keeps it open, more output to the same file will just
 >  use the open descriptor. You need to use the close() statement to
 >  close the descriptor.
 
 Thanks for the answer! Indeed, it works with close(). For the record: GNU awk
 seems to be able to create all 2000 files without having to call close(). Thanks
 again.
 



Home | Main Index | Thread Index | Old Index