'dirname' represents a component of a path, not a path. I suspect the internal field components should be renamed, though, as people do not generally think in terms of the implementation of the shell's 'dirname', but instead of its effective behavior. (The implementation splits a path into its components, but being a Unixy utility it doesn't consider splitting the volume off like it does the basename and extension.)
-- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net