editor
if (editor || lflag || nflag || rflag) {
if (editor && (lflag || nflag)) {
ret = command(editor ? editor : "${FCEDIT:-/bin/ed} $_", 0);
char *p, *editor = NULL;
editor = str_nsave(p, len, ATEMP);
strlcat(editor, " $_", len);
map_set_editor(EditLine *el, wchar_t *editor)
if (wcscmp(editor, L"emacs") == 0) {
if (wcscmp(editor, L"vi") == 0) {
map_get_editor(EditLine *el, const wchar_t **editor)
if (editor == NULL)
*editor = L"emacs";
*editor = L"vi";
char *editor;
if ((editor = getenv("EDITOR")) == NULL)
editor = _PATH_VI;
if (asprintf(&p, "%s %s", editor, filename) == -1)
pw_error(editor, 1, 1);
pw_error(editor, 1, 1);
error = editor(f);
int editor(int);
extern char *editor;
editor = lgetenv("VISUAL");
if (editor == NULL || *editor == '\0') {
editor = lgetenv("EDITOR");
if (editor == NULL || *editor == '\0')
editor = EDIT_PGM;
char *editor;
ap_str(editor);
extern char *editor;
{ "edit", { editor }, I|MSGLIST, 0, MMNORM },
int editor(void *);
const char *editor;
if (el_get(el, EL_EDITOR, &editor) == 0 && editor[0] == 'v')
const char *editor;
editor = options_get_string(global_options, "editor");
if (*editor == '\0')
xasprintf(&cmd, "%s %s", editor, path);
rval = editor(gp, argc, argv);
int editor(GS *, int, char *[]);