Re: Feature request: rm should implement option -p, --parents
From:
Andreas Schwab
Subject:
Re: Feature request: rm should implement option -p, --parents
Date:
Tue, 07 Jul 2009 14:59:11 +0200
User-agent:
Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (gnu/linux)
Guido Flohr <address@hidden> 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, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."