From 01195fa7e509c84a69652761ce7b58776eb3deff Mon Sep 17 00:00:00 2001 From: FRIGN Date: Sun, 1 Feb 2015 00:03:03 +0100 Subject: [PATCH] Finish up hostname(1) --- README | 2 +- hostname.1 | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README b/README index 73cde37..f13337a 100644 --- a/README +++ b/README @@ -34,7 +34,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support, #* fold yes none =* grep yes none =* head yes none -= hostname non-posix none +=* hostname non-posix none =* kill yes none =* link yes none =* ln yes none diff --git a/hostname.1 b/hostname.1 index 4e305fa..421a753 100644 --- a/hostname.1 +++ b/hostname.1 @@ -3,13 +3,16 @@ .Os sbase .Sh NAME .Nm hostname -.Nd set or print name of current host system +.Nd set or print host name .Sh SYNOPSIS .Nm .Op Ar name .Sh DESCRIPTION .Nm -sets or prints the name of the current host. If no argument is given, -the name of the current host is printed. +sets the current host name to +.Ar name . +If no +.Ar name +is given, the current host name is written to stdout. .Sh SEE ALSO .Xr hostname 7