~robby on Nostr: npub1sg4rc…7xslc Semantically I am thinking of something like: a | b | c 1| d 1| e ...
npub1sg4rcvkxkp3sx7f0ex8rtdd9ylcdd2fchtfm22fy45h4w02p306qq7xslc (npub1sg4…xslc) Semantically I am thinking of something like:
a | b | c 1| d 1| e 2| f
which would pipe the output of a into b, and the output of b into c, d, and e, and the output of c into f. This would intermix the output of d, e, and f into stdout because nothing is capturing their outputs.
A similar indexing could be used for redirection.
a | b | c 1| d 1| e 2| f 3> d.log 4> e.log
This would write the stdout of d and e to d.log and e.log respectively, and only the output of f would be displayed.
As for actual syntax to do this, I think the pipe-bracket syntax you use for selecting a fd to pipe would actually be perfect for this. I am having a hard time thinking of another syntax that I think would be a great fit for this feature.
Published at
2023-09-23 16:30:37Event JSON
{
"id": "6b458bfd42afa9e1163c43c97c08287ab220a02457e397c99d3f9d80b2b18658",
"pubkey": "e5b72764c347d5efd0923dca155790a098d3e7356320eeabc375635afe84eeae",
"created_at": 1695486637,
"kind": 1,
"tags": [
[
"p",
"822a3c32c6b06303792fc98e35b5a527f0d6a938bad3b52924ad2f573d418bf4",
"wss://relay.mostr.pub"
],
[
"p",
"05bbadaea41d30c3cf3b7fb1027622eb00cca66635fc9047053df7f9a54cb0c7",
"wss://relay.mostr.pub"
],
[
"e",
"45973354d6bc24201996b4d3e244ce0cb02d38d8fca31f25b0c67ee5f1c76628",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://zoinks.one/objects/28d91765-1dc4-4398-a3f8-9d999a3436d7",
"activitypub"
]
],
"content": "nostr:npub1sg4rcvkxkp3sx7f0ex8rtdd9ylcdd2fchtfm22fy45h4w02p306qq7xslc Semantically I am thinking of something like:\n\na | b | c 1| d 1| e 2| f\n\n\nwhich would pipe the output of a into b, and the output of b into c, d, and e, and the output of c into f. This would intermix the output of d, e, and f into stdout because nothing is capturing their outputs.\n\nA similar indexing could be used for redirection.\n\na | b | c 1| d 1| e 2| f 3\u003e d.log 4\u003e e.log\n\n\nThis would write the stdout of d and e to d.log and e.log respectively, and only the output of f would be displayed.\n\nAs for actual syntax to do this, I think the pipe-bracket syntax you use for selecting a fd to pipe would actually be perfect for this. I am having a hard time thinking of another syntax that I think would be a great fit for this feature.",
"sig": "01dc8975954522e05573f007590209cd2307732d5071620b549baaea65a44888e9755d5ae59a3ab77e02793c959a4b8d8bed8215541f97d21cec346895302cd2"
}