mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 13:37:27 +08:00
string escape
some eval calls
This commit is contained in:
parent
cbe97ac1a1
commit
cfe3fc301c
|
@ -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
|
||||
|
||||
#
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user