From: Bernhard Tittelbach Date: Wed, 9 Nov 2011 11:19:34 +0000 (+0100) Subject: zshrc: inplaceMkDirs(): handle espaces and quotes better X-Git-Tag: v0.4.02~6 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=a443ac2608342c5b5113b1e3dbcc4af7704130cc zshrc: inplaceMkDirs(): handle espaces and quotes better --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 509f6f2..6add6f2 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2810,7 +2810,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