GNU bug report logs - #8632
23.2; shell-script[bash] doesn't handle bitshift $(( 1 << 16 ))

Previous Next

Package: emacs;

Reported by: Ben Wong <bug-gnu-emacs+gnu.org <at> wongs.net>

Date: Fri, 6 May 2011 23:35:01 UTC

Severity: normal

Merged with 15941

Found in versions 23.2, 24.2

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 8632 <at> debbugs.gnu.org (full text, mbox):

From: Vincent Lefevre <vincent <at> vinc17.net>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Ben Wong <bug-gnu-emacs+gnu.org <at> wongs.net>, 8632 <at> debbugs.gnu.org
Subject: Re: bug#8632: 23.2; shell-script[bash] doesn't handle bitshift $(( 1
	<< 16 ))
Date: Tue, 17 Apr 2012 12:28:31 +0200
On 2011-05-13 16:12:54 -0300, Stefan Monnier wrote:
> > In shell-script mode (bash minor mode) Emacs 23.2 incorrectly parses the
> > following line as a HERE DOCUMENT.
> 
> > 	echo $(( 1 << 16 ))
> 
> > It is confused because sh-font-lock-open-heredoc (in sh-script.el)
> > does not know about bash's ARITHMETIC EXPANSION.
> 
> Indeed, thanks for spotting this.

Actually this is a much more general problem. See

  http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11263

-- 
Vincent Lefèvre <vincent <at> vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)




This bug report was last modified 11 years and 186 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.