Received: (at 45390) by debbugs.gnu.org; 7 Jun 2022 12:03:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 07 08:03:04 2022
Received: from localhost ([127.0.0.1]:38870 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1nyXvL-0005D7-Sv
for submit <at> debbugs.gnu.org; Tue, 07 Jun 2022 08:03:04 -0400
Received: from quimby.gnus.org ([95.216.78.240]:52536)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <larsi@HIDDEN>) id 1nyXvK-0005CZ-07
for 45390 <at> debbugs.gnu.org; Tue, 07 Jun 2022 08:03:02 -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=FmAqphQIYlxWxqp1j0jKQYiTUYIaMLWrU6r3O0LsByo=; b=d3Sxm1XjlQqRcPgEDW5YyI8NSe
bAL8Co2GXZ78j4Aqk8uavrJ+YG5hmNLwGi/d6dhb8f+Qo4uDS95V2vhAglnl0793leT0x+bPOTBu8
09rD7tEcm+33RNndG89SXGNWV1udB6iLqa763dbssHw0SpXciKNYFAh81Vi6JmPuOyco=;
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 1nyXvB-0002Cu-4f; Tue, 07 Jun 2022 14:02:55 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Dario Gjorgjevski <dario.gjorgjevski@HIDDEN>
Subject: Re: bug#45390: Shell-script mode =?utf-8?Q?doesn=E2=80=99t?= like
redirection at beginning of command
References: <fv2zojpn30zua9.fsf@HIDDEN>
X-Now-Playing: Miranda Dali's _Miranda Dali_: "Amerika"
Date: Tue, 07 Jun 2022 14:02:52 +0200
In-Reply-To: <fv2zojpn30zua9.fsf@HIDDEN> (Dario Gjorgjevski's message of
"Wed, 23 Dec 2020 11:33:18 +0100")
Message-ID: <87wndsisur.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: Dario Gjorgjevski <dario.gjorgjevski@HIDDEN> writes: >
The “for” and “echo” in the following example are not font-locked
in > shell-script mode, despite being syntactically valid. (From my > experience,
the “>&2 echo ...” idiom is quite comm [...]
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: 45390
Cc: 45390 <at> debbugs.gnu.org
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 (---)
Dario Gjorgjevski <dario.gjorgjevski@HIDDEN> writes:
> The =E2=80=9Cfor=E2=80=9D and =E2=80=9Cecho=E2=80=9D in the following exa=
mple are not font-locked in
> shell-script mode, despite being syntactically valid. (From my
> experience, the =E2=80=9C>&2 echo ...=E2=80=9D idiom is quite common in p=
ractice, too.)
>
> >/dev/null for i in {1..5} ; do
> echo $i
> done
> >&2 echo 'Error!'
>
> Additionally, the =E2=80=9Cfor=E2=80=9D and its =E2=80=9Cdone=E2=80=9D ar=
e not matched so the SMIE
> grammar also needs fixing.
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
I'm unable to reproduce most of this -- do/done seem to be matched, and
echo is font-locked. (I tried this in Emacs 25.1 -> Emacs 29.) The one
thing I can reproduce is the missing font-locking of the "for" keyword.
--=20
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug-gnu-emacs@HIDDEN:bug#45390; Package emacs.
Full text available.
Received: (at submit) by debbugs.gnu.org; 23 Dec 2020 10:33:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 23 05:33:28 2020
Received: from localhost ([127.0.0.1]:52153 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1ks1SR-0003tR-UY
for submit <at> debbugs.gnu.org; Wed, 23 Dec 2020 05:33:28 -0500
Received: from lists.gnu.org ([209.51.188.17]:57590)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <dario.gjorgjevski@HIDDEN>) id 1ks1SP-0003tD-MF
for submit <at> debbugs.gnu.org; Wed, 23 Dec 2020 05:33:26 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:45802)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <dario.gjorgjevski@HIDDEN>)
id 1ks1SP-0007Ms-Df
for bug-gnu-emacs@HIDDEN; Wed, 23 Dec 2020 05:33:25 -0500
Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:47054)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from <dario.gjorgjevski@HIDDEN>)
id 1ks1SM-00088F-9r
for bug-gnu-emacs@HIDDEN; Wed, 23 Dec 2020 05:33:25 -0500
Received: by mail-wr1-x432.google.com with SMTP id d13so18094290wrc.13
for <bug-gnu-emacs@HIDDEN>; Wed, 23 Dec 2020 02:33:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=from:to:subject:date:message-id:mime-version
:content-transfer-encoding;
bh=bqdLD79+4rPyUF5tLN+cjco/PKxoA1CGscWXN047b9Q=;
b=b+zoR30+fw9PaO9D7PJ+HFOh0Az4Ig0AtFxmEGzw2dfX+DqP+oE4TmTmK7i42ZIRX7
BP69u7Zi+D+KTFH4bzeSbgRfkopNwV8XmvoBXHVRK/KK0KgyGRVP9C0z50EoNjSwrTXO
1a0MrrGtp8KsA4py05bnMF38SS4qmWcMHCctDLcFpQqZfG+/TTRGytEglZoUuXJgAFTz
O3ZRm+JUUUu5M8w4Wfgdj85bLXBVodwwLNzjfoEWQK6u78bAi2WJdbIXkfaQP5oLZINg
0vooSJ+k7OENEmcBAWzaCrf/F59mcDnAxKAy/OPUReIYvhiWAxafcK9sEqexwusAupnE
yt0Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:to:subject:date:message-id:mime-version
:content-transfer-encoding;
bh=bqdLD79+4rPyUF5tLN+cjco/PKxoA1CGscWXN047b9Q=;
b=dc1YXuowviT/GEuJgFxTyxev+gQ91rXzl0aZ8Ld31taWrvJenUnbSYRWyL9u+1aiZx
IMuG2A8MQLyGeyoubaVQIW2PER50fsUWB1vBkjhsA0h0x7boD15AmrQJRqC5pmgiOw2v
oo+2yfcnrAU5pODiiAyNgjMUvNnQ2k8Gw3uM4eaLQpwxjkK21cWLVlKCNj2lIJsMPy52
xHrGhhRNjQO3EepbLtaa774LlrKCj549Yl4gdYxGSgy3vnR1lLmSOhoNO6qv3z9P10xl
eb101wONgO+D0Qxf41TuCCFuThBcguvtHIJ1OGEU6IAelEWmL9Q5eSqxUpKW4JsOrndw
ER/A==
X-Gm-Message-State: AOAM531HCE+RBwg9Lc3FTJ6TtTzr/lDPYlU8JAufyBZngciMIznOdSaS
II6Im+yOO/I2ZEr/OnXr0iJogXh47sg=
X-Google-Smtp-Source: ABdhPJx6cQp0ou7W7i4imolMmbhQkyKQBctzKx3ievuEpilWI+JZN0ctrUELHxhQcy9MX+wKJABLtg==
X-Received: by 2002:a5d:4d50:: with SMTP id a16mr28055236wru.43.1608719599184;
Wed, 23 Dec 2020 02:33:19 -0800 (PST)
Received: from ZALANDO-31298
(p200300e977215071246000c1866e550b.dip0.t-ipconnect.de.
[2003:e9:7721:5071:2460:c1:866e:550b])
by smtp.gmail.com with ESMTPSA id h5sm36085511wrp.56.2020.12.23.02.33.18
for <bug-gnu-emacs@HIDDEN>
(version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256);
Wed, 23 Dec 2020 02:33:18 -0800 (PST)
From: Dario Gjorgjevski <dario.gjorgjevski@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: Shell-script mode =?utf-8?Q?doesn=E2=80=99t?= like redirection at
beginning of command
Date: Wed, 23 Dec 2020 11:33:18 +0100
Message-ID: <fv2zojpn30zua9.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2a00:1450:4864:20::432;
envelope-from=dario.gjorgjevski@HIDDEN; helo=mail-wr1-x432.google.com
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, FREEMAIL_FROM=0.001,
RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
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.3 (--)
The =E2=80=9Cfor=E2=80=9D and =E2=80=9Cecho=E2=80=9D in the following examp=
le are not font-locked in
shell-script mode, despite being syntactically valid. (From my
experience, the =E2=80=9C>&2 echo ...=E2=80=9D idiom is quite common in pra=
ctice, too.)
>/dev/null for i in {1..5} ; do
echo $i
done
>&2 echo 'Error!'
Additionally, the =E2=80=9Cfor=E2=80=9D and its =E2=80=9Cdone=E2=80=9D are =
not matched so the SMIE
grammar also needs fixing.
Best regards,
Dario
--=20
$ keyserver=3Dhkps://hkps.pool.sks-keyservers.net
$ keyid=3D744A4F0B4F1C9371
$ gpg --keyserver $keyserver --search-keys $keyid
Dario Gjorgjevski <dario.gjorgjevski@HIDDEN>:bug-gnu-emacs@HIDDEN.
Full text available.bug-gnu-emacs@HIDDEN:bug#45390; Package emacs.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.