Lines Matching refs:histfile
84 const char *histfile; in get_histfile() local
89 histfile = expandstr("${HISTFILE-${HOME-}/.sh_history}"); in get_histfile()
91 if (histfile[0] == '\0') in get_histfile()
93 return (histfile); in get_histfile()
101 const char *histfile; in histsave() local
105 if (!savehist || (histfile = get_histfile()) == NULL) in histsave()
108 asprintf(&histtmpname, "%s.XXXXXXXXXX", histfile); in histsave()
120 rename(histtmpname, histfile) == -1) in histsave()
131 const char *histfile; in histload() local
134 if ((histfile = get_histfile()) == NULL) in histload()
137 if (history(hist, &he, H_LOAD, histfile) != -1 || errno == ENOENT) in histload()