about summary refs log tree commit diff stats
path: root/ranger.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-02-24 14:32:56 +0100
committerhut <hut@lavabit.com>2010-02-24 23:54:17 +0100
commit4072a34ddcb2bed75476eaf27a9b718625bdd29c (patch)
treee813b4c60b8462274261667bc17343d54790e6bd /ranger.py
parent8cffc5a4788af51d2c910c8616fabe44e3888ec1 (diff)
downloadranger-4072a34ddcb2bed75476eaf27a9b718625bdd29c.tar.gz
ranger.py: fixed cd-after-exit with spaces in directory
Diffstat (limited to 'ranger.py')
-rwxr-xr-xranger.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger.py b/ranger.py
index cf60433b..ad5a9ce0 100755
--- a/ranger.py
+++ b/ranger.py
@@ -26,7 +26,7 @@
 if [ $1 ]; then
 	ranger_exec="$1"
 	shift
-	cd `exec $ranger_exec --cd-after-exit $@ 3>&1 1>&2 2>&3 3>&-`
+	cd "`exec $ranger_exec --cd-after-exit $@ 3>&1 1>&2 2>&3 3>&-`"
 	unset ranger_exec
 else
 	echo "usage: source path/to/ranger.py path/to/ranger.py"