Jim Meyering wrote: > It looks like somehow perl is being run with -pi.bak.
Yes, apparently this is the cause. The .bak suffix appears to be the default. I have not specified it through environment variables. $ ls -l foo3* -rw-r--r-- 1 bruno Kein 73 Nov 25 21:46 foo3.c $ perl -pi -e s/x/x/ foo3.c $ ls -l foo3* -rw-r--r-- 1 bruno Kein 73 Nov 25 21:46 foo3.c -rw-r--r-- 1 bruno Kein 73 Nov 25 21:46 foo3.c.bak Seen on Cygwin 1.5.25 and 1.7.9. Bruno -- In memoriam Valentín Elizalde <http://en.wikipedia.org/wiki/Valentín_Elizalde>