1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
From: Christian Kastner <ckk@kvr.at>
Date: Fri, 25 Dec 2015 23:49:34 +0100
Subject: Improve retry prompt
Include y/n in the prompt to indicate the expected input.
Forwarded: no
Last-Update: 2015-12-25
---
crontab.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crontab.c b/crontab.c
index 015da98..0c9e2d9 100644
--- a/crontab.c
+++ b/crontab.c
@@ -638,7 +638,7 @@ again: /* Loop point for retrying edit after error */
break;
case -1:
for (;;) {
- printf("Do you want to retry the same edit? ");
+ printf("Do you want to retry the same edit? (y/n) ");
fflush(stdout);
q[0] = '\0';
(void) fgets(q, sizeof q, stdin);
|