From: smiley@icebubble.org
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: [9fans] anchors broken in the g command in sam on p9p?
Date: Wed, 21 Aug 2013 05:11:49 +0000 [thread overview]
Message-ID: <861u5nbpbe.fsf@cmarib.ramside> (raw)
Maybe someone here can help me make sense of this simple sam session:
,c
this is a file, one of
many files with singular
and/or plurals
.
,y/ / g/.+s$/ p
plurals
I would expect that to have responded with "thisfilesplurals".
According to the docs, g/.+s$/ should check that dot ends with "s".
,y/ / g/^[ao].*/ p
singular
and/or
I would have thought that would return "aoneof".
It looks as if ^ and $ are acting as \n.
What am I missing?
--
+---------------------------------------------------------------+
|Smiley <smiley@icebubble.org> PGP key ID: BC549F8B |
|Fingerprint: 9329 DB4A 30F5 6EDA D2BA 3489 DAB7 555A BC54 9F8B|
+---------------------------------------------------------------+
next reply other threads:[~2013-08-21 5:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-21 5:11 smiley [this message]
2013-08-21 6:45 ` Rob Pike
2013-08-21 17:19 ` smiley
2013-08-22 6:24 ` Rudolf Sykora
2013-08-22 9:35 ` Rob Pike
2013-08-22 17:03 ` smiley
2013-08-25 7:58 ` Erez Schatz
2013-09-02 0:52 ` smiley
2013-08-21 20:14 ` Rudolf Sykora
2013-08-21 20:23 ` Rudolf Sykora
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=861u5nbpbe.fsf@cmarib.ramside \
--to=smiley@icebubble.org \
--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).