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=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4137 invoked from network); 18 Mar 2022 14:09:29 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 18 Mar 2022 14:09:29 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1647612569; b=fqtXNoOhJrFt3gfxGbb74Q/pCP8JUwVyFCDFox32eOSUnEVCz8cMWI6qcmoYAbcG82FsVDPSVR A67hcfcB4V2ZqAH92mTKSbvaMHay6PsJvYaHrcmH4603m9HZGZ8s4XsJ6xfO18ihaOmXIslkHx DOegrZeXk+CgwD30+FYsAKOiGsxW8H2hB59ESvoAjbj4Vtk2v/V0reKGyLDt6tDKXrZA6aen9Y inqJj54E5jANXaEyHMBC6tMjvqzxO0Wthr2U1xTnRRLStP0K/XARHSslC3h90gU+h8IdrWZTYk gqfyZzVQ5624VL0Bp6jem4+6tqg9SYCECy2L1atSMRImqg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1647612569; bh=M8McAY1zBlxyckl3xIc1tv2KiA32CUwtE6AOYLyLciI=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:To:From:Date:DKIM-Signature; b=Cb7bQI7/9NDrNTlnx5u26Jw1Y3ce/QjPQ2plC4JpNnWJ3EZo1LXFhzzXcA4Zlq6higwkzBbat8 cRFHA1knrdTR/Gi1VOCTP7WsQs4TriMRTzrmra0ijaWxQyBYl7+xw1Br6XHffGxSs1xaMKsYaa sKJrXHebLWqf0aomxbeF/II875XS+yQit2elcFjQk0HgBpRWJWA+egRf8wjJJBWTyV0B5DkI6Z d4hgQ9TKSPKfSgVCUpOh9DY/jA0xZxakxp/3mHxs2lEJ2GRxNuRXfK4bV2dGWLqcGl8sAwGtmX Af0vTFLMlPXFl9QVE0vulDTOzdX/R4Y+a7S79bKc+fZCVg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=tc7mFviZdJoLsxn3MI7hID0cfpmy/YRUgGIh+4jvUFw=; b=F7Rz8zz+oF6epkCov6TstdYQjK o+qpAS1yqZ61U7C5IlMN3P3xXT6Ejh54NX8ZYR4HnOMuFK7DuiMXTMbQ/cFUuUYipEOmIj2C7LxGo eQh3cT5FRbUy4shIrFMrS/pQu3iSt46tSpftplZAAzKzupQS4GlGUlcGJYVoHryVRd81qz86PTZgw phXu9esubm85psJptWRGICdIcXnDlHSvqB9yvrMFKD+W4xqdm3w9Utw/bCQ4NWmwGXcRgyE6oelnD +F8ul2hxoaM7JspYTg6ZXPGjFSiJasoPZxHwApeDeoH3kZtgVB9IGpbKrQPCVUmFalfZjyKHHtteG EpLjugrg==; Received: from authenticated user by zero.zsh.org with local id 1nVDIG-000H9U-E0; Fri, 18 Mar 2022 14:09:28 +0000 Authentication-Results: zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none Received: from joooj.vinc17.net ([155.133.131.76]:60736) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1nVDHx-000Gnc-0A; Fri, 18 Mar 2022 14:09:09 +0000 Received: from smtp-zira.vinc17.net (128.119.75.86.rev.sfr.net [86.75.119.128]) by joooj.vinc17.net (Postfix) with ESMTPSA id 902FD4C2; Fri, 18 Mar 2022 15:09:08 +0100 (CET) Received: by zira.vinc17.org (Postfix, from userid 1000) id 4FDB228002F6; Fri, 18 Mar 2022 15:09:08 +0100 (CET) Date: Fri, 18 Mar 2022 15:09:08 +0100 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: completion for "info -f" does not work Message-ID: <20220318140908.GB35304@zira.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org References: <20220315171305.GB617047@zira.vinc17.org> <65163150.28923.1647367522118@mail2.virginmedia.com> <2C495A59-EBA8-4C23-B0BB-964C4F0FEA40@kba.biglobe.ne.jp> <20220318135953.GA35304@zira.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220318135953.GA35304@zira.vinc17.org> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.2.1+12 (1ba319cf) vl-138565 (2022-03-05) X-Seq: 49868 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On 2022-03-18 14:59:53 +0100, Vincent Lefevre wrote: > On 2022-03-16 17:46:28 +0900, Jun T wrote: > > 'info -f' accept any (relative or absolute) pathnames. > > Well, not exactly. It seems that the rule for "info -f" is that > if the argument does not have a slash, then the usual info path > is used (with no fallback if nothing is found, i.e. an existing > pathname in the current directory will be ignored), otherwise > the argument is regarded as a pathname. This can be tested as follows: zira% touch for-test-only.info zira% info -f for-test-only info: for-test-only: No such file or directory zira% info -f for-test-only.info info: for-test-only.info: No such file or directory zira% info -f ./for-test-only zira% info -f ./for-test-only.info zira% info for-test-only info: No menu item 'for-test-only' in node '(dir)Top' zira% info for-test-only.info info: No menu item 'for-test-only.info' in node '(dir)Top' zira% info ./for-test-only zira% info ./for-test-only.info zira% An absence of error means that the file was opened. Without "-f", the rules seem to be the same, except that info also checks menu items. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)