bash support for XDG Base Directory spec (~/.config/bash/)

2021-05-07 Thread Allison Karlitskaya
hello, Please consider these two patches for inclusion in bash to support storing shell initialisation files (profile, bashrc) in a subdirectory of ~/.config/ as most programs do these days. I'm happy to make changes to address any feedback. Even if you'd prefer not to apply the second patch, ap

Re: Why does "mapfile -d delim" (delim != '\n') use unbuffered read?

2021-05-07 Thread Koichi Murase
2021年5月5日(水) 6:18 Chet Ramey : > I used a combination of the simpler approach and the fstat/S_ISREG > strategy you suggested in your previous email. Thank you. I have tried the updated version of mapfile in 59c575fd. Now it runs with temporary files as fast as the newline case. $ TIMEFORMAT=%R $

Re: Why does "mapfile -d delim" (delim != '\n') use unbuffered read?

2021-05-07 Thread Chet Ramey
On 5/7/21 1:32 PM, Koichi Murase wrote: I don't think this will make much of a difference -- it never has, I suspect it's because the buffered read was only enabled when delim == '\n' before and read(2) has read exactly until the delimiter in most cases. Now we have changed that condition, so

Re: Why does "mapfile -d delim" (delim != '\n') use unbuffered read?

2021-05-07 Thread Koichi Murase
2021年5月8日(土) 3:30 Chet Ramey : > On 5/7/21 1:32 PM, Koichi Murase wrote: > >> I don't think this will make much of a difference -- it never has, > > > > I suspect it's because the buffered read was only enabled when delim > > == '\n' before and read(2) has read exactly until the delimiter in > > mo