From: Philipp Takacs Date: Fri, 17 Feb 2017 15:05:57 +0000 (+0100) Subject: quote path variables in whatnow2.sh X-Git-Tag: mmh-0.4~47 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=eb6938d742d51b5f6637da8e706cc6dd080be058;p=mmh quote path variables in whatnow2.sh without qoutes this causes error with spaces or other special charecter in the path or filename. --- 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()