From ce7bc2a0a2d6439a0e3a9ab38309a527d74ade60 Mon Sep 17 00:00:00 2001
From: Luke Childs <lukechilds123@gmail.com>
Date: Tue, 27 Sep 2016 22:02:42 +0100
Subject: [PATCH] Wrap binary path output in quotes

---
 zsh-nvm.plugin.zsh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/zsh-nvm.plugin.zsh b/zsh-nvm.plugin.zsh
index 7222d57..53b4548 100644
--- a/zsh-nvm.plugin.zsh
+++ b/zsh-nvm.plugin.zsh
@@ -25,7 +25,7 @@ _zsh_nvm_install() {
 _zsh_nvm_global_binaries() {
 
   # Look for global binaries
-  local global_binary_paths=$(echo "$NVM_DIR"/v0*/bin/*(N) "$NVM_DIR"/versions/*/*/bin/*(N))
+  local global_binary_paths="$(echo "$NVM_DIR"/v0*/bin/*(N) "$NVM_DIR"/versions/*/*/bin/*(N))"
 
   # If we have some, format them
   if [[ -n "$global_binary_paths" ]]; then