9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Edit X// and with a pipe in plan9port?
@ 2017-06-28 17:14 James A. Robinson
  0 siblings, 0 replies; only message in thread
From: James A. Robinson @ 2017-06-28 17:14 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 741 bytes --]

So let's say I have an Edit line

Edit ,x,(^//.+\n)+(const|func|type|var) , x,^(// [^ \t].*\n|//\n)+,|sed
's:^//::'|fmt|sed 's:^://:'

that I can use in a tag to reformat comments in a body.  I noticed that
while it's possible to run an Edit with an X from a separate body if I use
Acme's sam commands:

Edit X/.go$/  ,x,(^//.+\n)+(const|func|type|var) , x,^(// [^
\t].*\n|//\n)+,p

an attempt to run the  pipe command via an X:

Edit X/.go$/ ,x,(^//.+\n)+(const|func|type|var) , x,^(// [^
\t].*\n|//\n)+,|sed 's:^//::'|fmt|sed 's:^://:'

will crash acme:

$ /usr/local/plan9/bin/acme
/usr/local/plan9/bin/acme: qunlock pc=0x7fbc98900002 owner=0 self=108727000
oops
Abort trap: 6

Anyone ever look into this?

Jim

[-- Attachment #2: Type: text/html, Size: 1143 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-28 17:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-28 17:14 [9fans] Edit X// and with a pipe in plan9port? James A. Robinson

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