From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jerome@marant.org (jerome) Newsgroups: gmane.emacs.bugs Subject: [sh-script] Erroneous syntax highlighting of "[[ ]]" expressions with zsh Date: Sun, 11 Dec 2005 15:38:47 +0100 (CET) Message-ID: <20051211143847.69447DA6480@localhost.localdomain> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1134312894 26729 80.91.229.2 (11 Dec 2005 14:54:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 11 Dec 2005 14:54:54 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 11 15:54:52 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ElSa5-0003bl-4v for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Dec 2005 15:53:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ElSaW-0006ov-Bc for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Dec 2005 09:54:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ElSIg-0005Xv-Un for bug-gnu-emacs@gnu.org; Sun, 11 Dec 2005 09:35:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ElSId-0005X4-59 for bug-gnu-emacs@gnu.org; Sun, 11 Dec 2005 09:35:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ElSIc-0005Wy-Sc for bug-gnu-emacs@gnu.org; Sun, 11 Dec 2005 09:35:38 -0500 Original-Received: from [212.27.42.28] (helo=smtp2-g19.free.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ElSKB-0000Dy-4Y for bug-gnu-emacs@gnu.org; Sun, 11 Dec 2005 09:37:15 -0500 Original-Received: from localhost.localdomain (mol92-4-82-227-97-206.fbx.proxad.net [82.227.97.206]) by smtp2-g19.free.fr (Postfix) with ESMTP id 958345CE9E for ; Sun, 11 Dec 2005 15:35:06 +0100 (CET) Original-Received: by localhost.localdomain (Postfix, from userid 1000) id 69447DA6480; Sun, 11 Dec 2005 15:38:47 +0100 (CET) Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:14597 Archived-At: 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 . C h e e r s , SPC D a n i e l ? C-c C-c , i M-u q g SPC SPC q M-x C-h C-g C-g C-g 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