X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/fb3abc15c11f2dd140eb44196cc6aef6e541b3ee..435e8dffcf378b5a0513c17aabf4f32096c20da8:/usr/src/usr.bin/mail/edit.c diff --git a/usr/src/usr.bin/mail/edit.c b/usr/src/usr.bin/mail/edit.c index ad076dad09..481cfcfd1c 100644 --- a/usr/src/usr.bin/mail/edit.c +++ b/usr/src/usr.bin/mail/edit.c @@ -16,7 +16,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)edit.c 5.11 (Berkeley) %G%"; +static char sccsid[] = "@(#)edit.c 5.12 (Berkeley) %G%"; #endif /* not lint */ #include "rcv.h" @@ -117,7 +117,7 @@ edit1(msgvec, type) * Run an editor on the file at "fpp" of "size" bytes, * and return a new file pointer. * Signals must be handled by the caller. - * "Type" is 'e' for EDITOR, 'v' for VISUAL. + * "Type" is 'e' for _PATH_EX, 'v' for _PATH_VI. */ FILE * run_editor(fp, size, type, readonly) @@ -160,7 +160,7 @@ run_editor(fp, size, type, readonly) } nf = NULL; if ((edit = value(type == 'e' ? "EDITOR" : "VISUAL")) == NOSTR) - edit = type == 'e' ? EDITOR : VISUAL; + edit = type == 'e' ? _PATH_EX : _PATH_VI; if (run_command(edit, 0, -1, -1, tempEdit, NOSTR) < 0) { (void) unlink(tempEdit); goto out;