Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Eduardo Bustamante Newsgroups: gnu.bash.bug Subject: Re: Auto-update program cache feature Date: Thu, 4 Oct 2018 05:10:09 -0700 Lines: 24 Approved: bug-bash@gnu.org Message-ID: References: <20181004013022.GA28424@ubuntu> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: usenet.stanford.edu 1538655030 15827 208.118.235.17 (4 Oct 2018 12:10:30 GMT) X-Complaints-To: action@cs.stanford.edu Cc: bug-bash To: Jeffrey Walton Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xgfkZMK/iWr5tv+f8iDRioy1Vw6J2karAgKu1lOen7c=; b=FIKNE2IgEyCGPBsJzd8ou0edoIWkyU6BsTI3kLRLQs21XBRvyAoedy8X8eo0ATCmu1 HC1RugNq63tICyaaFsTkyre/y7Zi/6jEyxt3EGN2gIQWgCAlnKpc2cKmr0w4n8+lQ2SX nvqfBLC78gVC8LhOhnotfL83B2Ap4aWePh1LtNL7IsxSTMwcG4I2q/2P7hBO1Az5mEEV g81pvaoDMnNTPQEXPtO+zBTk6z498zYXQ0bhB1Ou8bgXKfkVEf+ZWICuWYEC1C9rFPMm bS0VUMi5RC/Zgb5rz98XbQ9tjFU+5veSvf/RWpbdZtfkFs2Nn3aZT4auAaXDoVKWNw19 myig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xgfkZMK/iWr5tv+f8iDRioy1Vw6J2karAgKu1lOen7c=; b=lW3lf7yawBKZAOTjBwu8zIkmzGKrUoYUzJCGvIbmQssW7f1aSka5g2PCjakyAPajd+ 65R87APPQ6waHguvdyOybfLDa2yy3QAfn0wxytWoGZH5z8SMltSW7EbJ5clAAuoOgVq3 cNb795q8pbAnPMAICOZjfWzstx11djrLCBcKSSGAey3xKpunAsQLJg6hSvUH6vqBpmzQ L/g6lEqPfhlIdjt4LGA/Ym5Wx//0tcXXwKhM7fUkjuRU4u2BRF+xwj7uql7r5HqM5Yhr CtHXQgn1/p6kq3BNpJGdutqRXBQ4X8VNgj7IGXOio8kDS1Ol9BRLELoOLuTNePXFjFkb eZ3Q== X-Gm-Message-State: ABuFfoj7vSo+mwpd5zds2nsk3/eJ8QuSmEmZxqkL6ymdnYs/NIpdTIYK hVJ8uPw12eE4qf8eMr9q9BEA8sjRioV4WaoMJrk= X-Google-Smtp-Source: ACcGV63bF/dgspY/40TbElBGBB9ExP6PqZjEQRKDMvTH4SrooiS40PrhbriUEz9I+hFYYgKOi6yDif/Xdl3HhBH2xLk= X-Received: by 2002:a2e:458b:: with SMTP id s133-v6mr4359137lja.60.1538655020993; Thu, 04 Oct 2018 05:10:20 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::235 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:14686 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 the cost (in terms of implementation complexity and maintenance) of a feature we request from a free software program :) > Architecturally each instance of Bash is an object could receive a > "clear cache" message. How it is achieved does not matter to me. What > is important is, the right thing is done to relieve users from the > extra work for the common case. This paragraph contradicts what you said earlier. You keep suggesting that Bash should adopt this global message passing system where every instance of the shell can broadcast messages to each other... that is EXTREMELY complicated. Anyways, I should've read the manual before replying to this email thread. There's already a mechanism in place for what you want, it's the `checkhash' shopt.