Subject: Re: bug#11263: 23.4; shell-script: << does not always mean here-document

From: Vincent Lefevre <[email-masked]>
Date: Wed, 18 Apr 2012 01:37:22 +0200

On 2012-04-17 14:40:45 -0400, Stefan Monnier wrote:
> > When I type << in shell-script mode, Emacs thinks this begins a
> > here-document. This is not always the case, e.g. in the following
> > lines:
> 
> > foo='bar<<'
> > echo "${foo%<<}"
> 
> Emacs handles these correctly, AFAICT.

No, unless there is something specific to Debian or this has been
fixed recently (Debian has GNU Emacs 23.4.1). To reproduce, type:
emacs -q foo.sh

Then in the Emacs window:

foo='bar<<

This produces:

foo='bar<<EOF

EOF

-- 
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)