Home | History | Annotate | Download | only in sh

Lines Matching defs:editor

76 #define DEFEDITOR	"ed"	/* default editor *should* be $EDITOR */
608 const char * volatile editor = NULL;
641 editor = optarg;
642 VTRACE(DBG_HISTORY, ("histcmd -e %s\n", editor));
686 if (lflg == 0 || editor || sflg) {
713 * Set editor.
716 if (editor == NULL &&
717 (editor = bltinlookup("FCEDIT", 1)) == NULL &&
718 (editor = bltinlookup("EDITOR", 1)) == NULL)
719 editor = DEFEDITOR;
720 if (editor[0] == '-' && editor[1] == '\0') {
722 editor = NULL;
724 VTRACE(DBG_HISTORY, ("histcmd using %s as editor\n",
725 editor == NULL ? "-nothing-" : editor));
811 if (editor) {
829 * do it now. Otherwise, put into temp file and call the editor
873 if (editor) {
878 cmdlen = strlen(editor) + strlen(editfile) + 2;
880 snprintf(editcmd, cmdlen, "%s %s", editor, editfile);