2011/9/10 Jim Meyering <jim(a)meyering.net>:
Thanks for the example, but I don't see how that option name is
misleading. A "file system" is the thing you create with "mkfs".
Even though normally there is only one mount point per file system,
the fact that with bind mounts there can be many doesn't change
the name of the thing occupying the underlying device: a file system.
I think you want a new option, say --no-traverse-mount-points.
The term "file system" can of course have different meaning to
different people - you could also argue it means "file system type",
with unexpected results for the interpretation of "--one-file-system".
Anyway, that is nitpicking on my side; obviously it was clear what I
meant: An option to make rm walk the tree, ignoring (=not following)
mount points. Thanks for opening the ticket.
As a side note: I am not sure whether that also means it should remove
stuff normally hidden by such a mountpoint?
As long as such a "--no-traverse-mount-points" option is not available
yet for rm, I am still looking for suggestions on how to achieve the
same effect in a shell script.
--
Thomas Moschny <thomas.moschny(a)gmail.com>