diff options
Diffstat (limited to 'term-utils/script.1')
-rw-r--r-- | term-utils/script.1 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/term-utils/script.1 b/term-utils/script.1 index e130c77d9..6b566fe5e 100644 --- a/term-utils/script.1 +++ b/term-utils/script.1 @@ -128,7 +128,8 @@ in non-interactive shells. The inner shell of .B script is always interactive, and this could lead to unexpected results. If you use .B script -in the shell initialization file (profile), you should use e. g. +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: .RS .RE .sp @@ -137,10 +138,15 @@ in the shell initialization file (profile), you should use e. g. .nf if test -t 0 ; then script + exit fi .fi .RE .PP +You should also avoid use of script in command pipes, as +.B script +can read more input than you would expect. +.PP .SH ENVIRONMENT The following environment variable is utilized by .BR script : |