On Sat, Mar 14, 2015 at 10:04:58AM +0100, Ximin Luo wrote:
On 14/03/15 03:02, Mark Smith wrote:
On 3/13/15 8:48 PM, Ximin Luo wrote:
Ah, I thought realpath was a standard thing. Does "readlink -f" work instead?
No, the Mac OS / BSD readlink seems to be quite different than the Linux one. See:
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPa...
Also, some possibly useful ideas can be found here:
http://stackoverflow.com/questions/1055671/how-can-i-get-the-behavior-of-gnu...
Ah ok, instead of "$(realpath "../Data/Browser/profile.meek-http-helper")"
could you please try "$(dirname "$(pwd -P)")/Data/Browser/profile.meek-http-helper"
I tested this on Mac and it works: "$PWD/../Data/Browser/profile.meek-http-helper" This also works: "$(pwd)/../Data/Browser/profile.meek-http-helper" This also works: "$(dirname "$(pwd -P)")/Data/Browser/profile.meek-http-helper"
I think I'll go with the first one, because it's the shortest.
David