On 28 May 2010, at 16:09, Steve Simon wrote:
almost no unix programs (other than find)
bother with mount points.
Ok, only because it was in my final year exams, I know of one more
pwd needs to understand mount points (or did in v7) so it can step
over them - no doubt ther is a getwd() system call these days,
darn'ed new fangled things.
There is a getcwd(), but in FreeBSD at least it's a library function,
not a system call. Perhaps the library has to look up mount points.
du (in at least FreeBSD, Gnu coreutils, busybox) also has an option to
not traverse mount points, making 2/5 of programs featuring directory
recursion also have an option to not traverse mount points. The others
are ls, grep, and diff.
--
Simplicity does not precede complexity, but follows it. -- Alan Perlis