aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Aaron Gyes <me@aaron.gy>2016-06-15 21:39:55 -0700
committerGravatar Aaron Gyes <me@aaron.gy>2016-06-15 21:41:37 -0700
commitcfe3fc301cb23b54d1d7f951f1e60c9c2e8aea86 (patch)
treecff0a789c6dc675b2ff51a08b6efba06c1866124
parentcbe97ac1a16930d561ff3899433ce07a7a5f261a (diff)
`string escape` some eval calls
-rw-r--r--share/functions/__fish_config_interactive.fish2
-rw-r--r--share/functions/fish_config.fish2
-rw-r--r--share/functions/fish_indent.fish2
-rw-r--r--share/functions/fish_update_completions.fish2
4 files changed, 4 insertions, 4 deletions
diff --git a/share/functions/__fish_config_interactive.fish b/share/functions/__fish_config_interactive.fish
index d9b4dc06..43b36951 100644
--- a/share/functions/__fish_config_interactive.fish
+++ b/share/functions/__fish_config_interactive.fish
@@ -103,7 +103,7 @@ function __fish_config_interactive -d "Initializations that should be performed
#
if not test -d $userdatadir/fish/generated_completions
#fish_update_completions is a function, so it can not be directly run in background.
- eval "$__fish_bin_dir/fish -c 'fish_update_completions > /dev/null ^/dev/null' &"
+ eval (string escape "$__fish_bin_dir/fish") "-c 'fish_update_completions > /dev/null ^/dev/null' &"
end
#
diff --git a/share/functions/fish_config.fish b/share/functions/fish_config.fish
index 32e5341a..1ca30530 100644
--- a/share/functions/fish_config.fish
+++ b/share/functions/fish_config.fish
@@ -4,5 +4,5 @@ function fish_config --description "Launch fish's web based configuration"
if count $argv >/dev/null
set initial_tab $argv[1]
end
- eval \"$__fish_datadir/tools/web_config/webconfig.py\" $initial_tab
+ eval (string escape $__fish_datadir/tools/web_config/webconfig.py) $initial_tab
end
diff --git a/share/functions/fish_indent.fish b/share/functions/fish_indent.fish
index ee58a46c..b5ae5e49 100644
--- a/share/functions/fish_indent.fish
+++ b/share/functions/fish_indent.fish
@@ -1,4 +1,4 @@
function fish_indent --description 'Indenter and prettifier for fish code'
# This is wrapped in a function so that fish_indent does not need to be found in PATH
- eval $__fish_bin_dir/fish_indent $argv
+ eval (string escape $__fish_bin_dir/fish_indent) $argv
end
diff --git a/share/functions/fish_update_completions.fish b/share/functions/fish_update_completions.fish
index 2a65441d..5928b378 100644
--- a/share/functions/fish_update_completions.fish
+++ b/share/functions/fish_update_completions.fish
@@ -1,4 +1,4 @@
function fish_update_completions --description "Update man-page based completions"
# Clean up old paths
- eval \"$__fish_datadir/tools/create_manpage_completions.py\" --manpath --progress --cleanup-in '~/.config/fish/completions' --cleanup-in '~/.config/fish/generated_completions'
+ eval (string escape $__fish_datadir/tools/create_manpage_completions.py) --manpath --progress --cleanup-in '~/.config/fish/completions' --cleanup-in '~/.config/fish/generated_completions'
end