Subject: misc/26191: missing options in the usage of at(1) and batch(1)
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hira@po6.nsk.ne.jp>
List: netbsd-bugs
Date: 07/08/2004 13:32:20
>Number: 26191
>Category: misc
>Synopsis: missing options in the usage of at(1) and batch(1)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Thu Jul 08 04:33:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Kouichirou Hiratsuka
>Release: NetBSD 2.0G
>Organization:
>Environment:
System: NetBSD firefly.localdomain 2.0G NetBSD 2.0G (FIREFLY.MP) #19: Wed Jul 7 22:20:57 JST 2004 root@firefly.localdomain:/usr/src/sys/arch/i386/compile/FIREFLY.MP i386
Architecture: i386
Machine: i386
>Description:
-l, -d, -r, -b and -v are missing in the usage of at(1).
-q and -v are missing in the usage of batch(1).
>How-To-Repeat:
compare usage with manpage
>Fix:
Index: at/panic.c
===================================================================
RCS file: /cvs/cvsroot/src/usr.bin/at/panic.c,v
retrieving revision 1.10
diff -u -r1.10 panic.c
--- at/panic.c 5 Jan 2004 23:23:34 -0000 1.10
+++ at/panic.c 7 Jul 2004 18:05:50 -0000
@@ -99,12 +99,12 @@
{
/* Print usage and exit. */
- (void)fprintf(stderr, "usage: at [-V] [-q x] [-f file] [-m] -t [[CC]YY]MMDDhhmm[.SS]\n"
- " at [-V] [-q x] [-f file] [-m] timespec\n"
+ (void)fprintf(stderr, "usage: at [-V] [-q x] [-f file] [-mldrbv] -t [[CC]YY]MMDDhhmm[.SS]\n"
+ " at [-V] [-q x] [-f file] [-mldrbv] timespec\n"
" at [-V] -c job [job ...]\n"
" atq [-V] [-q x] [-v]\n"
" atrm [-V] job [job ...]\n"
- " batch [-V] [-f file] [-m] [-t [[CC]YY]MMDDhhmm[.SS]]\n"
- " batch [-V] [-f file] [-m] [timespec]\n");
+ " batch [-V] [-q x] [-f file] [-mv] [-t [[CC]YY]MMDDhhmm[.SS]]\n"
+ " batch [-V] [-q x] [-f file] [-mv] [timespec]\n");
exit(EXIT_FAILURE);
}
>Release-Note:
>Audit-Trail:
>Unformatted: