From 844751cf1c8a2d85789a594d3b259bada0751bb4 Mon Sep 17 00:00:00 2001 From: Whitney Young Date: Sat, 16 Jan 2016 13:30:57 -0800 Subject: [PATCH] Fixed a bug with whitespace in dir name. Fixes #36. --- bin/avn.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/avn.sh b/bin/avn.sh index 5d6bb0d..658ac6a 100644 --- a/bin/avn.sh +++ b/bin/avn.sh @@ -44,7 +44,7 @@ function __avn_eval() { # avn chpwd hook function __avn_chpwd() { - local file=$(__avn_find_file) + local file="$(__avn_find_file)" local dir=${file%/*} local name=${file##*/} @@ -58,7 +58,7 @@ function __avn_chpwd() { # debug that includes file lookup function __avn_debug() { - local file=$(__avn_find_file) + local file="$(__avn_find_file)" local dir=${file%/*} local name=${file##*/}