editor
const char *editor = NULL;
editor = shoptarg;
if (lflg == 0 || editor || sflg) {
if (editor == NULL &&
(editor = bltinlookup("FCEDIT", 1)) == NULL &&
(editor = bltinlookup("EDITOR", 1)) == NULL)
editor = DEFEDITOR;
if (editor[0] == '-' && editor[1] == '\0') {
editor = NULL;
if (editor) {
if (editor) {
editcmd = stalloc(strlen(editor) + strlen(editfile) + 2);
sprintf(editcmd, "%s %s", editor, editfile);
const char *editor;
if ((editor = getenv("EDITOR")) == NULL)
editor = _PATH_VI;
execlp(editor, editor, tempname, (char *)NULL);
err(1, "%s", editor);
errx(1, "\"%s\" exited with status %d", editor, WEXITSTATUS(pstat));
const char *editor;
if ((editor = getenv("EDITOR")) == NULL)
editor = DEFAULT_EDITOR;
commandline = malloc(strlen(editor) + strlen(edit_path) + 2);
sprintf(commandline, "%s %s", editor, edit_path);
err(EX_UNAVAILABLE, "could not invoke %s", editor);
{ "edit", editor, I|MSGLIST, 0, MMNORM },
int editor(void *);
int editor(GS *, int, char *[]);
char n[MAX_FNAME], q[MAX_TEMPSTR], *editor;
if ((editor = getenv("VISUAL")) == NULL &&
(editor = getenv("EDITOR")) == NULL) {
editor = EDITOR;
if (strlen(editor) + strlen(Filename) + 2 >= MAX_TEMPSTR)
execlp(editor, editor, Filename, (char *)NULL);
err(ERROR_EXIT, "%s", editor);
warnx("wrong PID (%d != %d) from \"%s\"", xpid, pid, editor);
warnx("\"%s\" exited with status %d", editor, WEXITSTATUS(waiter));
editor, WTERMSIG(waiter), WCOREDUMP(waiter) ?"" :"no ");