[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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."
- Feature request: rm should implement option -p, --parents, Guido Flohr, 2009/07/06
- Re: Feature request: rm should implement option -p, --parents, Pádraig Brady, 2009/07/06
- Re: Feature request: rm should implement option -p, --parents, Pádraig Brady, 2009/07/07
- Re: Feature request: rm should implement option -p, --parents, Guido Flohr, 2009/07/07
- Re: Feature request: rm should implement option -p, --parents, Jim Meyering, 2009/07/07
- Re: Feature request: rm should implement option -p, --parents, Ralf Wildenhues, 2009/07/07
- Re: Feature request: rm should implement option -p, --parents, Kamil Dudka, 2009/07/07