diff options
author | Igor Sobrado <sobrado@cvs.openbsd.org> | 2009-10-15 10:08:44 +0000 |
---|---|---|
committer | Igor Sobrado <sobrado@cvs.openbsd.org> | 2009-10-15 10:08:44 +0000 |
commit | 071c67a432b2772d433712002c7698df9ff0087f (patch) | |
tree | 185033f1b6a233a97e5bbe580aca8afbaddb8b3c | |
parent | 9fa83d16140035276b5a7858da72732814ee1dab (diff) |
ident(1) does not require arguments; while here, note that this
program uses the standard input, not the standard output, when no
filenames are provided.
ok xsa@
-rw-r--r-- | usr.bin/rcs/ident.1 | 10 | ||||
-rw-r--r-- | usr.bin/rcs/ident.c | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/rcs/ident.1 b/usr.bin/rcs/ident.1 index 9c5a7ce5d7b..b275fc70e99 100644 --- a/usr.bin/rcs/ident.1 +++ b/usr.bin/rcs/ident.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ident.1,v 1.8 2007/05/31 19:20:14 jmc Exp $ +.\" $OpenBSD: ident.1,v 1.9 2009/10/15 10:08:43 sobrado Exp $ .\" .\" Copyright (c) 2005 Xavier Santolaria <xsa@openbsd.org> .\" All rights reserved. @@ -14,7 +14,7 @@ .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: October 15 2009 $ .Dt IDENT 1 .Os .Sh NAME @@ -23,13 +23,13 @@ .Sh SYNOPSIS .Nm .Op Fl qV -.Ar +.Op Ar .Sh DESCRIPTION The .Nm program searches for the pattern $keyword:...$ from the -.Ar file -specified as argument. +.Ar files +specified as argument (or standard input if none are given). See the .Sx KEYWORD SUBSTITUTION section of diff --git a/usr.bin/rcs/ident.c b/usr.bin/rcs/ident.c index 38a80ac12a5..6f9db86ec1f 100644 --- a/usr.bin/rcs/ident.c +++ b/usr.bin/rcs/ident.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ident.c,v 1.25 2007/09/09 17:22:34 ray Exp $ */ +/* $OpenBSD: ident.c,v 1.26 2009/10/15 10:08:43 sobrado Exp $ */ /* * Copyright (c) 2005 Xavier Santolaria <xsa@openbsd.org> * All rights reserved. @@ -96,7 +96,7 @@ ident_file(const char *filename, FILE *fp) if (filename != NULL) printf("%s:\n", filename); else - filename = "standard output"; + filename = "standard input"; for (c = 0; c != EOF; c = getc(fp)) { if (feof(fp) || ferror(fp)) @@ -165,5 +165,5 @@ out: void ident_usage(void) { - fprintf(stderr, "usage: ident [-qV] file ...\n"); + fprintf(stderr, "usage: ident [-qV] [file ...]\n"); } |