Permalink
Browse files

Document -l COMMAND and -L in the man page.

  • Loading branch information...
1 parent 0b783ca commit 22b830d4d7a50bab4382285ff9f6cc5cd6178f27 @nelhage committed Aug 16, 2012
Showing with 18 additions and 2 deletions.
  1. +18 −2 reptyr.1
View
@@ -6,7 +6,7 @@ reptyr \- Reparent a running program to a new terminal
.B reptyr
.I PID
-.B reptyr \-l
+.B reptyr \-l|\-L [COMMAND [ARGS]]
.SH DESCRIPTION
@@ -45,14 +45,30 @@ the shell without doing so.
.SH OPTIONS
-.B \-l
+.B \-l, \-L [COMMAND [ARGS]]
.IP
Instead of attaching to a new process, create a new pty pair, proxy the master
end to the current terminal, and then print the name of the slave pty. This can
be passed to e.g.
.B gdb\'s
.I set inferior-tty
option.
+
+If an optional
+.B COMMAND
+and
+.B ARGS
+are passed in conjunction with
+.B -l,
+that command will be executed as a child of
+.B reptyr
+with the
+.B REPTYR_PTY
+environment variable set to the name of the slave pty. If
+.B -L
+is used instead of
+.B -l,
+then fds 0-2 of the child will also be redirected to point to the slave.
.LP
.B \-s

0 comments on commit 22b830d

Please sign in to comment.