| 1 |
fix 'crontab -e' to look at $EDITOR and not $VISUAL
|
| 2 |
|
| 3 |
--- crontab.1
|
| 4 |
+++ crontab.1
|
| 5 |
@@ -27,5 +27,5 @@
|
| 6 |
specify a different user and/or crontab directory. Generally the -e
|
| 7 |
option is used to edit your crontab. crontab will use /usr/bin/vi or
|
| 8 |
-the editor specified by your VISUAL environment variable to edit the
|
| 9 |
+the editor specified by your EDITOR environment variable to edit the
|
| 10 |
crontab.
|
| 11 |
.PP
|
| 12 |
--- crontab.c
|
| 13 |
+++ crontab.c
|
| 14 |
@@ -312,5 +312,5 @@
|
| 15 |
if (ChangeUser(user, 1) < 0)
|
| 16 |
exit(0);
|
| 17 |
- if ((ptr = getenv("VISUAL")) == NULL || strlen(ptr) > 256)
|
| 18 |
+ if ((ptr = getenv("EDITOR")) == NULL || strlen(ptr) > 256)
|
| 19 |
ptr = PATH_VI;
|
| 20 |
|