projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
eb2c0c6
)
zshrc: inplaceMkDirs(): handle espaces and quotes better
author
Bernhard Tittelbach
<bernhard@tittelbach.org>
Wed, 9 Nov 2011 11:19:34 +0000
(12:19 +0100)
committer
Bernhard Tittelbach
<bernhard@tittelbach.org>
Wed, 9 Nov 2011 11:19:34 +0000
(12:19 +0100)
etc/zsh/zshrc
patch
|
blob
|
history
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})
bufwords=(${(z)LBUFFER})
iword=${#bufwords}
bufwords=(${(z)BUFFER})
- PATHTOMKDIR="$
bufwords[iword]
"
+ PATHTOMKDIR="$
{(Q)bufwords[iword]}
"
fi
[[ -z "${PATHTOMKDIR}" ]] && return 1
if [[ -e "${PATHTOMKDIR}" ]]; then
fi
[[ -z "${PATHTOMKDIR}" ]] && return 1
if [[ -e "${PATHTOMKDIR}" ]]; then