[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Auto-update program cache feature

From: Jeffrey Walton
Subject: Auto-update program cache feature
Date: Wed, 3 Oct 2018 16:45:44 -0400

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 searching.

I think a useful feature for Bash would be to automatically update the
program cache after an install. Posix does not standardize an install
command (cf, 
so monitoring of common commands seems like a sensible way to
implement the feature.

A single terminal can monitor for a regex that looks for 'make
install' and perhaps other common  installation commands. Multiple
terminals seems like a trickier case, and could use a scheme where the
source terminal broadcasts an 'update cache' message to other open

Some folks will argue that a person who installs a new program or
updates an existing program does not want to use the newly installed
program. They will argue it to the point it displaces the common case
(with the common case being a user wants to actually use the newly
installed program). For users who do not want to use the newly
installed program a means to disable the behavior should be provided.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]