Guido Flohr <gu...@imperia.bg> writes:

> Or even simpler because "rmdir -p" never has a zero exit-status.

That's not true.  rmdir -p only traverses as far as the argument allows,
thus if it is a relative filename it won't try to traverse further up
than the current directory (in absense of "..").  In other words, if
"mkdir -p $f" did created all levels, "rmdir -p $f" afterwards will
likely remove them all without any error.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to