1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-02 08:51:18 +02:00

11966: double brackets around comparison to prevent 'command not found: no'

This commit is contained in:
Clint Adams 2000-06-18 14:16:24 +00:00
parent 1add53c578
commit bfaf5478a3
2 changed files with 6 additions and 1 deletions

@ -1,3 +1,8 @@
2000-06-17 Clint Adams <schizo@debian.org>
* 11966: Completion/Core/_main_complete: use double brackets
around comparison to prevent 'command not found: no' error.
2000-06-17 Bart Schaefer <schaefer@zsh.org>
* 11961: Src/subst.c: 11959 was really a bug in magicequalsubst,

@ -49,7 +49,7 @@ if [[ "$tmp" = *pending(|[[:blank:]]*) ||
fi
if [[ "$compstate[insert]" = tab* ]]; then
{ "$tmp" = (|[[:blank:]]*)(yes|true|on|1)(|[[:blank:]]*) &&
{ [[ "$tmp" = (|[[:blank:]]*)(yes|true|on|1)(|[[:blank:]]*) ]] &&
{ [[ "$curcontext" != :* || -z "$compstate[vared]" ]] ||
zstyle -t ":completion:vared${curcontext}:" insert-tab } } && return 0