Home | History | Annotate | Download | only in sh

Lines Matching refs:History

54  * Editline and history functions (and glue).
78 History *hist; /* history cookie */
102 * Set history and editing status. Called whenever the status may
118 * turn history on
128 out2str("sh: can't initialize history\n");
175 el_set(el, EL_HIST, history, hist);
219 VTRACE(DBG_HISTORY, ("line editing & history disabled\n"));
274 history(hist, &he, H_SETSIZE, histsize + 1);
275 history(hist, &he, H_SETUNIQUE, 1);
309 history(hist, &he, H_LOAD, file);
439 * a variant of open() for history files.
456 VTRACE(DBG_HISTORY, ("history file fstat(%d) failed [%d]\n",
464 ("history file wrong user (uid=%d file=%d)\n",
552 (void) history(hist, &he, H_SAVE_FP, fp);
630 error("history not active");
634 error("missing history argument");
678 history(hist, &he, H_CLEAR);
777 if (lflg) /* no history exists, that's OK */
781 error("history events %s to %s do not exist",
784 error("history event %s does not exist",
787 error("history event %s does not exist",
804 * to the history element in next (diskbased) release.
828 * Loop through selected history events. If listing or executing,
832 * The history interface needs rethinking, as the following
835 history(hist, &he, H_FIRST);
836 retval = history(hist, &he, H_NEXT_EVENT, first);
837 for ( ; retval != -1; retval = history(hist, &he, direction)) {
859 history(hist, &he, H_ENTER, s);
1050 retval = history(hist, &he, H_FIRST);
1062 retval = history(hist, &he, H_NEXT);
1065 retval = history(hist, &he, H_LAST);
1067 retval = history(hist, &he, H_NEXT_EVENT, i);
1071 * backwards to that of the history package
1073 retval = history(hist, &he,
1083 retval = history(hist, &he, H_PREV_STR, str);
1085 error("history pattern not found: %s", str);
1095 error("not compiled with history support");
1102 error("not compiled with history support");