Re:The Magic of strace
by JoshTriplett on Friday January 31, 2014 @03:43AM
(#7155906)
There's a manpage bash-builtins in section 7, but I've never seen a system that had manpages for the individual builtins, let alone having them in section 1. "man read" on every system I've used opens the read manpage in section 2.
[ Parent
| on HN ]
My local CentOS 6.2 VM has bash-builtins in section 1, which is where "man read" takes me. Same with a RHEL 6.4 machine in the colo.
This might be a distro-specific thing.
Same with OSX: "man read" opens the builtin(1) manpage. However on Debian 7.3, it opens read(2).
You can configure the priority of the sections in /etc/man.conf or similar.
Re:The Magic of strace
by justincormack on Friday January 31, 2014 @03:45AM
(#7155912)
Some syscalls share names with commands in section 1 though.
Re:The Magic of strace
by GFK_of_xmaspast on Friday January 31, 2014 @12:07PM
(#7157662)
I can't remember a unix system for at least the last decade that hasn't given me the section 1 bash "read" instead of the section 2 system "read" on a "man read".
Re:The Magic of strace
by coryfklein on Friday January 31, 2014 @12:23PM
(#7157782)
I've been on Ubuntu for several years, and I see the same as JoshTriplett. Must be platform dependent.
At least on my Mac, it opens the page for BUILTIN(1).