9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Stuart Morrow <morrow.stuart@gmail.com>
To: 9fans <9fans@9fans.net>
Subject: Re: [9fans] A few more questions about sam
Date: Fri, 6 Aug 2021 19:20:58 +0000	[thread overview]
Message-ID: <CABB-WO9PWsrAEG0TQSE+7-qU5HUqx-NP0aVhYvjGuFhXMOnB-w@mail.gmail.com> (raw)
In-Reply-To: <3D16C844452D60A3B65C62587C724AE3@eigenstate.org>

On 06/08/2021, ori@eigenstate.org <ori@eigenstate.org> wrote:
> man 6 regexp: http://man.9front.org/6/regexp

I wonder if it would be good if libregexp itself could look for a
fixed string the way Plan 9 grep does: '*foo' is foo.

I've found myself wanting this in Mothra. Can't remember the
circumstance. It might be even more useful in other programs.

Sam and Acme implement regex by themselves so it still wouldn't be
universal in the system.

Might create problems in mk (if anywhere),

but if it works everywhere I don't see what there is to lose.

Nothing that runs, say, sed from within APE is going to be attempting
to start a regex with * in the first place, so that's something that
need not be worried about.

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T3107cd3bc536dc63-M4b28d60fa00554b77085a929
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

      parent reply	other threads:[~2021-08-06 19:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-05 16:12 revcomninos
2021-08-05 19:42 ` umbraticus
2021-08-06  0:22   ` fwrm via 9fans
2021-08-06  7:45     ` revcomninos
2021-08-06  9:20     ` revcomninos
2021-08-06 15:04 ` ori
2021-08-06 17:22   ` revcomninos
2021-08-06 19:20   ` Stuart Morrow [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABB-WO9PWsrAEG0TQSE+7-qU5HUqx-NP0aVhYvjGuFhXMOnB-w@mail.gmail.com \
    --to=morrow.stuart@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).