Magic filesystems are too clever
Magic filesystems are too clever
Posted Oct 30, 2009 10:15 UTC (Fri) by nix (subscriber, #2304)In reply to: Magic filesystems are too clever by quotemstr
Parent article: /proc and directory permissions
And for systems-administration stuff, well, am I the only person who's ever done a grep -R of /proc/sys/? Surely not.
Being shell-transparent is a huge huge huge feature. Don't break it.
Bringing up ps(1) as a counterargument is ridiculous: the reason ps(1) exists is both compatibility with Unix and that it can provide heaps of features that would be really annoying to implement by bashing on /proc yourself. But having /proc made ps(1) a hell of a lot easier to implement than it would have been otherwise (how else would you do it? grovelling through /dev/kmem, like traditional Unix? files in /proc with heaps of magic ioctl()s, like Solaris? Oh, please. We're moving *away* from that sort of opaque nightmare.)
(I'd actually quite like rm -r /proc/$PID to be made equivalent to kill -9, but I haven't implemented that or even tried to.)