[PATCH] Don't dump core if localtime returns NULL

2023-03-22 Thread Paul Eggert
* examples/loadables/stat.c (stattime): * examples/loadables/strftime.c (strftime_builtin): * lib/readline/examples/histexamp.c (main): * parse.y (decode_prompt_string): Do something reasonable if localtime returns NULL. This can happen, for example, if someone sets the system clock to such an absu

Re: [PATCH] Save more readline state when running compgen

2023-03-22 Thread Koichi Murase
2023年3月22日(水) 22:51 Chet Ramey : > > I wouldn't say my usage is typical, but I do that in fact. I have a > > shell function to do that for an arbitrary command (which I once > > posted in help-bash [1] but now it's old. The latest is [2]) and use > > it everywhere. > > So is your function suite dep

Re: [PATCH] Save more readline state when running compgen

2023-03-22 Thread Chet Ramey
On 3/21/23 7:00 PM, Koichi Murase wrote: 2023年3月22日(水) 6:00 Greg Wooledge : I don't use programmable completion, but I could *imagine* someone using a temp file to store the results, then using mapfile to read them back in, to avoid the fork() that the command substitution uses. I wouldn't say