shithub: post

Download patch

ref: de5a561819ef32c1db7c882bf3bfd769300f68d4
parent: ed24d5e6d8896f4fa1517c9bc542a03334479363
author: kvik <kvik@a-b.xyz>
date: Sun Aug 23 06:30:28 EDT 2020

manpage: add detached rc shell example

--- a/man/1/post
+++ b/man/1/post
@@ -36,6 +36,13 @@
 	post /fd/1 output
 .EE
 .PP
+Post an rc shell:
+.EX
+	post <>{rc -i >[1=0] >[2=0]} rc
+	# attach, possibly from another namespace
+	cat /srv/rc & cat >>/srv/rc
+.EE
+.PP
 Post a file descriptor connected to
 .IR ramfs (4)
 using stdio as its 9p channel.
@@ -65,7 +72,7 @@
 To determine the highest mode with
 which the file can be opened with
 .IR post (1)
-must attempt to open the
+attempts to open the
 .I file
 up to
 three times. This may be an issue