realpath for OS X
a.k.a. "the only useful C program I ever wrote"
A minimal implementation of
realpath(1) which is included in most UNIX
distributions, but not Mac OS X.
$ git clone https://github.com/harto/realpath-osx.git $ cd realpath-osx $ make $ sudo make install
If you want a "real" implementation of this command, the GNU version is
available via the
coreutils Homebrew formula:
brew install coreutils