[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mv trailing slash warning
From: |
Jim Meyering |
Subject: |
Re: mv trailing slash warning |
Date: |
Wed, 28 Sep 2005 23:08:16 +0200 |
address@hidden (Eric Blake) wrote:
...
> On a related note, why don't rm and rmdir have a --strip-trailing-slashes
> option?
Because as far as I know, there is no need.
Do you know of a system where `rmdir symlink/'
removes only the referent of the symlink?
...
> Oops - cygwin has a bug in this regards:
> $ mkdir dir
> $ rmdir dir/.
> $ echo $?
> 0
> $ ls dir
> ls: dir: No such file or directory
>
> Is it worth patching coreutils rm and rmdir to work around buggy
> systems that don't follow this POSIX restriction on rmdir()? (Meanwhile,
> I will try to get cygwin fixed.) Should we update the coreutils testsuite?
It depends a whole lot on how invasive or complicated the patch is.
Ideally, it wouldn't change anything in src/*.c at all.
- Re: mv trailing slash warning, (continued)
- Re: mv trailing slash warning, Jim Meyering, 2005/09/25
- Re: mv trailing slash warning, Dr. David Alan Gilbert, 2005/09/26
- Re: mv trailing slash warning, Eric Blake, 2005/09/27
- Re: mv trailing slash warning, Jim Meyering, 2005/09/28
- Re: mv trailing slash warning, Paul Eggert, 2005/09/28
- Re: mv trailing slash warning, Jim Meyering, 2005/09/28
- Re: mv trailing slash warning, Paul Eggert, 2005/09/28
Re: mv trailing slash warning, Eric Blake, 2005/09/28
Re: mv trailing slash warning, Eric Blake, 2005/09/28
Re: mv trailing slash warning, Eric Blake, 2005/09/28
Re: mv trailing slash warning, Eric Blake, 2005/09/28