projects
/
grml-etc-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
zshrc: inplaceMkDirs(): handle espaces and quotes better
[grml-etc-core.git]
/
etc
/
zsh
/
zshrc
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
509f6f2
..
6add6f2
100644
(file)
--- 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