sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 7b6d918b783491b6b36cb12affee61e6be39f824
parent 20b5d7c0d4916dfa42f0cbf76dbe5b168af715aa
Author: FRIGN <dev@frign.de>
Date:   Wed, 28 Jan 2015 23:55:57 +0100

Add mandoc-manpage for nohup(1)

and mark it as finished in README.

Diffstat:
MREADME | 2+-
Mnohup.1 | 45+++++++++++++++++++++++++++++----------------
Mnohup.c | 2+-
3 files changed, 31 insertions(+), 18 deletions(-)

diff --git a/README b/README @@ -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 diff --git a/nohup.1 b/nohup.1 @@ -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. diff --git a/nohup.c b/nohup.c @@ -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