Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!olivea!orc!inews!jsweedle@mipos2.intel.com From: jsweedle@mipos2.intel.com (Jonathan Sweedler) Newsgroups: comp.lang.perl Subject: Bug in perl -pi (REPOST) Message-ID: <2162@inews.intel.com> Date: 29 Jan 91 02:12:50 GMT Sender: news@inews.intel.com Reply-To: jsweedle@mipos2.intel.com (Jonathan Sweedler) Organization: Intel Corp. Lines: 9 I used "perl -pi" to edit a file in place. I had write permission for the file that I was working on but I did not have write permission for the directory in which it sat. The end result was that perl erased the file (changed it to length of 0) without giving any warning or error messages. =============================================================================== |Jonathan Sweedler Microprocessor Design Intel Corp.| | {decwrl,hplabs,oliveb}!intelca!mipos3!mipos2!jsweedle | | jsweedle%mipos2.intel.com@relay.cs.net |