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) =* mv yes (-i)
=* nice yes none =* nice yes none
= nl no -d, -f, -h, -l, -n, -p, -v, -w = nl no -d, -f, -h, -l, -n, -p, -v, -w
= nohup yes none =* nohup yes none
paste yes none paste yes none
= printenv non-posix none = printenv non-posix none
printf stolen stolen printf stolen stolen

45
nohup.1
View File

@ -1,16 +1,29 @@
.TH NOHUP 1 sbase\-VERSION .Dd January 28, 2015
.SH NAME .Dt NOHUP 1 sbase\-VERSION
nohup \- run a command immune to hangups .Sh NAME
.SH SYNOPSIS .Nm nohup
.B nohup .Nd run command immune to hangups
.IR command ... .Sh SYNOPSIS
.SH DESCRIPTION .Nm nohup
.B nohup .Ar cmd
runs the given command with the .Op Ar arg ...
.I HUP .Sh DESCRIPTION
signal set to be ignored. If stdout is a terminal, it is appended to .Nm
.I nohup.out runs
in the current working directory; if stderr is a terminal, it is redirected to .Ar cmd
stdout. with the
.SH SEE ALSO .Em HUP
.IR signal (7) 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 static void
usage(void) usage(void)
{ {
eprintf("usage: %s command [argument...]\n", argv0); eprintf("usage: %s cmd [arg ...]\n", argv0);
} }
int int