X-Loop: help-debbugs@HIDDEN Subject: bug#46501: Shell-script mode vs here-docs Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson <jidanni@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 14 Feb 2021 02:16:02 +0000 Resent-Message-ID: <handler.46501.B.161326892316481 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 46501 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 46501 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.161326892316481 (code B ref -1); Sun, 14 Feb 2021 02:16:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Feb 2021 02:15:23 +0000 Received: from localhost ([127.0.0.1]:35295 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1lB6wV-0004Hl-7p for submit <at> debbugs.gnu.org; Sat, 13 Feb 2021 21:15:23 -0500 Received: from lists.gnu.org ([209.51.188.17]:47594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jidanni@HIDDEN>) id 1lB6wR-0004HY-OP for submit <at> debbugs.gnu.org; Sat, 13 Feb 2021 21:15:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52594) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <jidanni@HIDDEN>) id 1lB6wR-0003MT-76 for bug-gnu-emacs@HIDDEN; Sat, 13 Feb 2021 21:15:19 -0500 Received: from fossa.birch.relay.mailchannels.net ([23.83.209.62]:61562) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <jidanni@HIDDEN>) id 1lB6wM-0001G6-1y for bug-gnu-emacs@HIDDEN; Sat, 13 Feb 2021 21:15:18 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@HIDDEN Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 6EE81702081 for <bug-gnu-emacs@HIDDEN>; Sun, 14 Feb 2021 02:15:10 +0000 (UTC) Received: from pdx1-sub0-mail-a38.g.dreamhost.com (100-96-27-118.trex.outbound.svc.cluster.local [100.96.27.118]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id DF18170200E for <bug-gnu-emacs@HIDDEN>; Sun, 14 Feb 2021 02:15:09 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@HIDDEN Received: from pdx1-sub0-mail-a38.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.96.27.118 (trex/6.1.1); Sun, 14 Feb 2021 02:15:10 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@HIDDEN X-MailChannels-Auth-Id: dreamhost X-Interest-Madly: 51744dad6bef9521_1613268910198_2300664656 X-MC-Loop-Signature: 1613268910198:2115392697 X-MC-Ingress-Time: 1613268910197 Received: from pdx1-sub0-mail-a38.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a38.g.dreamhost.com (Postfix) with ESMTP id 95EB385AFB for <bug-gnu-emacs@HIDDEN>; Sat, 13 Feb 2021 18:15:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=KP7KYICTbZRV4XN4exTOgJNVV6w=; b=Sv2iPcsOkwwRL3Z1 NVgvHMkhu1PCBDduKG5nObpYpEmEe6Ur1ZvHR50SmTdLbfbqMrf/UGkbL3oDd9Bu Sk8WwZofNkV7Y5Umtn2P3vzsO3GYkSLrXoNHWvCwHJU4l8JCmdUwTGCUHNjEynsP UBUp0I4wAQj006hHU3gsG0F7wZk= Received: from jidanni.org (114-41-22-43.dynamic-ip.hinet.net [114.41.22.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@HIDDEN) by pdx1-sub0-mail-a38.g.dreamhost.com (Postfix) with ESMTPSA id B24A68775F for <bug-gnu-emacs@HIDDEN>; Sat, 13 Feb 2021 18:15:08 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a38 From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson <jidanni@HIDDEN> Date: Sun, 14 Feb 2021 08:36:53 +0800 Message-ID: <87v9avwkm2.8.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=23.83.209.62; envelope-from=jidanni@HIDDEN; helo=fossa.birch.relay.mailchannels.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.4 (--) $ cat s.sh #!/bin/bash xxx=yyy #Here Shell-script mode should make the $(beep) into the same color as the rest of the line: cat <<\EOF Bla Bla $xxx $(beep) EOF #And here Shell-script mode should make $xxx a different color than the rest of the line: cat <<EOF Bla Bla $xxx $(beep) EOF #By the way, in this comment, $(beep) should be the same color as the rest of the comment. $ emacs -Q s.sh (By the way, changing /bin/bash to /bin/sh above fixes most of the problems.) emacs-version "27.1"
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson <jidanni@HIDDEN> Subject: bug#46501: Acknowledgement (Shell-script mode vs here-docs) Message-ID: <handler.46501.B.161326892316481.ack <at> debbugs.gnu.org> References: <87v9avwkm2.8.fsf@HIDDEN> X-Gnu-PR-Message: ack 46501 X-Gnu-PR-Package: emacs Reply-To: 46501 <at> debbugs.gnu.org Date: Sun, 14 Feb 2021 02:16:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 46501 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 46501: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D46501 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#46501: Shell-script mode vs here-docs Resent-From: Lars Ingebrigtsen <larsi@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 17 Jun 2022 13:50:02 +0000 Resent-Message-ID: <handler.46501.B46501.165547375030244 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 46501 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson <jidanni@HIDDEN> Cc: 46501 <at> debbugs.gnu.org Received: via spool by 46501-submit <at> debbugs.gnu.org id=B46501.165547375030244 (code B ref 46501); Fri, 17 Jun 2022 13:50:02 +0000 Received: (at 46501) by debbugs.gnu.org; 17 Jun 2022 13:49:10 +0000 Received: from localhost ([127.0.0.1]:44480 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o2CLW-0007rj-Lz for submit <at> debbugs.gnu.org; Fri, 17 Jun 2022 09:49:10 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55972) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1o2CLV-0007rU-LK for 46501 <at> debbugs.gnu.org; Fri, 17 Jun 2022 09:49:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=MESnicxES+qp7KXwPOJb9tCSrf8BXKFI4J3UOGyojB8=; b=VpUnlNBJMaDL9v/ovzYeQ3zv52 mW0YDL5m6oFwNd5tyVX8YVETJg+0vzf3NTWAuSDP/dAhZOX/C6C71hbn8YxbyuxSzZdqb9jat4mN2 RPhgmxQGpCQQqG//hiNjB/7oeIIJ9Q4EDiQ4KBcnN49/whWae3DdiMBAoYs9Sus73axY=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1o2CLM-0003ep-8C; Fri, 17 Jun 2022 15:49:02 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> References: <87v9avwkm2.8.fsf@HIDDEN> X-Now-Playing: Fairport Convention's _Come All Ye (2)_: "Percys Song" Date: Fri, 17 Jun 2022 15:48:58 +0200 In-Reply-To: <87v9avwkm2.8.fsf@HIDDEN> ("=?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson"'s message of "Sun, 14 Feb 2021 08:36:53 +0800") Message-ID: <874k0j8kol.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson <jidanni@HIDDEN> writes: > $ cat s.sh > #!/bin/bash > xxx=yyy > #Here Shell-script mode should make the $(beep) into the same color as > the rest of the line: > cat <<\EOF > Bla Bla $xxx $(beep) > EOF > #And here Shell-script [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson <jidanni@HIDDEN> writes: > $ cat s.sh > #!/bin/bash > xxx=3Dyyy > #Here Shell-script mode should make the $(beep) into the same color as > the rest of the line: > cat <<\EOF > Bla Bla $xxx $(beep) > EOF > #And here Shell-script mode should make $xxx a different color than > the rest of the line: > cat <<EOF > Bla Bla $xxx $(beep) > EOF > #By the way, in this comment, $(beep) should be the same color as the > rest of the comment. > $ emacs -Q s.sh > (By the way, changing /bin/bash to /bin/sh above fixes most of the > problems.) > emacs-version "27.1" This looks like a duplicate of bug#6391, so I've now merged them. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
Received: (at control) by debbugs.gnu.org; 17 Jun 2022 13:49:17 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 17 09:49:17 2022 Received: from localhost ([127.0.0.1]:44483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o2CLc-0007s5-TQ for submit <at> debbugs.gnu.org; Fri, 17 Jun 2022 09:49:17 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1o2CLb-0007ri-KP for control <at> debbugs.gnu.org; Fri, 17 Jun 2022 09:49:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=u09qIlGKbYSz8eea/6m7GVSDimlv/b5iidwnb/eRXjk=; b=RVgEgkvhbX79KtdCFUto7F/QUl K8xhw1HeF7zWO7UP/N4IGk6njbfHIDoTVVCMgsjy2ye5WH4Y2CF9Yu8k5RB3VAjB8flJY1oQtjvFD cy9+g87hMDCLmkL0pnVR1MTauIty/uva5YEA9kiRLnSJc4oauoDCrbq2UnkpfooC3I0o=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1o2CLT-0003f0-Q0 for control <at> debbugs.gnu.org; Fri, 17 Jun 2022 15:49:09 +0200 Date: Fri, 17 Jun 2022 15:49:07 +0200 Message-Id: <8735g38koc.fsf@HIDDEN> To: control <at> debbugs.gnu.org From: Lars Ingebrigtsen <larsi@HIDDEN> Subject: control message for bug #46501 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: forcemerge 46501 6391 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) forcemerge 46501 6391 quit
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.