expandvar
file = expandvar(hs, flags);
file = expandvar(var, histfileflags());
const char *expandvar(const char *, int);