When invoked with no file arguments, display usage.

Submitted by:	Tim J. Robbins <tim@robbins.dropbear.id.au>
PR:		36074

Use new ID scheme.
This commit is contained in:
Mike Barcroft 2002-03-20 08:59:20 +00:00
parent 99a4a5a867
commit d345176dc7

View File

@ -40,13 +40,14 @@ static const char copyright[] =
The Regents of the University of California. All rights reserved.\n"; The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */ #endif /* not lint */
#ifndef lint
#if 0 #if 0
#ifndef lint
static char sccsid[] = "@(#)paste.c 8.1 (Berkeley) 6/6/93"; static char sccsid[] = "@(#)paste.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */ #endif /* not lint */
#endif
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/types.h> #include <sys/types.h>
#include <err.h> #include <err.h>
@ -88,6 +89,8 @@ main(argc, argv)
argc -= optind; argc -= optind;
argv += optind; argv += optind;
if (*argv == NULL)
usage();
if (!delim) { if (!delim) {
delimcnt = 1; delimcnt = 1;
delim = "\t"; delim = "\t";