summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-02-06 01:59:33 +0100
committerhut <hut@lavabit.com>2013-02-06 01:59:53 +0100
commitc84ec5ed93d4683003ce624cf3ff0041f60681ea (patch)
treebedd33f7acf752c20b9df16b3a797eddaf9d8fd9
parent6752c233c6092e983d878c005219141ccc97027b (diff)
downloadranger-c84ec5ed93d4683003ce624cf3ff0041f60681ea.tar.gz
data/scope: fix handling of spaces in try() function
-rwxr-xr-xranger/data/scope.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh
index 6a5332ac..f9e61de2 100755
--- a/ranger/data/scope.sh
+++ b/ranger/data/scope.sh
@@ -31,7 +31,7 @@ extension=${path##*.}
 # Functions:
 # runs a command and saves its output into $output.  Useful if you need
 # the return value AND want to use the output in a pipe
-try() { output=$(eval $@); }
+try() { output=$(eval '"$@"'); }
 
 # writes the output of the previouosly used "try" command
 dump() { echo "$output"; }