delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/10/29/06:03:27

Date: Tue, 29 Oct 2002 12:54:35 +0200
From: Laurynas Biveinis <lauras AT softhome DOT net>
X-Mailer: The Bat! (v1.61) Personal
X-Priority: 3 (Normal)
Message-ID: <9789363978.20021029125435@softhome.net>
To: "Andrew Cottrell" <acottrel AT ihug DOT com DOT au>
CC: "DJGPP Workers" <djgpp-workers AT delorie DOT com>
Subject: Re: Findutils 4.1.7 port bugs & fix
In-Reply-To: <007e01c27f19$ad3aff70$0100a8c0@p4>
References: <8942416321 DOT 20021028235207 AT softhome DOT net>
<007e01c27f19$ad3aff70$0100a8c0 AT p4>
MIME-Version: 1.0
X-OriginalArrivalTime: 29 Oct 2002 10:51:47.0837 (UTC) FILETIME=[2DD19AD0:01C27F39]
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

>> $ touch Done
>> $ find . -name '[Dd][Oo][Nn][Ee]' -exec rm -f '{}' ';'

> Tried this on an ancient Win98 PC and got the following:-
> 1) cannot touch a directory get permission denied (EACCESS) error
> 2) I get an error from rm as follows (re-typed)
>     rm: invalid operation -- .
> 3) $ find . -name '[Dd][Oo][Nn][Ee]'
>     returned "./done" which looked okay.

> On XP with SP1 I get the following results:
> a) Under bash:
>     bash-2.05b$ find . -name '[Dd][Oo][Nn][Ee]' -exec rm -f '{}' ';'
>     rm: `./done' is a directory
> b) Under command.com or cmd.exe
>     DJGPP_204 C:\dj204\bin>find . -name '[Dd][Oo][Nn][Ee]' -exec rm -f '{}'
> ';'
>     rm: `./done' is a directory

What about `Done' being a file, not a directory?

Thanks for testing,
Laurynas


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019