summaryrefslogtreecommitdiffstats
path: root/bin/hostname/hostname.1
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2006-12-08 07:19:51 +0000
committerkientzle <kientzle@FreeBSD.org>2006-12-08 07:19:51 +0000
commitdd35a61767f18a95a7b9381850750ca034a944ed (patch)
tree73b1d0d714b3f6a038a316ac17ef2ba1872e72ea /bin/hostname/hostname.1
parent5ed0fdbeeab5ecad17058c1294937c7ac45118a7 (diff)
downloadFreeBSD-src-dd35a61767f18a95a7b9381850750ca034a944ed.zip
FreeBSD-src-dd35a61767f18a95a7b9381850750ca034a944ed.tar.gz
Support the "-f" option by simply ignoring it.
This allows script compatibility with Linux, whose "hostname" is the same as BSD "hostname -s". With this change, "hostname -f" is the same on both systems. MFC after: 7 days
Diffstat (limited to 'bin/hostname/hostname.1')
-rw-r--r--bin/hostname/hostname.16
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/hostname/hostname.1 b/bin/hostname/hostname.1
index 5cf4534..62df0df 100644
--- a/bin/hostname/hostname.1
+++ b/bin/hostname/hostname.1
@@ -29,7 +29,7 @@
.\" @(#)hostname.1 8.2 (Berkeley) 4/28/95
.\" $FreeBSD$
.\"
-.Dd December 5, 2006
+.Dd December 7, 2006
.Dt HOSTNAME 1
.Os
.Sh NAME
@@ -37,6 +37,7 @@
.Nd set or print name of current host system
.Sh SYNOPSIS
.Nm
+.Op Fl f
.Op Fl s
.Op Ar name-of-host
.Sh DESCRIPTION
@@ -56,6 +57,9 @@ variable in
.Pp
Options:
.Bl -tag -width flag
+.It Fl f
+Include domain information in the printed name.
+This is the default behavior.
.It Fl s
Trim off any domain information from the printed
name.
OpenPOWER on IntegriCloud