sbase

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

commit 0bb5f5f45352a4011627ed71d222a224e504669a
parent 5c852e5c3c8f21bb3826756a82a7dfa164c91d46
Author: FRIGN <dev@frign.de>
Date:   Sun, 25 Jan 2015 22:44:47 +0100

Add mandoc-manpage for link(1)

and mark it as finished in the README.

Diffstat:
README | 2+-
link.1 | 32++++++++++++++++++--------------
link.c | 2+-
3 files changed, 20 insertions(+), 16 deletions(-)

diff --git a/README b/README @@ -36,7 +36,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support, =* head yes none = hostname non-posix none =* kill yes none -= link yes none +=* link yes none = ln yes none =* logger yes none = logname yes none diff --git a/link.1 b/link.1 @@ -1,14 +1,18 @@ -.TH LN 1 sbase\-VERSION -.SH NAME -link \- create a hard link by calling the link function -.SH SYNOPSIS -.B link -.I target -.I linkname -.P -.SH DESCRIPTION -.B link -creates a hard link to a given file, with the given name. -.SH SEE ALSO -.IR ln (1), -.IR link (2) +.Dd January 25, 2015 +.Dt LINK 1 sbase\-VERSION +.Sh NAME +.Nm link +.Ar target +.Ar name +.Sh DESCRIPTION +.Nm +creates a hard link +.Ar name +to +.Ar target . +.Sh STANDARDS +The +.Nm +utility is compliant with the +.St -p1003.1-2008 +specification. diff --git a/link.c b/link.c @@ -10,7 +10,7 @@ main(int argc, char *argv[]) argv0 = argv[0]; if (argc != 3) - eprintf("usage: %s target linkname\n", argv0); + eprintf("usage: %s target name\n", argv0); if (link(argv[1], argv[2]) < 0) eprintf("link:"); return 0;