Return to Snippet

Revision: 26861
at May 13, 2010 09:15 by iloveitaly

Initial Code
normalize_path() {
	NORMALIZED_PATH=`php -r "echo realpath('$NORMALIZED_PATH');"`

Initial URL

Initial Description
the os x version of realpath works differently than the linux version; the following allows you to attain the same functionality in a shell on os x as `readlink -f $0` on a standard linux dist.

Initial Title
Relative to Absolute Path Conversion

Initial Tags
path, Bash, mac

Initial Language