Re: Auto-update program cache feature

2018-10-08 Thread Chet Ramey
On 10/6/18 4:23 PM, Bob Proulx wrote: > Jeffrey Walton wrote: >> I think a useful feature for Bash would be to automatically update the >> program cache after an install. > > Put this in your ~/.bashrc file and I believe your use case will be > much happier. > > shopt -s checkhash How many

A possible bug on autocompletion after setting FUNCNEST level

2018-10-08 Thread Valentin Bajrami
This is some kind of a follow up on "Segfault on recursive trap/kill" reported by Mike Grewitz. After setting FUNCNEST and the listing a file or using 'vi filname[TAB]' a bug is triggered. This is how I could reproduce this: f3d0r4:~/FOO# FUNCNEST=4 f3d0r4:~/FOO# ls

Re: A possible bug on autocompletion after setting FUNCNEST level

2018-10-08 Thread Andreas Schwab
On Okt 08 2018, Valentin Bajrami wrote: > This is some kind of a follow up on "Segfault on recursive trap/kill" > reported by Mike Grewitz. > > After setting FUNCNEST and the listing a file or using 'vi filname[TAB]' a > bug is triggered. > > This is how I could reproduce this: > >

Re: A possible bug on autocompletion after setting FUNCNEST level

2018-10-08 Thread Greg Wooledge
On Mon, Oct 08, 2018 at 02:06:39PM +0200, Valentin Bajrami wrote: > This is how I could reproduce this: > > f3d0r4:~/FOO# FUNCNEST=4 4 is ridiculously low. Set it higher.

Re: A possible bug on autocompletion after setting FUNCNEST level

2018-10-08 Thread Chet Ramey
On 10/8/18 8:06 AM, Valentin Bajrami wrote: > This is some kind of a follow up on "Segfault on recursive trap/kill" > reported by Mike Grewitz. > > After setting FUNCNEST and the listing a file or using 'vi filname[TAB]' a > bug is triggered. It's not a bug. FUNCNEST is working as designed. As

Re: Segfault on recursive trap/kill

2018-10-08 Thread Bob Proulx
Mike Gerwitz wrote: > Bob Proulx wrote: > > Let me give the discussion this way and I think you will be > > convinced. :-) > > Well, thanks for taking the time for such a long reply. :) > > > How is your example any different from a C program? Or Perl, Python, > > Ruby, and so forth? All of

Re: Auto-update program cache feature

2018-10-08 Thread Bob Proulx
Chet Ramey wrote: > Bob Proulx wrote: > > Put this in your ~/.bashrc file and I believe your use case will be > > much happier. > > > > shopt -s checkhash > > How many installers put a new version of an existing package into a > possibly-different directory with a different name? Even using a

Re: Segfault on recursive trap/kill

2018-10-08 Thread Mike Gerwitz
On Mon, Oct 08, 2018 at 11:59:53 -0600, Bob Proulx wrote: > Some of those must be maintaining the stack in program data space > instead of in the machine stack space. (shrug) Indeed. But as I mentioned in another comment, such an implementation detail shouldn't matter to the user IMO. > My