Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jun 1998 15:30:58 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        phk@critter.freebsd.dk, rivers@dignus.com
Cc:        asami@FreeBSD.ORG, danny@panda.hilink.com.au, freebsd-bugs@FreeBSD.ORG, zach@gaffaneys.com
Subject:   Re: bin/6653
Message-ID:  <199806130530.PAA14214@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>>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



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