peek(1) man page
This commit is contained in:
parent
c02b1d4d65
commit
cd14e34568
68
peek/peek.1
Normal file
68
peek/peek.1
Normal file
@ -0,0 +1,68 @@
|
||||
.TH PEEK 1
|
||||
|
||||
.SH NAME
|
||||
|
||||
peek \(en read from standard input, furtively
|
||||
|
||||
.SH SYNOPSIS
|
||||
|
||||
peek
|
||||
.RB ( -1eno )
|
||||
.RB ( -p
|
||||
.RB [ program
|
||||
.RB [ arguments... ]])
|
||||
|
||||
.SH USAGE
|
||||
|
||||
Peek reads input from standard input with terminal echo disabled, which may be
|
||||
useful to prevent secrets being spied upon by adversaries watching a user's
|
||||
screen.
|
||||
.PP
|
||||
The
|
||||
.B -1
|
||||
option limits input to a single line (stopping when the newline character is
|
||||
input).
|
||||
.PP
|
||||
The
|
||||
.B -n
|
||||
option prints ("iNcludes") the terminating character in output; this is only
|
||||
useful when combined with the
|
||||
.B -1
|
||||
option.
|
||||
.PP
|
||||
The
|
||||
.B -o
|
||||
and
|
||||
.B -e
|
||||
options configure Peek to output to standard output and/or standard error
|
||||
respectively and the
|
||||
.B -p
|
||||
option configures Peek to output to the standard input of an external program,
|
||||
e.g. a password hashing utility.
|
||||
The
|
||||
.B -p
|
||||
option is provided as a convenience and to avoid potential insecure programmer
|
||||
error in scripts.
|
||||
|
||||
.SH DIAGNOSTICS
|
||||
|
||||
Peek prints an error message and exits with the appropriate status from
|
||||
sysexits(3) if it encounters an error.
|
||||
|
||||
.SH BUGS
|
||||
|
||||
Accepting secrets in shell scripts is not adviseable.
|
||||
.PP
|
||||
The user's environment passed through to the program used with the
|
||||
.B -p
|
||||
option and their PATH environment variable is used to locate the program.
|
||||
If used in a safety-critical application it must be ensured that the
|
||||
environment with which peek is used is not compromised.
|
||||
|
||||
.SH COPYRIGHT
|
||||
|
||||
Public domain.
|
||||
|
||||
.SH SEE ALSO
|
||||
|
||||
env(1), read(1), sh(1)
|
Loading…
Reference in New Issue
Block a user