From d65217bc014512569f8eb50ce7af0183f011af14 Mon Sep 17 00:00:00 2001 From: Alexander Zolotov Date: Thu, 31 Jan 2019 21:22:46 +0300 Subject: [PATCH] Handle spaces in environment variable values while overriding them in the terminal (GO-6813) --- plugins/terminal/resources/.zshrc | 2 +- plugins/terminal/resources/jediterm-bash.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/terminal/resources/.zshrc b/plugins/terminal/resources/.zshrc index 5557a52be853..adbc7f7bc754 100644 --- a/plugins/terminal/resources/.zshrc +++ b/plugins/terminal/resources/.zshrc @@ -47,7 +47,7 @@ then fi function override_jb_variables { - for VARIABLE in $(env) + env | while read VARIABLE do NAME=${VARIABLE%%=*} if [[ $NAME = '_INTELLIJ_FORCE_SET_'* ]] diff --git a/plugins/terminal/resources/jediterm-bash.in b/plugins/terminal/resources/jediterm-bash.in index 05f699b7250e..78eacb5b3b86 100644 --- a/plugins/terminal/resources/jediterm-bash.in +++ b/plugins/terminal/resources/jediterm-bash.in @@ -32,7 +32,7 @@ function load_interactive_configs { } function override_jb_variables { - for VARIABLE in $(env) + env | while read VARIABLE do NAME=${VARIABLE%%=*} if [[ $NAME = '_INTELLIJ_FORCE_SET_'* ]]