commit bash-20201226 snapshot

This commit is contained in:
Chet Ramey
2020-12-30 13:17:27 -05:00
parent 3c5683a47b
commit e58dc557e2
18 changed files with 734 additions and 662 deletions
+5 -1
View File
@@ -100,6 +100,10 @@ static int expand_and_print_history PARAMS((WORD_LIST *));
#define CFLAG 0x40
#define DFLAG 0x80
#ifndef TIMELEN_MAX
# define TIMELEN_MAX 128
#endif
int
history_builtin (list)
WORD_LIST *list;
@@ -328,7 +332,7 @@ histtime (hlist, histtimefmt)
HIST_ENTRY *hlist;
const char *histtimefmt;
{
static char timestr[128];
static char timestr[TIMELEN_MAX];
time_t t;
struct tm *tm;
+5 -1
View File
@@ -184,6 +184,10 @@ extern int errno;
#define SKIP1 "#'-+ 0"
#define LENMODS "hjlLtz"
#ifndef TIMELEN_MAX
# define TIMELEN_MAX 128
#endif
extern time_t shell_start_time;
#if !HAVE_ASPRINTF
@@ -449,7 +453,7 @@ printf_builtin (list)
case '(':
{
char *timefmt, timebuf[128], *t;
char *timefmt, timebuf[TIMELEN_MAX], *t;
int n;
intmax_t arg;
time_t secs;