This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Test line breaks in PERL5DB
authorFather Chrysostomos <sprout@cpan.org>
Tue, 27 Aug 2013 20:20:39 +0000 (13:20 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 8 Sep 2013 21:39:02 +0000 (14:39 -0700)
commitfdc18556701202efb38dee6dab4d8aff8b7d00eb
tree9b6926136813b56e2c0b99a2be0775b9e04e0872
parentff7fc5bb29de5df90a384cc2c4aa03447cbc9510
Test line breaks in PERL5DB

$ PERL5DB='sub DB::DB{} die' perl5.18.1 -dle 'print "ok"'
Died.
$ PERL5DB='sub DB::DB{}
die' perl5.18.1 -dle 'print "ok"'
ok

So everything after the line break is ignored.

In bleadperl:

$ PERL5DB='sub DB::DB{} die' ./perl -dle 'print "ok"'
Died.
$ PERL5DB='sub DB::DB{}
die' ./perl -dle 'print "ok"'
Died at -e line 1.

Now the whole environment variable is used.  This was probably changed
by commit 2179133.

Let’s call it a bug fix and test it.

(The ‘at -e line 1’ is not right, but the next commit will fix it.)
t/run/switchd.t