Importing usr.bin/yes
Change-Id: Ia76d7ce9c6b2bf7523d2ecbc6470e3e1e7ab5ee5
This commit is contained in:
@@ -21,7 +21,7 @@ MAN= ash.1 at.1 banner.1 basename.1 \
|
||||
term.1 termcap.1 tget.1 time.1 tr.1 true.1 \
|
||||
truncate.1 tty.1 umount.1 uname.1 unexpand.1 \
|
||||
uud.1 uue.1 vol.1 wc.1 whereis.1 which.1 \
|
||||
write.1 xargs.1 yap.1 yes.1 linkfarm.1 pkg_view.1
|
||||
write.1 xargs.1 yap.1 linkfarm.1 pkg_view.1
|
||||
|
||||
MLINKS += ash.1 sh.1
|
||||
MLINKS += ash.1 ..1
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
.TH YES 1
|
||||
.SH NAME
|
||||
yes \- an endless stream of the same word
|
||||
.SH SYNOPSIS
|
||||
\fByes\fR [\fIanswer\fR]\fR
|
||||
.br
|
||||
.de FL
|
||||
.TP
|
||||
\\fB\\$1\\fR
|
||||
\\$2
|
||||
..
|
||||
.de EX
|
||||
.TP 20
|
||||
\\fB\\$1\\fR
|
||||
# \\$2
|
||||
..
|
||||
.SH EXAMPLES
|
||||
.TP 20
|
||||
.B yes | script
|
||||
# Answer yes to all questions from the script
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
\fIYes\fP sends out an endless stream of y's, each on one line. One
|
||||
uses it to automatically say "yes" to all questions a command may ask.
|
||||
This is useful for commands that ask too many "Are you sure?" questions.
|
||||
The optional argument makes \fIyes\fP use \fIanswer\fP as the word to
|
||||
print instead of a single y character.
|
||||
Reference in New Issue
Block a user