9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] anchors broken in the g command in sam on p9p?
@ 2013-08-21  5:11 smiley
  2013-08-21  6:45 ` Rob Pike
  2013-08-21 20:14 ` Rudolf Sykora
  0 siblings, 2 replies; 10+ messages in thread
From: smiley @ 2013-08-21  5:11 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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|
+---------------------------------------------------------------+



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-09-02  0:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-21  5:11 [9fans] anchors broken in the g command in sam on p9p? smiley
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

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).