another test yields a result I do not agree with:
% ./a.out /foo/grabba/yabba/.cshrc
path =
ext =
base = <>
file = <.cshrc>I would argue that the base name is '.cshrc' and there is no extension.
Anyone have any different views?
米欄→
shouldn't you canonicalize? consider /foo//bar /foo/ /foo/. etc.