string escape some eval calls

This commit is contained in:
Aaron Gyes 2016-06-15 21:39:55 -07:00
parent cbe97ac1a1
commit cfe3fc301c
4 changed files with 4 additions and 4 deletions

View File

@ -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
#

View File

@ -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

View File

@ -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

View File

@ -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