GNU bug report logs - #11263
23.4; shell-script: << does not always mean here-document

Previous Next

Package: emacs;

Reported by: Vincent Lefevre <vincent <at> vinc17.net>

Date: Tue, 17 Apr 2012 10:25:02 UTC

Severity: minor

Merged with 12770

Found in versions 23.4, 24.2.1

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Vincent Lefevre <vincent <at> vinc17.net>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: 11263 <at> debbugs.gnu.org
Subject: bug#11263: 23.4; shell-script: << does not always mean here-document
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 <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 12 years and 257 days ago.

Previous Next


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