From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: * X-Spam-Status: No, score=1.5 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,SUBJ_OBFU_PUNCT_FEW,SUBJ_OBFU_PUNCT_MANY autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 9093 invoked from network); 17 Jun 2020 08:47:58 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 17 Jun 2020 08:47:58 -0000 Received: (qmail 5605 invoked by alias); 17 Jun 2020 08:47:53 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 46055 Received: (qmail 10506 invoked by uid 1010); 17 Jun 2020 08:47:53 -0000 X-Qmail-Scanner-Diagnostics: from wout5-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25842. spamassassin: 3.4.4. Clear:RC:0(64.147.123.21):SA:0(-2.6/5.0):. Processed in 0.678741 secs); 17 Jun 2020 08:47:53 -0000 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudejvddgtdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkofggtgfgsehtjedttd ertddvnecuhfhrohhmpeffrghnihgvlhcuufhhrghhrghfuceougdrshesuggrnhhivghl rdhshhgrhhgrfhdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeeifffftdektdeiheevhf fgjeeiteeihffggeeutdegieegveelueeghfffhefgfeenucfkphepjeelrddujeeirdef ledrieelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epugdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgv X-ME-Proxy: Date: Wed, 17 Jun 2020 08:47:15 +0000 From: Daniel Shahaf To: zsh-workers@zsh.org Subject: vcs_info: unreadable executable directories don't flush $vcs_info_msg_N_ Message-ID: <20200617084715.6b91f81c@tarpaulin.shahaf.local2> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit [[[ $ zsh -f % autoload vcs_info % git init foo % mkdir -m117 bar % cd foo % autoload vcs_info; precmd() { vcs_info; typeset -pm 'vcs_info_msg_*_' } typeset -g vcs_info_msg_0_=' (git)-[master]-' typeset -g vcs_info_msg_1_='' % cd ../bar typeset -g vcs_info_msg_0_=' (git)-[master]-' typeset -g vcs_info_msg_1_='' % ]]] I would have expected vcs_info_msg_0_ to be empty or unset after the last cd command. The current behaviour amounts to displaying wrong information. --- Preliminary analysis. vcs_info has this code at the very top: % < Functions/VCS_Info/vcs_info nl -ba | vipe 50 vcs_info () { 51 emulate -L zsh 52 setopt extendedglob NO_warn_create_global 53 54 [[ -r . ]] || return 0 I'm guessing VCS_INFO_set should be called before returning. It's on my list but not near the top; feel free to beat me to it. Cheers, Daniel