From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 13 21:15:23 2021 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 ) id 1lB6wV-0004Hl-7p for submit@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 ) id 1lB6wR-0004HY-OP for submit@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 ) id 1lB6wR-0003MT-76 for bug-gnu-emacs@gnu.org; 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 ) id 1lB6wM-0001G6-1y for bug-gnu-emacs@gnu.org; Sat, 13 Feb 2021 21:15:18 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 6EE81702081 for ; 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 ; Sun, 14 Feb 2021 02:15:09 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org 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@jidanni.org 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 ; 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@jidanni.org) by pdx1-sub0-mail-a38.g.dreamhost.com (Postfix) with ESMTPSA id B24A68775F for ; Sat, 13 Feb 2021 18:15:08 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a38 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-gnu-emacs@gnu.org Subject: Shell-script mode vs here-docs Date: Sun, 14 Feb 2021 08:36:53 +0800 Message-ID: <87v9avwkm2.8.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=23.83.209.62; envelope-from=jidanni@jidanni.org; 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-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 <) id 1o2CLW-0007rj-Lz for submit@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 ) id 1o2CLV-0007rU-LK for 46501@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 ) id 1o2CLM-0003ep-8C; Fri, 17 Jun 2022 15:49:02 +0200 From: Lars Ingebrigtsen To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson Subject: Re: bug#46501: Shell-script mode vs here-docs References: <87v9avwkm2.8.fsf@jidanni.org> 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@jidanni.org> (=?utf-8?B?IuepjeS4ueWwvA==?= Dan Jacobson"'s message of "Sun, 14 Feb 2021 08:36:53 +0800") Message-ID: <874k0j8kol.fsf@gnus.org> 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: 積丹尼 Dan Jacobson 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-Debbugs-Envelope-To: 46501 Cc: 46501@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson 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 < 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 17 09:49:17 2022 Received: (at control) by debbugs.gnu.org; 17 Jun 2022 13:49:17 +0000 Received: from localhost ([127.0.0.1]:44483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2CLc-0007s5-TQ for submit@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 ) id 1o2CLb-0007ri-KP for control@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 ) id 1o2CLT-0003f0-Q0 for control@debbugs.gnu.org; Fri, 17 Jun 2022 15:49:09 +0200 Date: Fri, 17 Jun 2022 15:49:07 +0200 Message-Id: <8735g38koc.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) forcemerge 46501 6391 quit