Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!mips!daver!tscs!tct!chip From: chip@tct.uucp (Chip Salzenberg) Newsgroups: comp.lang.perl Subject: Re: Nasty perl rename bug Message-ID: <263E08CB.2677@tct.uucp> Date: 1 May 90 22:08:11 GMT References: <1952@polari.UUCP> <7930@jpl-devvax.JPL.NASA.GOV> <1990Apr30.210334.9849@iwarp.intel.com> Organization: ComDev/TCT, Sarasota, FL Lines: 16 According to merlyn@iwarp.intel.com (Randal Schwartz): >According to lwall@jpl-devvax (Larry Wall): >| I'm gonna have to break apart each name into directory and filename, >| stat the two directories to see if they're the same directory, and then >| compare the filenames. > >Naaah. Yes, he will, Randal. There's no way I'm going to put "sub safe_rename" in each and every Perl script. A Perl implementation in which "rename($from, $to)" sometimes clobbers $from is buggy. We should all be thankful (we are thankful, right?) that Larry is so quick to provide bug fixes instead of workarounds. -- Chip Salzenberg at ComDev/TCT ,