basho/rebar — pull request #368 by olgeni (2013-06-09 13:43:21+00:00)
Title: Use "pwd -P" to get the current physical path.

It is a portable version of the realpath(1) utility that you can find on Mac OS X and FreeBSD (see also The Open Group Base Specifications Issue 6, IEEE Std 1003.1).

Without the -P flag, pwd(1) might return different values when the current path contains one or more symlinks, depending on how you got into the current directory.

For instance:

[olgeni@olgeni ~]% pwd
/home/olgeni

vs.

[olgeni@olgeni ~]% pwd -P
/usr/home/olgeni

In simplenode.runner, this may cause PIPE_DIR to have different values on each use, which will make it impossible to connect to the running node unless you guess the correct path yourself.

===> Of course this needs a posix-compliant pwd(1) to work <===