tech-userlevel archive

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

Re: rmdir -p



In article <20080520.005252.230892081.taca%back-street.net@localhost>,
Takahiro Kambe  <taca%back-street.net@localhost> wrote:
>In message <20080519114109.8bb171ce.darcy%NetBSD.org@localhost>
>       on Mon, 19 May 2008 11:41:09 -0400,
>       "D'Arcy J.M. Cain" <darcy%NetBSD.org@localhost> wrote:
>> > > It seems to me that "rmdir
>> > > -p" should silently ignore directories that it cannot remove.
>> > 
>> > Utilities should not silently ignore domain errors of their
>> > arguments. rmdir(1) is quite clear on operating on empty
>> > directories only (or otherwise empty components, for -p).
>> 
>> But is it an error?  If the intention is to remove a directory and any
>> otherwise empty parents and that's what it does, why throw an error?
>For ignoring such a error, it reminds me that -f option of rm(1).

According to opengroup there used to be a -s flag for silent on USG, but
since there is no mention of the diagnostic messages in the man page, they
removed it.

christos



Home | Main Index | Thread Index | Old Index