unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* [sh-script] Erroneous syntax highlighting of "[[ ]]" expressions with zsh
@ 2005-12-11 14:38 jerome
  0 siblings, 0 replies; only message in thread
From: jerome @ 2005-12-11 14:38 UTC (permalink / raw)


This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.4.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2005-10-04 on athlon, modified by Debian
configured using `configure '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--with-x=yes' '--with-x-toolkit=athena' 'CFLAGS=-DDEBIAN -g -O2' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu''
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: fr_FR.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

This is Debian bug #335712 (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=335712)

Thanks in advance.

----------------------------

Consider the following file

#!/bin/zsh
if [[ x == x ]] then
  echo OK
fi
if [[ x == x ]]; then
  echo OK
fi

opened in Shell-script[zsh] mode. The first "then" is not colored
(but the second one is).

Moreover, in the condition "x == x", the first x is colored (this
is incorrect, IMHO), while the second one isn't (OK).

----------------------------

It seems that bash makes the ";" mandatory after "]]" while zsh does
not.


Recent input:
s SPC i n SPC a d v a n c e . <return> <return> C h 
e e r s , <down-mouse-1> <mouse-1> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <down-mouse-1> 
<mouse-1> SPC D a n i e l <down-mouse-1> <mouse-1> 
<backspace> ? C-c C-c , i M-u q g <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
SPC SPC q <help-echo> <help-echo> M-x C-h C-g C-g C-g 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <menu-bar> <help-menu> <re
port-emacs-bug>

Recent messages:
Checking new news...done
Retrieving newsgroup: emacs-devel...
Fetching headers for emacs-devel...done
Suppressing duplicates...done
Generating summary...done
No more unread newsgroups
Auto-saving...
call-interactively: Quit
keyboard-quit: Quit
Loading emacsbug...done

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-12-11 14:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-11 14:38 [sh-script] Erroneous syntax highlighting of "[[ ]]" expressions with zsh jerome

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).