diff options
author | Benno Schulenberg | 2016-03-17 10:39:12 +0100 |
---|---|---|
committer | Karel Zak | 2016-03-17 12:18:53 +0100 |
commit | c8a550a178fe972e51dd14bbbc60a05639499baa (patch) | |
tree | 12de26b3db4f26df1c176ce4106d5ad4bd10f2bc /term-utils/script.1 | |
parent | lscpu: improve spacing and spelling in the man page (diff) | |
download | kernel-qcow2-util-linux-c8a550a178fe972e51dd14bbbc60a05639499baa.tar.gz kernel-qcow2-util-linux-c8a550a178fe972e51dd14bbbc60a05639499baa.tar.xz kernel-qcow2-util-linux-c8a550a178fe972e51dd14bbbc60a05639499baa.zip |
script: tweak spacing and wording, and restore filling in the man page
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Diffstat (limited to 'term-utils/script.1')
-rw-r--r-- | term-utils/script.1 | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/term-utils/script.1 b/term-utils/script.1 index d4f5c0048..8735664bc 100644 --- a/term-utils/script.1 +++ b/term-utils/script.1 @@ -124,12 +124,13 @@ meant to emulate a hardcopy terminal. .PP It is not recommended to run .B script -in non-interactive shells. The inner shell of +in non-interactive shells. The inner shell of .B script -is always interactive, and this could lead to unexpected results. If you use +is always interactive, and this could lead to unexpected results. If you use .B script in the shell initialization file, you have to avoid entering an infinite -loop. Use e. g. profile file, which is read by login shells only: +loop. You can use for example the \fB\%.profile\fR file, which is read +by login shells only: .RS .RE .sp @@ -142,6 +143,7 @@ if test -t 0 ; then fi .fi .RE +.ad .PP You should also avoid use of script in command pipes, as .B script @@ -178,11 +180,11 @@ in the log file, including linefeeds and backspaces. This is not what the naive user expects. .PP .B script -is primarily designed for interactive terminal sessions, it's possible that when stdin -is not a terminal (for example "echo foo | script") then all session hung ups, because -interactive shell within script session miss EOF and the +is primarily designed for interactive terminal sessions. When stdin +is not a terminal (for example: \fBecho foo | script\fR), then the session +can hang, because the interactive shell within the script session misses EOF and .B script -has no clue when close the session. See the NOTES section for more information. +has no clue when to close the session. See the \fBNOTES\fR section for more information. .SH AVAILABILITY The script command is part of the util-linux package and is available from .UR ftp://\:ftp.kernel.org\:/pub\:/linux\:/utils\:/util-linux/ |