=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rcs/rcsprog.c,v retrieving revision 1.33 retrieving revision 1.34 diff -u -r1.33 -r1.34 --- src/usr.bin/rcs/rcsprog.c 2005/10/18 16:20:31 1.33 +++ src/usr.bin/rcs/rcsprog.c 2005/10/19 00:30:22 1.34 @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsprog.c,v 1.33 2005/10/18 16:20:31 xsa Exp $ */ +/* $OpenBSD: rcsprog.c,v 1.34 2005/10/19 00:30:22 joris Exp $ */ /* * Copyright (c) 2005 Jean-Francois Brousseau * All rights reserved. @@ -46,6 +46,7 @@ const char rcs_version[] = "OpenCVS RCS version 3.6"; int verbose = 1; +int pipeout = 0; int rcs_optind; char *rcs_optarg; @@ -208,9 +209,13 @@ if ((verbose == 1) && (strcmp(__progname, "rcsclean"))) { if (!strcmp(__progname, "co")) { printf("%s --> ", fpath); - if ((s = strrchr(filev, ',')) != NULL) { - *s = '\0'; - printf("%s\n", fname); + if (pipeout == 1) { + printf("standard output\n"); + } else { + if ((s = strrchr(filev, ',')) != NULL) { + *s = '\0'; + printf("%s\n", fname); + } } } else { printf("RCS file: %s\n", fpath);