Back this change out. It's just not worth arguing over and any further emails

I get on this topic will go straight to /dev/null.  This is absolutely the
last word on this topic you'll see from me.  Too much time has already been
wasted.
This commit is contained in:
Jordan K. Hubbard 1995-08-03 05:44:46 +00:00
parent 95319e1733
commit 6186bd5dc7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9875
2 changed files with 4 additions and 35 deletions

View file

@ -220,15 +220,10 @@ and
.Em \&lm
may include the character sequence
.Em \&%h
to include the hostname,
or
.Em \&%t
to obtain the tty name,
.Em \&%s
to obtain the OS type (FreeBSD),
.Em \&%r
to obtain the OS release string or
.Em \&%m
to obtain the machine architecture type.
to obtain
the hostname or tty name respectively.
.Pf ( Em %%
obtains a single '%' character.)
The hostname is normally obtained from the system,

View file

@ -56,7 +56,6 @@ static char sccsid[] = "@(#)main.c 5.16 (Berkeley) 3/27/91";
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <sys/utsname.h>
#include "gettytab.h"
#include "pathnames.h"
@ -455,7 +454,6 @@ putf(cp)
break;
case 'h':
case 'n':
puts(editedhost);
break;
@ -466,32 +464,8 @@ putf(cp)
(void)time(&t);
(void)strftime(db, sizeof(db), fmt, localtime(&t));
puts(db);
break;
}
break;
case 's': {
struct utsname name;
if (uname(&name) != -1)
puts(name.sysname);
}
break;
case 'r': {
struct utsname name;
if (uname(&name) != -1)
puts(name.release);
}
break;
case 'm': {
struct utsname name;
if (uname(&name) != -1)
puts(name.machine);
}
break;
case '%':
putchr('%');