From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Schoenick Newsgroups: gmane.emacs.bugs Subject: bug#12770: 24.2.1; sh-mode parsing - bitwise leftshift misinterpreted as here-document inside arithmetic expansion $(( )) Date: Tue, 30 Oct 2012 16:00:16 -0700 Message-ID: <50905C00.8050208@mozilla.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1351640797 28897 80.91.229.3 (30 Oct 2012 23:46:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2012 23:46:37 +0000 (UTC) To: 12770@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 31 00:46:46 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TTLW5-0003zC-IB for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Oct 2012 00:46:41 +0100 Original-Received: from localhost ([::1]:55824 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTLVw-0003Es-Pe for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Oct 2012 19:46:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTLVu-00031p-7h for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2012 19:46:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTLVt-0000c9-3a for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2012 19:46:30 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58271) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTLVt-0000c4-06 for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2012 19:46:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TTLYM-0005s6-AL for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2012 19:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: John Schoenick Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Oct 2012 23:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12770 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.135164092222541 (code B ref -1); Tue, 30 Oct 2012 23:49:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Oct 2012 23:48:42 +0000 Original-Received: from localhost ([127.0.0.1]:40289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTLY1-0005rW-Cv for submit@debbugs.gnu.org; Tue, 30 Oct 2012 19:48:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43426) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTKpx-0004rm-HK for submit@debbugs.gnu.org; Tue, 30 Oct 2012 19:03:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTKnR-0003cU-Sd for submit@debbugs.gnu.org; Tue, 30 Oct 2012 19:00:35 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:46599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTKnR-0003cQ-PQ for submit@debbugs.gnu.org; Tue, 30 Oct 2012 19:00:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48721) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTKnQ-0004q9-Ls for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2012 19:00:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTKnP-0003bQ-6e for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2012 19:00:32 -0400 Original-Received: from mx1.corp.phx1.mozilla.com ([63.245.216.69]:48442 helo=smtp.mozilla.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTKnO-0003X6-VY for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2012 19:00:31 -0400 Original-Received: from [10.250.1.17] (unknown [63.245.220.240]) (Authenticated sender: jschoenick@mozilla.com) by mx1.mail.corp.phx1.mozilla.com (Postfix) with ESMTPSA id 0F005F26D1 for ; Tue, 30 Oct 2012 16:00:16 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/19.0 Thunderbird/19.0a1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Tue, 30 Oct 2012 19:48:39 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:66256 Archived-At: The following, in a sh-mode buffer of shell-type bash: echo -n $(( 5 << 2 )) Will result in the remainder of the document being mis-interpreted as a here-document and mis-highlighted until a line containing a single 2 is encountered. The equivalent: let "r = 5 << 2" echo -n $r Is handled properly. - John In GNU Emacs 24.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.4) of 2012-08-28 on shaun Windowing system distributor `The X.Org Foundation', version 11.0.11300000 Configured using: `configure '--prefix=/usr' '--sysconfdir=/etc' '--libexecdir=/usr/lib' '--localstatedir=/var' '--with-x-toolkit=gtk3' '--with-xft' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro'' 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: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Shell-script Minor modes in effect: global-auto-complete-mode: t auto-complete-mode: t global-linum-mode: t linum-mode: t global-hl-line-mode: t shell-dirtrack-mode: t iswitchb-mode: t global-auto-revert-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Features: (shadow sort mail-extr emacsbug message idna rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader apropos skeleton sh-script executable help-mode view misearch multi-isearch re-builder rect js json imenu thingatpt newcomment cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs sgml-mode vc-git server auto-complete-clang auto-complete-config auto-complete popup multi-term warnings term disp-table ehelp electric linum color-theme wid-edit cl sendmail rfc2047 rfc2045 ietf-drums mail-utils reporter hl-line tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv macroexp gnus-util mm-util mail-prsvr password-cache shell pcomplete comint ansi-color ring format-spec advice help-fns advice-preload tramp-loaddefs regexp-opt iswitchb fill-column-indicator easy-mmode edmacro kmacro speedbar sb-image ezimage dframe easymenu assoc ido time-date autorevert tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)