X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f Date: Tue, 16 Apr 2002 09:11:44 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Richard Dawe cc: djgpp-workers AT delorie DOT com, Jim Meyering Subject: Re: Fileutils 4.1 alpha 1 uploaded In-Reply-To: <3CBB4B5A.A84D61C7@phekda.freeserve.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 15 Apr 2002, Richard Dawe wrote: > > How does my creation of a stem.$$ temporary _directory_ (in the current > > directory) cause trouble? AFAICS (for the few tests I looked at), there > > is no risk that more than one of those little scripts will run at the > > same time, so there shouldn't be a problem on that front. > > Some of the tests do not delete the directories the create. That rings a bell: DOS and some versions of Windows won't let you delete the directory that's the current directory on some drive, even if you do that from another drive. The trick to overcome that is to chdir to the root directory on that drive before removing the temporary directory. I'm not sure this problem is relevant to the case in point, since I understood from Jim's message that the test suite creates the temporary directories where you run the suite, not under $TMPDIR (which can typically be on a different drive). But I thought I'd mention this caveat anyway, in case some of the tests do use $TMPDIR. Normally, the "trap ... rm ..." parts of many scripts are vulnerable to this problem.