Nope, I was wrong, you need double quotes. But, with this, I'm definitely done: #!/bin/bash -- EXEC_DIR=$(builtin cd -P -- "${0%/*}" && builtin pwd) echo "$EXEC_DIR" -- Mike Hicks <hick0088 at tc.umn.edu> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20080228/1f81533f/attachment.pgp