Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Mar 2004 19:41:50 +0100
From:      Michael Nottebrock <michaelnottebrock@gmx.net>
To:        stable@freebsd.org
Cc:        Gregory Bond <gnb@itga.com.au>
Subject:   Re: unexpected softupdate inconsistency
Message-ID:  <200403141941.50846.michaelnottebrock@gmx.net>
In-Reply-To: <20040311003115.GL10121@gsmx07.alcatel.com.au>
References:  <200403110014.LAA17110@lightning.itga.com.au> <20040311003115.GL10121@gsmx07.alcatel.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help

--Boundary-02=_udKVApMj8IuaHbV
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Thursday 11 March 2004 01:31, Peter Jeremy wrote:
> On 2004-Mar-11 11:14:01 +1100, Gregory Bond <gnb@itga.com.au> wrote:
> >The key phrase here is "What does vim do here _that rm doesn't_?"
> >
> >If vim is also just using unlink() then rm can (theoretically) do the job
> > just as well.  It seems like really odd advice to say "use vim because =
rm
> > can't do the job."  If this were in any way true, then I'd call that a
> > serious bug in rm.
>
> If the filename to delete includes non-printing or magic-to-the-shell
> characters (and especially ones with the top bit set), it can be
> difficult to specify the filename as a command-line argument to rm(1).
> In these cases, directory-editing modes in editors (or a scripting
> language like perl) can be very helpful.
>
> This isn't a bug in rm(1) and is not necessarily a bug in the shell.
> It is fairly common when [l]users use GUI tools to create files or
> use sockaddr_in addresses on AF_UNIX sockets - which I've seen done.

However, I can confirm from experience that rm (-f) won't remove a file tha=
t's=20
affected by a filesystem error like the one described in this thread. You'l=
l=20
just get back "<filename>: bad file descriptor" and that's it. The last tim=
e=20
this happened to me, the affected file was a directory called "tmp" - hardl=
y=20
any weird characters in that one.

=2D-=20
   ,_,   | Michael Nottebrock               | lofi@freebsd.org
 (/^ ^\) | FreeBSD - The Power to Serve     | http://www.freebsd.org
   \u/   | K Desktop Environment on FreeBSD | http://freebsd.kde.org

--Boundary-02=_udKVApMj8IuaHbV
Content-Type: application/pgp-signature
Content-Description: signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQBAVKduXhc68WspdLARAh1AAJ47NxFYqYxlEaVJn48MEEnmSbui1wCfWhht
JcAp1WHrevjSu21OaDNiA5Q=
=ggur
-----END PGP SIGNATURE-----

--Boundary-02=_udKVApMj8IuaHbV--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403141941.50846.michaelnottebrock>