From 9b91846ce46883d5478ab381c71245e12498a931 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Thu, 16 Sep 2010 22:31:03 +0000 Subject: + Add the SCRIPT environmental variable to the sub-shell. Its value is the name of the typescript file. + Add the 'command' argument (if supplied on the command line) to the typescript file. This creates a more complete typescript when invoked this way - more equal to invoking script without supplying the 'command' argument. --- usr.bin/script/script.1 | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'usr.bin/script/script.1') diff --git a/usr.bin/script/script.1 b/usr.bin/script/script.1 index 1c93b3e48a15e..08ad643d5774f 100644 --- a/usr.bin/script/script.1 +++ b/usr.bin/script/script.1 @@ -117,6 +117,19 @@ The results are meant to emulate a hardcopy terminal, not an addressable one. The following environment variable is utilized by .Nm : .Bl -tag -width SHELL +.It Ev SCRIPT +The +.Ev SCRIPT +environment variable is added to the sub-shell. +If +.Ev SCRIPT +already existed in the users environment, +its value is overwritten within the sub-shell. +The value of +.Ev SCRIPT +is the name of the +.Ar typescript +file. .It Ev SHELL If the variable .Ev SHELL -- cgit v1.3