Add mandoc-manpage for nohup(1)

and mark it as finished in README.
This commit is contained in:
FRIGN 2015-01-28 23:55:57 +01:00
parent 20b5d7c0d4
commit 7b6d918b78
3 changed files with 31 additions and 18 deletions

2
README
View File

@ -48,7 +48,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support,
=* mv yes (-i)
=* nice yes none
= nl no -d, -f, -h, -l, -n, -p, -v, -w
= nohup yes none
=* nohup yes none
paste yes none
= printenv non-posix none
printf stolen stolen

45
nohup.1
View File

@ -1,16 +1,29 @@
.TH NOHUP 1 sbase\-VERSION
.SH NAME
nohup \- run a command immune to hangups
.SH SYNOPSIS
.B nohup
.IR command ...
.SH DESCRIPTION
.B nohup
runs the given command with the
.I HUP
signal set to be ignored. If stdout is a terminal, it is appended to
.I nohup.out
in the current working directory; if stderr is a terminal, it is redirected to
stdout.
.SH SEE ALSO
.IR signal (7)
.Dd January 28, 2015
.Dt NOHUP 1 sbase\-VERSION
.Sh NAME
.Nm nohup
.Nd run command immune to hangups
.Sh SYNOPSIS
.Nm nohup
.Ar cmd
.Op Ar arg ...
.Sh DESCRIPTION
.Nm
runs
.Ar cmd
with the
.Em HUP
signal set to be ignored.
.Pp
If stdout is a terminal, it is appended to
.Em nohup.out
in the current working directory.
If stderr is a terminal, it is redirected to stdout.
.Sh SEE ALSO
.Xr signal 7
.Sh STANDARDS
The
.Nm
utility is compliant with the
.St -p1003.1-2008
specification.

View File

@ -13,7 +13,7 @@ enum { Error = 127, Found = 126 };
static void
usage(void)
{
eprintf("usage: %s command [argument...]\n", argv0);
eprintf("usage: %s cmd [arg ...]\n", argv0);
}
int