GNU bug report logs -
#21051
direct/file deletion
Previous Next
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
Message #8 received at 21051 <at> debbugs.gnu.org (full text, mbox):
tag 21051 notabug
close 21051
stop
On 07/13/2015 10:04 PM, Lee Sung wrote:
> I cannot delete dir/file from my home directory.
> [lsung <at> hw-lnx-shell3 ~/fpc_i2cs_cpld]$
>
> [lsung <at> hw-lnx-shell3 ~/fpc_i2cs_cpld]$ ls -al
> total 28
> drwxr-xr-x 3 lsung ipg 4096 Jul 13 11:23 .
> drwxr-xr-x 26 lsung qa-others 20480 Jul 13 11:40 ..
> drwxr-xr-x 2 lsung ipg 4096 Jul 13 11:23 rtl
>
> I want to delete dir fpc_i2cs_cpld, but I cannot.
>
> How would I delete directory “.” and “..”
Thanks for the bug report.
You did not show us how you tried to delete that directory,
and what error message (or other effect) you got.
The entries "." and ".." are implicit and stand for the
current and parent directories respectively on UNIX-oide
file systems. You'd never want to delete them directly
by these names - and the rm(1) utility of GNU coreutils
actually refuses to delete them:
$ rm -r .
rm: refusing to remove '.' or '..' directory: skipping '.'
However, you could remove it by it's absolute file name:
$ rm -r "$HOME/fpc_i2cs_cpld"
Anyway, as this is unlikely a bug in the GNU coreutils, I'm
closing this as "not a bug" in our bug tracker.
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.