From owner-freebsd-bugs Fri Jun 12 22:31:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA02897 for freebsd-bugs-outgoing; Fri, 12 Jun 1998 22:31:04 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.15.68.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA02888; Fri, 12 Jun 1998 22:30:59 -0700 (PDT) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id PAA14214; Sat, 13 Jun 1998 15:30:58 +1000 Date: Sat, 13 Jun 1998 15:30:58 +1000 From: Bruce Evans Message-Id: <199806130530.PAA14214@godzilla.zeta.org.au> To: phk@critter.freebsd.dk, rivers@dignus.com Subject: Re: bin/6653 Cc: asami@FreeBSD.ORG, danny@panda.hilink.com.au, freebsd-bugs@FreeBSD.ORG, zach@gaffaneys.com Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >>Umm.... if the goal is to remove _everything_ from /var/run; >>what's wrong with: >> >> cd /var/run >> rm -r -f * > >It may fail if there is too many files for the * to expand. Is that why the -current /etc/rc uses `rm -rf /var/run/*', which fails slightly earlier if there are lots of files? :-) Other wrong things: - `rm -rf *' may fail if there are filenames beginning with "-". - `rm -rf *' and `rm -rf /var/run/*' both fail if there are filenames beginning with ".". This may be a feature. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message