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

From: Vincent Lefevre <[email-masked]>
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 <[email-masked]> - 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)