It's funny, as soon as I saw the GMail preview "Dear bradgrafelman, NogDog has just replied to a thread you have subscribed to entitled - read current file name" text pop up in the corner of my screen, I instantly thought "Dang, I bet he suggested using [man]pathinfo/man" (yes, my internal thoughts/exclamations come complete with clickable manual links). :p