unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Vincent Lefevre <vincent@vinc17.net>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: 11263@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	[thread overview]
Message-ID: <20120417233722.GK3626@xvii.vinc17.org> (raw)
In-Reply-To: <jwv62cy9p9g.fsf-monnier+emacs@gnu.org>

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





  reply	other threads:[~2012-04-17 23:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-17 10:24 bug#11263: 23.4; shell-script: << does not always mean here-document Vincent Lefevre
2012-04-17 18:40 ` Stefan Monnier
2012-04-17 23:37   ` Vincent Lefevre [this message]
2012-04-18  0:03     ` Glenn Morris
2012-04-18  0:35       ` Glenn Morris
2012-04-18  0:45         ` Vincent Lefevre
2012-04-18  1:03           ` Glenn Morris
2012-04-21  7:41           ` bug#8196: Andreas Röhler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120417233722.GK3626@xvii.vinc17.org \
    --to=vincent@vinc17.net \
    --cc=11263@debbugs.gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).