develooper Front page | perl.perl5.porters | Postings from June 2015

[perl #125305] kill off the deprecated chdir("") behavior

From:
Tony Cook via RT
Date:
June 29, 2015 01:05
Subject:
[perl #125305] kill off the deprecated chdir("") behavior
Message ID:
rt-4.0.18-27664-1435539939-1072.125305-15-0@perl.org
On Thu Jun 25 00:39:38 2015, davem wrote:
> On Thu, Jun 25, 2015 at 01:59:31PM +1000, Tony Cook wrote:
> > It should fail and warn in the same way as chdir to any other closed
> > handle:
> >
> > $ ./perl -we 'opendir my $dh, "t"; closedir $dh; chdir $dh; print "no
> > croak\n"'
> > chdir() on unopened filehandle $dh at -e line 1.
> > no croak
> 
> ah yes. Agreed. Patch looks good to me.

Applied as 60121127fb9d33a8ca4ab1e213b635fe63c8fa8c.

Tony


---
via perlbug:  queue: perl5 status: pending release
https://rt.perl.org/Ticket/Display.html?id=125305



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About