summaryrefslogtreecommitdiff
path: root/lib/termsupport.zsh
diff options
context:
space:
mode:
authorAndrew Janke <andrew@apjanke.net>2015-10-31 14:53:41 -0400
committerMarc Cornellà <marc.cornella@live.com>2015-11-27 15:58:06 +0100
commitf0981d564a5f9705cb87c00d746ab73ce7f2ec33 (patch)
tree069b7aec24f9070a07f7a273d7aff7d504f6aa86 /lib/termsupport.zsh
parentd2e1c71bfbb24fa6059b75d80c060c9c6b4851fb (diff)
downloadzsh-f0981d564a5f9705cb87c00d746ab73ce7f2ec33.tar.gz
zsh-f0981d564a5f9705cb87c00d746ab73ce7f2ec33.tar.bz2
zsh-f0981d564a5f9705cb87c00d746ab73ce7f2ec33.zip
termsupport: protect subshell with quotes
Diffstat (limited to 'lib/termsupport.zsh')
-rw-r--r--lib/termsupport.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
index 5f61fe8ef..4c5068e9b 100644
--- a/lib/termsupport.zsh
+++ b/lib/termsupport.zsh
@@ -74,7 +74,7 @@ if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then
# the host name to disambiguate local vs. remote paths.
# Percent-encode the pathname.
- local URL_PATH=$(omz_urlencode -P $PWD)
+ local URL_PATH="$(omz_urlencode -P $PWD)"
[[ $? != 0 ]] && return 1
local PWD_URL="file://$HOST$URL_PATH"
# Undocumented Terminal.app-specific control sequence