Quote PATH when passing to subshell (fixes #329)

This commit is contained in:
Ilan Cosman 2022-08-18 09:11:44 -04:00
parent a86dc04fda
commit 694487b9da

View File

@ -38,7 +38,7 @@ function fish_prompt
_tide_status=\$status _tide_pipestatus=\$pipestatus if not set -e _tide_repaint _tide_status=\$status _tide_pipestatus=\$pipestatus if not set -e _tide_repaint
jobs -q && set -lx _tide_jobs jobs -q && set -lx _tide_jobs
$fish_path -c \"set _tide_pipestatus \$_tide_pipestatus $fish_path -c \"set _tide_pipestatus \$_tide_pipestatus
PATH=\$PATH CMD_DURATION=\$CMD_DURATION fish_bind_mode=\$fish_bind_mode set $prompt_var (_tide_2_line_prompt)\" & PATH='\$PATH' CMD_DURATION=\$CMD_DURATION fish_bind_mode=\$fish_bind_mode set $prompt_var (_tide_2_line_prompt)\" &
builtin disown builtin disown
command kill \$_tide_last_pid 2>/dev/null command kill \$_tide_last_pid 2>/dev/null
@ -66,7 +66,7 @@ function fish_prompt
_tide_status=\$status _tide_pipestatus=\$pipestatus if not set -e _tide_repaint _tide_status=\$status _tide_pipestatus=\$pipestatus if not set -e _tide_repaint
jobs -q && set -lx _tide_jobs jobs -q && set -lx _tide_jobs
$fish_path -c \"set _tide_pipestatus \$_tide_pipestatus $fish_path -c \"set _tide_pipestatus \$_tide_pipestatus
PATH=\$PATH CMD_DURATION=\$CMD_DURATION fish_bind_mode=\$fish_bind_mode set $prompt_var (_tide_1_line_prompt)\" & PATH='\$PATH' CMD_DURATION=\$CMD_DURATION fish_bind_mode=\$fish_bind_mode set $prompt_var (_tide_1_line_prompt)\" &
builtin disown builtin disown
command kill \$_tide_last_pid 2>/dev/null command kill \$_tide_last_pid 2>/dev/null