From 54e30b41907dbbf0b3c62cc2ea9d3322eb451019 Mon Sep 17 00:00:00 2001 From: mike Date: Wed, 20 Mar 2002 08:59:20 +0000 Subject: When invoked with no file arguments, display usage. Submitted by: Tim J. Robbins PR: 36074 Use new ID scheme. --- usr.bin/paste/paste.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/paste/paste.c b/usr.bin/paste/paste.c index a197119..cad7bef 100644 --- a/usr.bin/paste/paste.c +++ b/usr.bin/paste/paste.c @@ -40,13 +40,14 @@ static const char copyright[] = The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ -#ifndef lint #if 0 +#ifndef lint static char sccsid[] = "@(#)paste.c 8.1 (Berkeley) 6/6/93"; -#endif -static const char rcsid[] = - "$FreeBSD$"; #endif /* not lint */ +#endif + +#include +__FBSDID("$FreeBSD$"); #include #include @@ -88,6 +89,8 @@ main(argc, argv) argc -= optind; argv += optind; + if (*argv == NULL) + usage(); if (!delim) { delimcnt = 1; delim = "\t"; -- cgit v1.1