Bash-5.3-alpha release

This commit is contained in:
Chet Ramey
2024-04-22 10:33:38 -04:00
parent f3b6bd1945
commit 622d318652
700 changed files with 136534 additions and 96420 deletions
+11 -2
View File
@@ -452,10 +452,19 @@ print_sig(void)
struct tm *timetm;
time_t clock;
datbuf[0] = '\0';
#ifdef HAVE_GETTIMEOFDAY
struct timeval tv;
gettimeofday (&tv, 0);
clock = tv.tv_sec;
#else
clock = time(NULL);
#endif
timetm = localtime(&clock);
strftime(datbuf, MED_STR_MAX, TIMEFORMAT, timetm);
datbuf[0] = '\0';
if (timetm)
strftime(datbuf, MED_STR_MAX, TIMEFORMAT, timetm);
else
strcpy (datbuf, "??");
printf(signature, manpage, datbuf);
}