This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
(perl #133659) make an in-place edit successful if the exit status is zero
authorTony Cook <tony@develop-help.com>
Tue, 20 Nov 2018 23:05:27 +0000 (10:05 +1100)
committerTony Cook <tony@develop-help.com>
Mon, 26 Nov 2018 02:48:36 +0000 (13:48 +1100)
commit85d2f7cacba4b0088ae0c67cc6d4c9b7495355c0
tree50b9a7ab0f65d5e62c76ce71f58130696d3f2b93
parent640e129d0fc499d24a759cacae9240a32c66fa51
(perl #133659) make an in-place edit successful if the exit status is zero

during global destruction.

This means that code like:

  perl -i -ne '...; last'

will replace the input file with the in-place edit output of the file,
but:

  perl -i -ne '...; die'

or

  perl -i -ne '...; exit 1'

won't.
doio.c
t/io/inplace.t
t/run/switches.t