New Code!
When I reinvented the pstree wheel yesterday it didn't work on MacOS 10. Since I'm using MacOS for half of my coding these days, this would not do.
So I fixed it:
orc@poison(ps-etc)> ./pstree launchd-+-ATSServer |-2*[automount] |-bfobserver |-configd---blued |-coreaudiod |-coreservicesd |-crashreporterd |-cupsd |-DirectoryService |-diskarbitrationd |-distnoted |-dynamic_pager |-ioxdeviced |-KernelEventAgent |-kextd |-loginwindow---pbs |-lookupd |-2*[mdimport] |-mDNSResponder |-mds |-memberd |-netinfod |-nfsiod |-notifyd |-ntpd |-rpc.lockd |-securityd |-syslogd |-update `-WindowServer-+-AppleSpell |-Dock---4*[DashboardClient] |-Finder |-firefox-bin |-ioxdeviced |-ioxsessiond |-Mail |-Preview |-QuickTime Player |-Safari |-SystemUIServer |-Terminal-+-2*[login---ksh---ssh] | `-login---ksh---pstree |-TextEdit `-UniversalAccess
pstree 0.2 doesn't add much to what 0.1 had (and if you're on a macos 10 box it takes away the -a option because by the time I got to the point of starting to figure out what KERN_PROGARGS and/or KERN_PROCARGS2 returned (they don't return what the (erroneously documented) KERN_PROC_ARGS is claimed to) I realized that it was almost 2am and it was well past my expiration date.
Aside from MacOS 10 support (now it's superportable™; it builds on Mastodon, FreeBSD 4.4, FreeBSD 4.8, and MacOS 10.0.4 [I fully expect that MacOS 10.0.6 will not support sysctl().]) I did some tweaking to the display format for collapsed groups, but I've started to set up to do subtree sorting so I can better collapse groups on a busy system. But the MacOS support is the big feature that justifies upping the release to 0.2.
It's new, it's code, it's running on 4 boxes now, so what are you waiting for?