File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/virtualenv/activation/fish Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ function deactivate -d 'Exit virtualenv mode and return to the normal environmen
18
18
# reset old environment variables
19
19
if test -n " $_ OLD_VIRTUAL_PATH"
20
20
# https://github.com/fish-shell/fish-shell/issues/436 altered PATH handling
21
- if test (echo $FISH_VERSION | head -c 1 ) -lt 3
21
+ if test (string sub -s 1 -l 1 $FISH_VERSION ) -lt 3
22
22
set -gx PATH (_fishify_path " $_ OLD_VIRTUAL_PATH" )
23
23
else
24
24
set -gx PATH $_ OLD_VIRTUAL_PATH
@@ -61,7 +61,7 @@ deactivate nondestructive
61
61
set -gx VIRTUAL_ENV __VIRTUAL_ENV__
62
62
63
63
# https://github.com/fish-shell/fish-shell/issues/436 altered PATH handling
64
- if test (echo $FISH_VERSION | head -c 1 ) -lt 3
64
+ if test (string sub -s 1 -l 1 $FISH_VERSION ) -lt 3
65
65
set -gx _OLD_VIRTUAL_PATH (_bashify_path $PATH )
66
66
else
67
67
set -gx _OLD_VIRTUAL_PATH $PATH
You can’t perform that action at this time.
0 commit comments