This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: truncate with file name does not work (with patch)
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>
Wed, 28 Aug 1996 02:51:28 +0000 (02:51 +0000)
committerAndy Dougherty <doughera@lafcol.lafayette.edu>
Wed, 28 Aug 1996 02:51:28 +0000 (02:51 +0000)
commitf783569bc3d9005f69b42948872f9ac61fdd46fb
tree826cea6add4746b886182d17f75b292278eeecea
parent4561caa41d8258ddc0ef28aa349d5a8a2b7a0543
Re: truncate with file name does not work (with patch)

The prototype for truncate was changed so that perl won't die
with C<use strict;> when the first arg is a bareword (filehandle).
I think it was Tom (as in "tchrist") who brought this up.

Here's a patch that undoes the damage, makes it work with
C<use strict;>, and adds to the testsuite.

The "not implemented" branch is missing a "\n".
t/io/fs.t