Home | History | Annotate | Download | only in sh

Lines Matching refs:editor

66 #define DEFEDITOR	"ed"	/* default editor *should* be $EDITOR */
222 const char *editor = NULL;
236 (void) &editor;
261 editor = optionarg;
288 if (lflg == 0 || editor || sflg) {
310 * Set editor.
313 if (editor == NULL &&
314 (editor = bltinlookup("FCEDIT", 1)) == NULL &&
315 (editor = bltinlookup("EDITOR", 1)) == NULL)
316 editor = DEFEDITOR;
317 if (editor[0] == '-' && editor[1] == '\0') {
319 editor = NULL;
374 if (editor) {
388 * do it now. Otherwise, put into temp file and call the editor
428 if (editor) {
432 editcmd = stalloc(strlen(editor) + strlen(editfile) + 2);
433 sprintf(editcmd, "%s %s", editor, editfile);