summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2016-05-19 15:22:32 +1000
committerTony Cook <tony@develop-help.com>2017-09-11 10:59:43 +1000
commit67ba8be6f9246c5a224a6f514360d48b605c44f5 (patch)
tree4994637feaf03f8cddd29c1fb78ac409348399df /perl.c
parente0d4aead3c87ba953fb1d70678a77a45e0c9f111 (diff)
downloadperl-67ba8be6f9246c5a224a6f514360d48b605c44f5.tar.gz
(perl #127663) all platforms no longer require a backup file
Platforms that disallow deleting an open file, like Win32, Cygwin, previously required a backup extension (defaulted for Cygwin), but since we now write to a work file that's no longer necessary (but might still be desirable.)
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/perl.c b/perl.c
index 8046013992..7db5f158d5 100644
--- a/perl.c
+++ b/perl.c
@@ -3378,12 +3378,6 @@ Perl_moreswitches(pTHX_ const char *s)
case 'i':
Safefree(PL_inplace);
-#if defined(__CYGWIN__) /* do backup extension automagically */
- if (*(s+1) == '\0') {
- PL_inplace = savepvs(".bak");
- return s+1;
- }
-#endif /* __CYGWIN__ */
{
const char * const start = ++s;
while (*s && !isSPACE(*s))