Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Jeffrey Walton Newsgroups: gnu.bash.bug Subject: Auto-update program cache feature Date: Wed, 3 Oct 2018 16:45:44 -0400 Lines: 29 Approved: bug-bash@gnu.org Message-ID: Reply-To: noloader@gmail.com NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: usenet.stanford.edu 1538606042 22630 208.118.235.17 (3 Oct 2018 22:34:02 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:from:date:message-id:subject:to; bh=QCkS3lC4klc05MRyKTdqNfUfGOeRSX16u2c6v0LRl7k=; b=sY4Gdnd0DYKUTOeWotfUoegm6Z/ySF1z1PQhFCEtr4uOizohv+dZWnbHhzR7VF/U+T Fk5EmQnGzR0IffNrh7d9hqR6VT2qTpvCIVEM6uFZWd/ar40TIh27jvcOw3iTrcUUPGLX +vAPP8h/Horyv5MsOXpRBFDFfLlW3qzt/ubfHkrt2jIt1soy9uKPRPBVuVVaMgdN1ykJ jF7XvdHzYHrqE2J8l41tdJ6jnvyasQdYqBegGjNZQaHdWA56fhCXS+nUEESn2JnkLpMo pPNaiSmEeh3hpki3RULPfPA86O/HmRvEVQE3g+MuC8c9egjy9ydoxO5tRhf4BHV1Q6Q7 F7Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=QCkS3lC4klc05MRyKTdqNfUfGOeRSX16u2c6v0LRl7k=; b=scaKO/1DIVFEwgxUjtp04hquLpc0ggEAIVPcNBIsUeAI3EIDUNQGCtBvqHqeyyPTGI vPZ3+UZOB9JmobkFIXjeXo1kGxbq5yWVU9P5/3G6AVlY7JTeKW63DWU0pp+4KpggDFEA k+PnUGn5IYXBIjEYgi+W6H7Y5GUme47qlZ7Z279UXjpBuF8kFld8cEUDC/rsT7b9jp2W fTdszrRvU1uS41h5xwtqFsYCsA1vkCqUy1wtU0wbMJAk5zyTrCSP6VWddoCn+ACQH571 69U4dmj2kVtP56s0SJkqGB0uMFJQqWAlSiJV8kjCkUYHI9wFm6MJP6vIOpQvqOODZIRH /IFw== X-Gm-Message-State: ABuFfojVU+XrD9zqj6OncNe7OlXRhKzu2i5OibS7JNsAKLXQX6/btflp 2RVZwekGqTqCwzFuPjWvpO1u83lXfLeVS0sk/qif1n/q X-Google-Smtp-Source: ACcGV62qU7ZNeTG8a5JoCLqU2S0k0CNTTg4+yLJY74kvNTRDtP1JGPcsZV/Zirm8ZREkZDHnSqPvwhdl8YeHUf7DQ4M= X-Received: by 2002:a9d:4d0c:: with SMTP id n12mr1970983otf.90.1538599557774; Wed, 03 Oct 2018 13:45:57 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::32e X-Mailman-Approved-At: Wed, 03 Oct 2018 18:34:00 -0400 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:14683 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, http://pubs.opengroup.org/onlinepubs/009696699/utilities/contents.html), 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 terminals. 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. Jeff