From c9e0d7735fbf0ca71c003ec6480960a664f1db06 Mon Sep 17 00:00:00 2001 From: Tim Allen Date: Sat, 28 May 2016 18:01:17 +1000 Subject: [vis-open] Don't use realpath(1). Despite how useful realpath is, apparently it's not POSIX and isn't part of the BSD userland. --- vis-open | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vis-open b/vis-open index b6bf664..997aa49 100755 --- a/vis-open +++ b/vis-open @@ -50,7 +50,8 @@ if [ $# -eq 1 -a "$ALLOW_AUTO_SELECT" = 1 ]; then else # We've found a single item, and it's not a directory, # so it must be a filename (or file-like thing) to open. - echo $(realpath "$1") + cd "$(dirname "$1")" + echo "$(pwd -P)"/"$(basename "$1")" exit 0 fi fi -- cgit v1.2.3