=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/what/what.1,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- src/usr.bin/what/what.1 2014/06/03 21:20:40 1.18 +++ src/usr.bin/what/what.1 2015/01/22 19:10:17 1.19 @@ -1,4 +1,4 @@ -.\" $OpenBSD: what.1,v 1.18 2014/06/03 21:20:40 jmc Exp $ +.\" $OpenBSD: what.1,v 1.19 2015/01/22 19:10:17 krw Exp $ .\" $NetBSD: what.1,v 1.3 1994/11/17 06:59:38 jtc Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)what.1 8.1 (Berkeley) 6/6/93 .\" -.Dd $Mdocdate: June 3 2014 $ +.Dd $Mdocdate: January 22 2015 $ .Dt WHAT 1 .Os .Sh NAME @@ -51,8 +51,20 @@ or the form .Dq @(#) as inserted by the source code control system (SCCS). -It prints the remainder -of the string following this marker, up to a NUL, newline, double +.Pp +When +.Sq $ +followed by the system name is encountered +.Nm +prints the remainder of the string up to a +.Sq $ +or any non-printable character. +.Pp +When +.Dq @(#) +is encountered +.Nm +prints the remainder of the string, up to a NUL, newline, double quote, backslash, or .Sq > character. @@ -73,6 +85,10 @@ X/Open System Interfaces option of the .St -p1003.1-2008 specification. +.Pp +Processing $sysname$ sequences is an +.Ox +extension. .Sh HISTORY The .Nm