This question is about ZSH, not bash.
I have the following lines in my .zshrc
file. Whenever I open a terminal I get a no matches found
error referencing the line with the if
statement.
if [[!( -a ~/.zkbd/$TERM-${${DISPLAY:t}:-$VENDOR-$OSTYPE} )]]; then
zkbd
fi
I read through the ZSH documentation and my if
statement appears to be correct. I don't understand why I'm getting the error.
What I'd like to happen is for the zkbd
utility to run if the file in the .zkbd
folder does not exist.
[ … ]
doesn't work without spaces inside. – Gilles 'SO- stop being evil' Aug 24 '15 at 13:13[
command, the other one about the[[...]]
construct, one is aboutbash
, the other one is aboutzsh
. The error messages are completely different (at least it would make sense to explain why you get a no-match error in zsh here). – Stéphane Chazelas Aug 24 '15 at 13:19bash
,ksh93
andmksh
do support[[(a == b)]]
(not[[!(a == b)]]
), notzsh
. – Stéphane Chazelas Aug 24 '15 at 13:35