Skip to content

Commit 03fa850

Browse files
authored
Merge pull request #504 from Telling/mvim-fix
fix expansion issue in mvim
2 parents b0f7e1f + d62b707 commit 03fa850

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/MacVim/mvim

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@
1111
#
1212

1313
# Find Vim executable
14-
if [ -L $0 ]; then
14+
if [ -L "$0" ]; then
1515
# readlink -f
1616
curdir=`pwd -P`
1717
self_path=$0
18-
cd `dirname $self_path`
19-
while [ -L $self_path ]; do
18+
cd "`dirname $self_path`"
19+
while [ -L "$self_path" ]; do
2020
self_path=`readlink $self_path`
21-
cd `dirname $self_path`
21+
cd "`dirname $self_path`"
2222
self_path=`basename $self_path`
2323
done
2424
binary="`pwd -P`/../MacOS/Vim"
25-
cd $curdir
25+
cd "$curdir"
2626
else
2727
binary="`dirname "$0"`/../MacOS/Vim"
2828
fi
29-
if ! [ -x $binary ]; then
29+
if ! [ -x "$binary" ]; then
3030
echo "Sorry, cannot find Vim executable."
3131
exit 1
3232
fi

0 commit comments

Comments
 (0)