alternatively there is Rob’s purely lexical approach. prepend the current working directory and pass the complete string to cleanname(1). -Steve see in plan9://sys/src/libc/port/cleanname.c also rob’s paper: “doing dot dot right” [sorry, i cannot post real links from an iphone as it generates mime messages which are rejected by tuhs]