From 6a3fd78bbaeda0aa6761a03dbf21217d441a812f Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Mon, 12 Dec 2011 17:12:17 +0100 Subject: [PATCH 1/1] properly escape directories for inplacemkdir --- .zsh/zshrc/80_inplacemkdir | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zsh/zshrc/80_inplacemkdir b/.zsh/zshrc/80_inplacemkdir index 095200f..e8a02eb 100644 --- a/.zsh/zshrc/80_inplacemkdir +++ b/.zsh/zshrc/80_inplacemkdir @@ -15,7 +15,7 @@ _inplaceMkDirs() { bufwords=(${(z)LBUFFER}) iword=${#bufwords} bufwords=(${(z)BUFFER}) - PATHTOMKDIR="$bufwords[iword]" + PATHTOMKDIR="${(Q)bufwords[iword]}" fi [[ -z "${PATHTOMKDIR}" ]] && return 1 if [[ -e "${PATHTOMKDIR}" ]]; then -- 2.39.5