Symbol: editor
bin/ksh/history.c
103
editor = str_nsave(p, len, ATEMP);
bin/ksh/history.c
104
strlcat(editor, " $_", len);
bin/ksh/history.c
145
if (editor || lflag || nflag || rflag) {
bin/ksh/history.c
173
if (editor && (lflag || nflag)) {
bin/ksh/history.c
257
ret = command(editor ? editor : "${FCEDIT:-/bin/ed} $_");
bin/ksh/history.c
84
char *p, *editor = (char *) 0;
bin/sh/histedit.c
600
const char * volatile editor = NULL;
bin/sh/histedit.c
633
editor = optarg;
bin/sh/histedit.c
634
VTRACE(DBG_HISTORY, ("histcmd -e %s\n", editor));
bin/sh/histedit.c
678
if (lflg == 0 || editor || sflg) {
bin/sh/histedit.c
708
if (editor == NULL &&
bin/sh/histedit.c
709
(editor = bltinlookup("FCEDIT", 1)) == NULL &&
bin/sh/histedit.c
710
(editor = bltinlookup("EDITOR", 1)) == NULL)
bin/sh/histedit.c
711
editor = DEFEDITOR;
bin/sh/histedit.c
712
if (editor[0] == '-' && editor[1] == '\0') {
bin/sh/histedit.c
714
editor = NULL;
bin/sh/histedit.c
717
editor == NULL ? "-nothing-" : editor));
bin/sh/histedit.c
803
if (editor) {
bin/sh/histedit.c
865
if (editor) {
bin/sh/histedit.c
870
cmdlen = strlen(editor) + strlen(editfile) + 2;
bin/sh/histedit.c
872
snprintf(editcmd, cmdlen, "%s %s", editor, editfile);
distrib/utils/more/command.c
580
static char *editor;
distrib/utils/more/command.c
584
if (editor == NULL) {
distrib/utils/more/command.c
585
editor = getenv("EDITOR");
distrib/utils/more/command.c
587
if (editor == NULL || *editor == '\0') {
distrib/utils/more/command.c
588
editor = _PATH_VI;
distrib/utils/more/command.c
595
(void)snprintf(buf, sizeof(buf), "%s +%d %s", editor, c,
distrib/utils/more/command.c
598
(void)snprintf(buf, sizeof(buf), "%s %s", editor, current_file);
lib/libedit/map.c
1105
map_set_editor(EditLine *el, wchar_t *editor)
lib/libedit/map.c
1108
if (wcscmp(editor, L"emacs") == 0) {
lib/libedit/map.c
1112
if (wcscmp(editor, L"vi") == 0) {
lib/libedit/map.c
1124
map_get_editor(EditLine *el, const wchar_t **editor)
lib/libedit/map.c
1127
if (editor == NULL)
lib/libedit/map.c
1131
*editor = L"emacs";
lib/libedit/map.c
1134
*editor = L"vi";
lib/libedit/vi.c
1011
const char *editor;
lib/libedit/vi.c
1018
if ((editor = (el->el_getenv)("EDITOR")) == NULL)
lib/libedit/vi.c
1019
editor = "vi";
lib/libedit/vi.c
1044
execlp(editor, editor, tempfile, (char *)NULL);
lib/libutil/passwd.c
239
const char * volatile editor;
lib/libutil/passwd.c
249
if ((editor = getenv("EDITOR")) == NULL)
lib/libutil/passwd.c
250
editor = _PATH_VI;
lib/libutil/passwd.c
252
p = malloc(strlen(editor) + 1 + strlen(filename) + 1);
lib/libutil/passwd.c
256
sprintf(p, "%s %s", editor, filename);
lib/libutil/passwd.c
277
pw_error(editor, 1, 1);
lib/libutil/passwd.c
283
pw_error(editor, 1, 1);
usr.bin/mail/cmdtab.c
122
{ "edit", editor, 0, CMP(n) I|MSGLIST, 0, MMNORM },
usr.bin/mail/extern.h
151
int editor(void *);
usr.bin/sdiff/edit.c
32
const char *editor;
usr.bin/sdiff/edit.c
34
editor = getenv("VISUAL");
usr.bin/sdiff/edit.c
35
if (editor == NULL)
usr.bin/sdiff/edit.c
36
editor = getenv("EDITOR");
usr.bin/sdiff/edit.c
37
if (editor == NULL)
usr.bin/sdiff/edit.c
38
editor = "vi";
usr.bin/sdiff/edit.c
44
execlp(editor, editor, filename, (void *)NULL);
usr.bin/sdiff/edit.c
45
warn("could not execute editor: %s", editor);
usr.bin/sdiff/edit.c
61
warn("%s terminated abnormally", editor);