From: martin f. krafft Date: Mon, 12 Dec 2011 16:12:17 +0000 (+0100) Subject: properly escape directories for inplacemkdir X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/6a3fd78bbaeda0aa6761a03dbf21217d441a812f?ds=sidebyside properly escape directories for inplacemkdir --- 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