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: 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

Re: Auto-update program cache feature

2018-10-06 Thread Bob Proulx
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 In the bash manual: checkhash

Re: Auto-update program cache feature

2018-10-04 Thread Chet Ramey
On 10/3/18 4:45 PM, Jeffrey Walton wrote: > Hi Everyone, > > I noticed a fair number of new Linux users have trouble with stale > program caches. Users install a package from a package manager or > sources and then are confused when the new package is not used. They > do not realize they need to

Re: Auto-update program cache feature

2018-10-04 Thread Eduardo Bustamante
On Wed, Oct 3, 2018 at 11:20 PM Jeffrey Walton wrote: (...) > How Bash achieves it is an implementation detail left to the experts. > I made a few suggestions that don't seem to fit well. That's OK > because Bash internals is not my area of expertise. I think it's important to always consider

Re: Auto-update program cache feature

2018-10-04 Thread Jeffrey Walton
On Wed, Oct 3, 2018 at 9:33 PM Eduardo A. Bustamante López wrote: > > On Wed, Oct 03, 2018 at 04:45:44PM -0400, Jeffrey Walton wrote: > > Hi Everyone, > > > > I noticed a fair number of new Linux users have trouble with stale > > program caches. Users install a package from a package manager or >

Re: Auto-update program cache feature

2018-10-03 Thread Eduardo A . Bustamante López
On Wed, Oct 03, 2018 at 04:45:44PM -0400, Jeffrey Walton wrote: > Hi Everyone, > > I noticed a fair number of new Linux users have trouble with stale > program caches. Users install a package from a package manager or > sources and then are confused when the new package is not used. They > do not

Auto-update program cache feature

2018-10-03 Thread Jeffrey Walton
Hi Everyone, I noticed a fair number of new Linux users have trouble with stale program caches. Users install a package from a package manager or sources and then are confused when the new package is not used. They do not realize they need to run 'bash -r'; and most don't know where to begin