-/* $OpenBSD: format.c,v 1.272 2021/02/05 12:23:49 nicm Exp $ */
+/* $OpenBSD: format.c,v 1.273 2021/02/09 14:25:40 nicm Exp $ */
/*
* Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com>
RB_INSERT(format_job_tree, jobs, fj);
}
- expanded = format_expand1(es, cmd);
+ format_copy_state(&next, es, FORMAT_EXPAND_NOJOBS);
+ next.flags &= ~FORMAT_EXPAND_TIME;
+
+ expanded = format_expand1(&next, cmd);
if (fj->expanded == NULL || strcmp(expanded, fj->expanded) != 0) {
free((void *)fj->expanded);
fj->expanded = xstrdup(expanded);
if (ft->flags & FORMAT_STATUS)
fj->status = 1;
- format_copy_state(&next, es, FORMAT_EXPAND_NOJOBS);
return (format_expand1(&next, fj->out));
}