Reported by Thomas Keller, Aug 30, 2010
Various scripts like svn-post-commit do not work on FreeBSD because its readlink command does not know of the -f option. An alternative to the construct would be this, which works on FreeBSD and Linux: #!/bin/sh dir=$(dirname "$0") res=$(cd "$dir" && /bin/pwd || "$dir") SCRIPTDIR="$res/$(readlink $0)"
Comment 1 by Thomas Keller, Nov 24, 2010
Comment 2 by Loïc d'Anterroches, Nov 29, 2010
Fine with me if really working on Linux. I am not at all a command line guru, so I trust you.
Comment 3 by Thomas Keller, Nov 30, 2010
Fixed in commit 28f36dc