string escape some eval calls

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

View file

@ -85,7 +85,7 @@ function __fish_config_interactive -d "Initializations that should be performed
if not test -d $userdatadir/fish/generated_completions if not test -d $userdatadir/fish/generated_completions
#fish_update_completions is a function, so it can not be directly run in background. #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 end
# #

View file

@ -4,5 +4,5 @@ function fish_config --description "Launch fish's web based configuration"
if count $argv >/dev/null if count $argv >/dev/null
set initial_tab $argv[1] set initial_tab $argv[1]
end end
eval $__fish_datadir/tools/web_config/webconfig.py $initial_tab eval (string escape $__fish_datadir/tools/web_config/webconfig.py) $initial_tab
end end

View file

@ -1,4 +1,4 @@
function fish_indent --description 'Indenter and prettifier for fish code' 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 # 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 end

View file

@ -1,4 +1,4 @@
function fish_update_completions --description "Update man-page based completions" function fish_update_completions --description "Update man-page based completions"
# Clean up old paths # 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 end