[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash ending slash breaks stuff

From: Niels Möller
Subject: Re: bash ending slash breaks stuff
Date: 01 Nov 2002 12:12:46 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Robert Millan <zeratul2@wanadoo.es> writes:

> # rm -r foo<tab>
> # rm -r foobar/
> # rm: cannot remove `foobar/': Invalid argument
> in what way is this problem suposed to be fixed? will
> trailing slashes be supported by the Hurd eventualy?

IIRC correctly, POSIX requires that "foobar" and "foobar/" are treated
equivalently here. There have been similar hurd bugs earlier. So it
should be fixed.

It's kind of natural to simply treat "foobar/" as just a different
name for "foobar/.", and that will make the right thing happen in most
cases. But not for rm/unlink. The reason that unlink is special is
that it operates on the name itself, not on the inode that the name
refers to.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]