[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#12339: [PATCH] rm: avoid bogus diagnostic for a slash-decorated syml
From: |
Paul Eggert |
Subject: |
bug#12339: [PATCH] rm: avoid bogus diagnostic for a slash-decorated symlink-to-dir |
Date: |
Tue, 04 Sep 2012 17:49:18 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0 |
On 09/04/2012 04:21 PM, Linda A. Walsh wrote:> Paul Eggert wrote:
> expecting it to do nothing useful other than issue an error?
Sure. People might expect the utility to complain about
what they consider to be obvious typos, rather than to
remove files they don't expect to be removed. For example:
rm -fr .*
safely removes all file names beginning with "." in the
working directory, without inadvertently removing file names
that do not begin with ".", or files in the parent
directory. I can see people being used to this sort of
thing, and being annoyed greatly if we change it.
> Ok, will foo/ remove the contents only and not the directory?
No, "rm -fr foo/" removes the directory too.
> It seems so fragile -- because some utils require the /. to make
> sure you don't ALSO remove the directory.
Which utilities are those? The standard POSIX style is that
foo/ names the directory.
> However, adding foo/ -- does that imply that ./ will also work?
No, "./" is treated as ".". Sorry.
bug#12339: [PATCH] rm: avoid bogus diagnostic for a slash-decorated symlink-to-dir, Linda A. Walsh, 2012/09/04
- bug#12339: [PATCH] rm: avoid bogus diagnostic for a slash-decorated symlink-to-dir, Eric Blake, 2012/09/04
- bug#12339: [PATCH] rm: avoid bogus diagnostic for a slash-decorated symlink-to-dir, Paul Eggert, 2012/09/04
- bug#12339: [PATCH] rm: avoid bogus diagnostic for a slash-decorated symlink-to-dir, Linda A. Walsh, 2012/09/04
- bug#12339: [PATCH] rm: avoid bogus diagnostic for a slash-decorated symlink-to-dir,
Paul Eggert <=
- bug#12339: [PATCH] rm: avoid bogus diagnostic for a slash-decorated symlink-to-dir, Linda A. Walsh, 2012/09/04
- bug#12339: [PATCH] rm: avoid bogus diagnostic for a slash-decorated symlink-to-dir, Paul Eggert, 2012/09/05
- bug#12339: [PATCH] rm: avoid bogus diagnostic for a slash-decorated symlink-to-dir, Bernhard Voelker, 2012/09/05
- bug#12339: [PATCH] rm: avoid bogus diagnostic for a slash-decorated symlink-to-dir, Linda A. Walsh, 2012/09/05
- bug#12339: [PATCH] rm: avoid bogus diagnostic for a slash-decorated symlink-to-dir, Paul Eggert, 2012/09/05
- bug#12339: [PATCH] rm: avoid bogus diagnostic for a slash-decorated symlink-to-dir, Linda A. Walsh, 2012/09/05
- bug#12339: [PATCH] rm: avoid bogus diagnostic for a slash-decorated symlink-to-dir, Paul Eggert, 2012/09/05
- bug#12339: [PATCH] rm: avoid bogus diagnostic for a slash-decorated symlink-to-dir, Linda Walsh, 2012/09/05
bug#12339: Bug: rm -fr . doesn't dir depth first deletion yet it is documented to do so., Bernhard Voelker, 2012/09/06