From: Richard Hartmann Date: Sun, 22 Jan 2012 18:05:40 +0000 (+0100) Subject: Better quoting X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/63bd613e5940509f5bd7d4a2e9b610f57aaeb42b?hp=-c Better quoting --- 63bd613e5940509f5bd7d4a2e9b610f57aaeb42b diff --git a/vcsh b/vcsh index ac25063..0feb17a 100755 --- a/vcsh +++ b/vcsh @@ -265,7 +265,7 @@ fi # Mangle the input to fit normal operation. if echo $VCSH_REPO_NAME | grep -q '/'; then export GIT_DIR=$VCSH_REPO_NAME - export VCSH_REPO_NAME=$(basename $VCSH_REPO_NAME .git) + export VCSH_REPO_NAME=$(basename "$VCSH_REPO_NAME" .git) fi