Add a flag -r' synonymous to -d' for compatibility with X/OPEN at.

This commit is contained in:
jwise 1999-05-22 05:05:11 +00:00
parent 880d4cd6bf
commit a974606cce
2 changed files with 12 additions and 8 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: at.1,v 1.10 1999/03/09 02:41:39 ross Exp $
.\" $NetBSD: at.1,v 1.11 1999/05/22 05:05:11 jwise Exp $
.\" $OpenBSD: at.1,v 1.6 1998/06/05 00:47:46 deraadt Exp $
.\" $FreeBSD: at.man,v 1.6 1997/02/22 19:54:05 peter Exp $
.Dd April 12, 1995
@ -12,7 +12,7 @@
.Op Fl V
.Op Fl q Ar queue
.Op Fl f Ar file
.Op Fl mldbv
.Op Fl mldrbv
.Ar time
.Nm at
.Op Fl V
@ -205,13 +205,16 @@ Reads the job from
rather than standard input.
.It Fl l
Is an alias for
.Nm atq.
.Nm atq .
.It Fl d
Is an alias for
.Nm atrm.
.Nm atrm .
.It Fl r
Is an alias for
.Nm atrm .
.It Fl b
Is an alias for
.Nm batch.
.Nm batch .
.It Fl v
For
.Nm atq ,

View File

@ -1,4 +1,4 @@
/* $NetBSD: at.c,v 1.12 1998/07/27 07:41:31 mycroft Exp $ */
/* $NetBSD: at.c,v 1.13 1999/05/22 05:05:11 jwise Exp $ */
/*
* at.c : Put file into atrun queue
@ -75,7 +75,7 @@ enum { ATQ, ATRM, AT, BATCH, CAT }; /* what program we want to run */
#if 0
static char rcsid[] = "$OpenBSD: at.c,v 1.15 1998/06/03 16:20:26 deraadt Exp $";
#else
__RCSID("$NetBSD: at.c,v 1.12 1998/07/27 07:41:31 mycroft Exp $");
__RCSID("$NetBSD: at.c,v 1.13 1999/05/22 05:05:11 jwise Exp $");
#endif
#endif
@ -583,7 +583,7 @@ main(argc, argv)
ATQ, ATRM, AT, BATCH, CAT
}; /* what program we want to run */
int program = AT; /* our default program */
char *options = "q:f:mvldbVc"; /* default options for at */
char *options = "q:f:mvldbrVc"; /* default options for at */
int disp_version = 0;
time_t timer;
@ -637,6 +637,7 @@ main(argc, argv)
break;
case 'd':
case 'r':
if (program != AT)
usage();