From eb6938d742d51b5f6637da8e706cc6dd080be058 Mon Sep 17 00:00:00 2001 From: Philipp Takacs Date: Fri, 17 Feb 2017 16:05:57 +0100 Subject: [PATCH] quote path variables in whatnow2.sh without qoutes this causes error with spaces or other special charecter in the path or filename. --- uip/whatnow2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uip/whatnow2.sh b/uip/whatnow2.sh index 2040725..59e91b7 100755 --- a/uip/whatnow2.sh +++ b/uip/whatnow2.sh @@ -73,9 +73,9 @@ get_realpath() { reldir=`dirname "$1"` filename=`basename "$1"` - cd $reldir + cd "$reldir" echo "$PWD/$filename" - cd $OLDPWD + cd "$OLDPWD" } set_lasteditor() -- 1.7.10.4