On Mon, May 22, 2006 at 12:28:04AM +0800, Cameron Patrick wrote: > On Sun, May 21, 2006 at 11:04:20AM -0500, martin f krafft wrote: > > also sprach Enrico Zini <[EMAIL PROTECTED]> [2006.05.21.0008 -0500]: > > > -rmdir --ignore-fail-on-non-empty /usr/local/share/hibernate/scriptlets.d > > > -rmdir --ignore-fail-on-non-empty /usr/local/share/hibernate > > > +rmdir /usr/local/share/hibernate/scriptlets.d || true > > > +rmdir /usr/local/share/hibernate || true > > Any reason why you remove --ignore-fail-on-non-empty ? Without it, > > there will be error messages... > I think rmdir 2>/dev/null would be a better solution in any case. I > think that's what I originally had, but then noticed that other packages > were using --ignore-fail-on-non-empty and thought there must have been a > good reason for it. *sigh*
Yeah, sorry, my mistake. I considered that switch as something to avoid failing rather than something to avoid complaining, and I removed it since the || true would avoid failing anyway. Today madduck pointed me out that that switch also causes rmdir to avoid complaining, and that is indeed a good thing. Using 2>/dev/null is usually not a good idea, in that it also hides the error messages you wouldn't expect to be hidden. Ciao, Enrico -- GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <[EMAIL PROTECTED]>
signature.asc
Description: Digital signature