diff options
author | hut <hut@lavabit.com> | 2013-02-06 01:59:33 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-02-06 01:59:53 +0100 |
commit | c84ec5ed93d4683003ce624cf3ff0041f60681ea (patch) | |
tree | bedd33f7acf752c20b9df16b3a797eddaf9d8fd9 | |
parent | 6752c233c6092e983d878c005219141ccc97027b (diff) | |
download | ranger-c84ec5ed93d4683003ce624cf3ff0041f60681ea.tar.gz |
data/scope: fix handling of spaces in try() function
-rwxr-xr-x | ranger/data/scope.sh | 2 |
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"; } |