Re: [minor] umask 400 causes here-{doc,string} failure

2018-03-11 Thread Ilkka Virta
On 11.3. 17:17, Stephane Chazelas wrote: $ bash -c 'umask 400; cat <<< test' bash: cannot create temp file for here-document: Permission denied Those shells use temporary files to store the content of the here-documents as the Bourne shell initially did, and open them in read-only mode to make

[minor] umask 400 causes here-{doc,string} failure

2018-03-11 Thread Stephane Chazelas
Note: sent to bash, zsh and Schily Bourne shell dev mailing lists (not mksh as my email provider apparently doesn't play well with mirbsd.org's expensive greylisting, please feel free to forward there if you don't use gmail). That's from: https://unix.stackexchange.com/questions/429285/cannot-crea

Limiting history size seems to be implemented inefficiently

2018-03-11 Thread Janek Warchoł
Hello, I may be wrong, but from what I see in lib/readline/history.c:stifle_history, every time stored history reaches HISTSIZE limit, the whole array keeping history data is rewritten (by moving each element one index further to make room for new entry. This is quite inefficient. Shouldn't we rat

Re: history -c doesn't reset command counter properly

2018-03-11 Thread Janek Warchoł
Oh, nice! That's quite a long time ago, when can I expect this change to be released? I'm not familiar with Bash release lifecycle. Thanks, Janek 2018-03-10 20:56 GMT+01:00 Chet Ramey : > On 3/10/18 8:27 AM, Janek Warchoł wrote: > > Hello, > > > > I have noticed a strange behavior when working w