commit 7b6d918b783491b6b36cb12affee61e6be39f824
Author: FRIGN <[email protected]>
Date:   Wed Jan 28 23:55:57 2015 +0100

    Add mandoc-manpage for nohup(1)
    
    and mark it as finished in README.

diff --git a/README b/README
index e09aab8..2530204 100644
--- 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
index 5fcda39..83cf1e2 100644
--- 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
index 48b30a4..e8195c0 100644
--- 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

Reply via email to