File tree Expand file tree Collapse file tree 3 files changed +6
-12
lines changed
src/vs/workbench/contrib/terminal/browser/media Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ if [ -n "$VSCODE_ENV_REPLACE" ]; then
50
50
IFS=' :' read -ra ADDR <<< " $VSCODE_ENV_REPLACE"
51
51
for ITEM in " ${ADDR[@]} " ; do
52
52
VARNAME=" $( echo $ITEM | cut -d " =" -f 1) "
53
- # Use -e to encoded expand colons and other sequences
54
53
VALUE=" $( echo -e " $ITEM " | cut -d " =" -f 2) "
55
54
export $VARNAME =" $VALUE "
56
55
done
@@ -60,7 +59,6 @@ if [ -n "$VSCODE_ENV_PREPEND" ]; then
60
59
IFS=' :' read -ra ADDR <<< " $VSCODE_ENV_PREPEND"
61
60
for ITEM in " ${ADDR[@]} " ; do
62
61
VARNAME=" $( echo $ITEM | cut -d " =" -f 1) "
63
- # Use -e to encoded expand colons and other sequences
64
62
VALUE=" $( echo -e " $ITEM " | cut -d " =" -f 2) "
65
63
export $VARNAME =" $VALUE ${! VARNAME} "
66
64
done
@@ -70,7 +68,6 @@ if [ -n "$VSCODE_ENV_APPEND" ]; then
70
68
IFS=' :' read -ra ADDR <<< " $VSCODE_ENV_APPEND"
71
69
for ITEM in " ${ADDR[@]} " ; do
72
70
VARNAME=" $( echo $ITEM | cut -d " =" -f 1) "
73
- # Use -e to encoded expand colons and other sequences
74
71
VALUE=" $( echo -e " $ITEM " | cut -d " =" -f 2) "
75
72
export $VARNAME =" ${! VARNAME} $VALUE "
76
73
done
Original file line number Diff line number Diff line change 40
40
41
41
# Apply EnvironmentVariableCollections if needed
42
42
if [ -n " $VSCODE_ENV_REPLACE " ]; then
43
- echo " VSCODE_ENV_REPLACE: $VSCODE_ENV_REPLACE "
44
43
IFS=' :' read -rA ADDR <<< " $VSCODE_ENV_REPLACE"
45
44
for ITEM in " ${ADDR[@]} " ; do
46
45
VARNAME=" $( echo ${ITEM%% =* } ) "
47
- export $VARNAME =" ${ITEM#* =} "
46
+ export $VARNAME =" $( echo -e $ {ITEM#* =}) "
48
47
done
49
48
unset VSCODE_ENV_REPLACE
50
49
fi
51
50
if [ -n " $VSCODE_ENV_PREPEND " ]; then
52
- echo " VSCODE_ENV_PREPEND: $VSCODE_ENV_PREPEND "
53
51
IFS=' :' read -rA ADDR <<< " $VSCODE_ENV_PREPEND"
54
52
for ITEM in " ${ADDR[@]} " ; do
55
53
VARNAME=" $( echo ${ITEM%% =* } ) "
56
- export $VARNAME =" ${ITEM#* =}${(P)VARNAME} "
54
+ export $VARNAME =" $( echo -e {ITEM#* =}) ${(P)VARNAME} "
57
55
done
58
56
unset VSCODE_ENV_PREPEND
59
57
fi
60
58
if [ -n " $VSCODE_ENV_APPEND " ]; then
61
- echo " VSCODE_ENV_APPEND: $VSCODE_ENV_APPEND "
62
59
IFS=' :' read -rA ADDR <<< " $VSCODE_ENV_APPEND"
63
60
for ITEM in " ${ADDR[@]} " ; do
64
61
VARNAME=" $( echo ${ITEM%% =* } ) "
65
- export $VARNAME =" ${(P)VARNAME}${ITEM#* =} "
62
+ export $VARNAME =" ${(P)VARNAME} $( echo -e {ITEM#* =}) "
66
63
done
67
64
unset VSCODE_ENV_APPEND
68
65
fi
Original file line number Diff line number Diff line change @@ -33,23 +33,23 @@ if test -n "$VSCODE_ENV_REPLACE"
33
33
set ITEMS (string split : $VSCODE_ENV_REPLACE )
34
34
for B in $ITEMS
35
35
set split (string split = $B )
36
- set -gx " $split [1]" " $split [2]"
36
+ set -gx " $split [1]" ( echo -e " $split [2]" )
37
37
end
38
38
set -e VSCODE_ENV_REPLACE
39
39
end
40
40
if test -n " $VSCODE_ENV_PREPEND "
41
41
set ITEMS (string split : $VSCODE_ENV_PREPEND )
42
42
for B in $ITEMS
43
43
set split (string split = $B )
44
- set -gx " $split [1]" " $split [2]$$split [1]" # avoid -p as it adds a space
44
+ set -gx " $split [1]" ( echo -e " $split [2]" ) " $$split [1]" # avoid -p as it adds a space
45
45
end
46
46
set -e VSCODE_ENV_PREPEND
47
47
end
48
48
if test -n " $VSCODE_ENV_APPEND "
49
49
set ITEMS (string split : $VSCODE_ENV_APPEND )
50
50
for B in $ITEMS
51
51
set split (string split = $B )
52
- set -gx " $split [1]" " $$split [1]$split [2]" # avoid -a as it adds a space
52
+ set -gx " $split [1]" " $$split [1]" ( echo -e " $split [2]" ) # avoid -a as it adds a space
53
53
end
54
54
set -e VSCODE_ENV_APPEND
55
55
end
You can’t perform that action at this time.
0 commit comments