From c84ec5ed93d4683003ce624cf3ff0041f60681ea Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 6 Feb 2013 01:59:33 +0100 Subject: data/scope: fix handling of spaces in try() function --- ranger/data/scope.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; } -- cgit 1.4.1-2-gfad0