GNU bug report logs - #21051
direct/file deletion

Previous Next

Package: coreutils;

Reported by: Lee Sung <lsung <at> juniper.net>

Date: Mon, 13 Jul 2015 21:44:02 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: Eric Blake <eblake <at> redhat.com>, Ruediger Meier <sweet_f_a <at> gmx.de>,  21051 <at> debbugs.gnu.org
Cc: bob <at> proulx.com, lsung <at> juniper.net
Subject: bug#21051: direct/file deletion
Date: Thu, 16 Jul 2015 17:06:32 +0200
On 07/16/2015 04:49 PM, Eric Blake wrote:
> On 07/16/2015 07:20 AM, Ruediger Meier wrote:
>> IMO all workarounds to cleanup "." (inclusive dot-files) are just
>> annoying.
>
> These work (but I agree that they are much longer to type)
>
> rm -rf -- * .??* .[!.]
> (except that has problems with command line length)
>
> find . \! -name . | xargs rm -rf

GNU find does it, too:

  $ find . -mindepth 1 -delete

Have a nice day,
Berny




This bug report was last modified 6 years and 218 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.