*BSD News Article 47846


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!swidir.switch.ch!newsfeed.ACO.net!Austria.EU.net!EU.net!news.sprintlink.net!cs.utexas.edu!utnut!torn!news.bc.net!unixg.ubc.ca!rover.ucs.ualberta.ca!news.ucalgary.ca!news
From: gord@enci.ucalgary.ca (Gord Matzigkeit)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: "foo is a directory" error
Date: 25 Jul 1995 13:00:15 -0600
Organization: Civil Engineering, University of Calgary
Lines: 38
Message-ID: <npu48aada8.fsf@enci.ucalgary.ca>
NNTP-Posting-Host: @casual1.enci.ucalgary.ca
X-Newsreader: (ding) Gnus v0.97.2

-----BEGIN PGP SIGNED MESSAGE-----

Hi!

I have one minor nit with FreeBSD-2.0.5-950622-SNAP:

bartok% mkdir hello; touch hello/foo ; /bin/rm -rf hello
bartok% mkdir hello; touch hello/foo ; /bin/rm -rf hello/
rm: hello/: Is a directory
bartok%

(and hello is left behind, though foo has been properly removed)

This is bad.  It breaks many GNU programs, such as bash's filename
completion, strip, and any others who like to say "hello/".

I am sure that it is a C library bug, since it appears in many
programs that I've tested.

Do any of the developers have comments or workarounds for this?

- - --Gordon

- - -- 
Gordon Matzigkeit     | Frosted Lucky Charms: mathematically fallacious
gord@enci.ucalgary.ca |  PGP mail preferred... finger me for my key.
Keyprint: D5 66 08 E0 4D F4 D7 7B 8A C8 8A 9C 7F 39 25 A7 - ID 339ABEB9

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: Processed by Mailcrypt 3.2, an Emacs/PGP interface

iQCVAwUBMBU/NiFsfCEzmr65AQFSTAP+NGw8p8mH8S1u1qqoVlBgjixOYMDyrD+f
NZhDO3/pl/IlwV8RCR59Q5hi2xNz9+iMGSSjnC9NpDqfsk06pIlxCMvSmIoVvvPI
onYNC7f/um0knsLMUwXka0quTc4ACIuQsVQt9OM5euWDzWRtUvJsCOLgyJ1U0o9P
dr9VOu1KiG0=
=LWEx
-----END PGP SIGNATURE-----