From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=DATE_IN_PAST_03_06, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 4745 invoked from network); 22 Feb 2021 22:52:44 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 22 Feb 2021 22:52:44 -0000 Received: from mail2.protonmail.ch ([185.70.40.22]) by 1ess; Mon Feb 22 14:37:55 -0500 2021 Date: Mon, 22 Feb 2021 19:37:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1614022665; bh=m6iuzRb3YeTIEZXuLX+QK3ny+MhkYCK0avBYOfkcN/4=; h=Date:To:From:Reply-To:Subject:From; b=Wyh0OPk39bQf0oxt0vJkzITuMlHabLxekVE4Xou5X5FHvd8oroOialxnpgJulJCph hdeKde9otefQFs9SboaQSoc8tAFRUVozNzgatG9UIHI6Lg5p+u8HmOjlyLzoepItsA cLOV9S61TOB784ZHYePqib6Ny5Vl2jVExpfwvgxs= To: "9front@9front.org" <9front@9front.org> From: Philip Silva Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: RESTful extended pipelining factory hosting session interface Subject: [9front] [Patch] acme open filenames with at Reply-To: 9front@9front.org Precedence: bulk Hi! I've seen in plan9port there's a commit allowing @s in filenames: commit ac487c754e009b0f3c01c2a8ad5bda2143da4a6b Author: Russ Cox Date: Wed Dec 30 14:42:47 2020 -0500 acme: allow @ in file names For upspin and other tools that put email addresses in names. diff --git a/src/cmd/acme/look.c b/src/cmd/acme/look.c index 35667c6c..a7172b50 100644 --- a/src/cmd/acme/look.c +++ b/src/cmd/acme/look.c @@ -378,7 +378,7 @@ search(Text *ct, Rune *r, uint n) int isfilec(Rune r) { - static Rune Lx[] =3D { '.', '-', '+', '/', ':', 0 }; + static Rune Lx[] =3D { '.', '-', '+', '/', ':', '@', 0 }; if(isalnum(r)) return TRUE; if(runestrchr(Lx, r)) In the Go module paths this is used in path names actually to delimit the v= ersion. Here's a patch for this, would be great if it could get merged! diff -r 318117d314ad sys/src/cmd/acme/look.c --- a/sys/src/cmd/acme/look.c Mon Feb 22 19:27:49 2021 +0100 +++ b/sys/src/cmd/acme/look.c Mon Feb 22 20:23:07 2021 +0100 @@ -314,7 +314,7 @@ isfilec(Rune r) { if(isalnum(r)) return TRUE; - if(runestrchr(L".-+/:", r)) + if(runestrchr(L".-+/:@", r)) return TRUE; return FALSE; } Greetings, Philip