From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Daniel Pfeiffer Newsgroups: gmane.emacs.devel Subject: Re: Font lock bug in sh-script.el Date: Mon, 16 Dec 2002 08:53:50 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20021216085350.5a31b585.occitan@esperanto.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1040025394 11617 80.91.224.249 (16 Dec 2002 07:56:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 16 Dec 2002 07:56:34 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Nq77-00031E-00 for ; Mon, 16 Dec 2002 08:56:33 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18NqKT-0007qO-00 for ; Mon, 16 Dec 2002 09:10:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Nq6T-0003Wh-0B for emacs-devel@quimby.gnus.org; Mon, 16 Dec 2002 02:55:53 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18Nq5q-00038R-00 for emacs-devel@gnu.org; Mon, 16 Dec 2002 02:55:14 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18Nq5G-0002so-00 for emacs-devel@gnu.org; Mon, 16 Dec 2002 02:54:42 -0500 Original-Received: from mailout06.sul.t-online.com ([194.25.134.19]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Nq59-0002WB-00; Mon, 16 Dec 2002 02:54:31 -0500 Original-Received: from fwd06.sul.t-online.de by mailout06.sul.t-online.com with smtp id 18Nq50-0003Ix-02; Mon, 16 Dec 2002 08:54:22 +0100 Original-Received: from pfdabpc.inhouse.start.de (520007185214-0001@[80.128.217.168]) by fmrl06.sul.t-online.com with smtp id 18Nq4n-18qICGC; Mon, 16 Dec 2002 08:54:09 +0100 Original-To: rms@gnu.org In-Reply-To: X-Mailer: Sylpheed version 0.8.1claws (GTK+ 1.2.10; ) X-Operating-System: GNU/Linux of course X-Face: #O4jYYB1q_#GM@+5bpI17zYh*qp]@lt"%.HQGbezyU>Cm@cp>rdE97{c:@). kR3O3H&LeNb(Q\/E^f{g|i~#u\4!\lJ"jR; Cx&[\,\xjKcLei-_1\d&TAm\E3&(c|>cQIoik]V8Vdf Qs)St&=rh'+N6/WxXf.VfUnD[<; 9{#[ZWC>]FP$xVRgTLssqs)7nQ'sH@l[9b5oo1@llkNJPx;&H(^ o~/ X-Sender: 520007185214-0001@t-dialin.net X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10157 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10157 Hi Richard, Richard Stallman skribis: > This shell script > svrmgrl << EOF > CONNECT INTERNAL > STARTUP > EXIT > EOF > > while > # foo > seems to confuse sh-script.el's font lock support. > All the text following the first line is treated as a here-document. That is correct! Only in the first column does EOF have it's special meaning. > Note that all the spaces in this test case are ordinary spaces. > (Someone else reported a bug involving non-breaking spaces.) Yes, he sent it to me first, and I asked him to send it to the bug list, since I no longer use shell (Perl instead :-). Anyways, those non-breaking spaces are pretty whacky. While they work in both bash and pdksh, neither documents what that EOF may look like. The bash manual calls it a word, so accepting nbsp`s here is almost a bash bug. As long as there is no specification, all you could do is trial and error, to find the common subset of characters accepted by all shells, or differentiate for each one. In the latter case I guess you'd be fighting with differences between various commercial ksh`s... coralament / best Grötens / liebe Grüße / best regards / elkorajn salutojn Daniel Pfeiffer -- GPL 3: take the wind out of Palladium's sails! -- ------ -- My other stuff here too, sawfish, make.pl...: -- ------ -- http://dapfy.bei.t-online.de/ --