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.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18581 invoked from network); 24 Aug 2020 18:30:35 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 Aug 2020 18:30:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; 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=UiybwqUj781G1ezFuo6WfVOyeqorgVhoiQROpVr/txU=; b=nvlGhoOM3Tw6T8VXdi73sZHhjP uch1Avx/7dGuq+ZZLOUjhcC84qv2ESxCKsHaLk2IAMr5KhqnlvDYj9zEyBCi5qOUM5K5Gl7urnywF rgqOAfvZber3RJPi+weSjzxCuWy6qRnMDIoSrcjSyOjUh8aqoGTuPnhvMBC3+KQAEHNzfN5kVPTXC H/Gdz1MrqsRxBnAJ6C18XAhyMVrYGPDlrGCN/fCbWsjyjKAbVy8EoJiwI1rUI5uO5E9QNEm0ETdnX bvoDnzBRjlzt4gA+dZfYM8uQ+gqqyr4N0aMOGm0F3/poLmT6AZ2aNnDUvh4/tP4r5EoihGO0F6gyd 7JVr4RCw==; Received: from authenticated user by zero.zsh.org with local id 1kAHEo-000M6B-9o; Mon, 24 Aug 2020 18:30:34 +0000 Authentication-Results: zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=skipped; arc=none Received: from joooj.vinc17.net ([155.133.131.76]:44362) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1kAHES-000LwP-1t; Mon, 24 Aug 2020 18:30:13 +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 3A16229D; Mon, 24 Aug 2020 20:30:11 +0200 (CEST) Received: by zira.vinc17.org (Postfix, from userid 1000) id C04EBC23CB9; Mon, 24 Aug 2020 20:30:10 +0200 (CEST) Date: Mon, 24 Aug 2020 20:30:10 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: command -p should enable builtins not in path Message-ID: <20200824183010.GA1728404@zira.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org References: <20200820112815.GA216072@zira.vinc17.org> <1194318329.1319677.1598015007835@mail2.virginmedia.com> <861d1eee-a00b-f90d-21f3-7129afa4d765@inlv.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <861d1eee-a00b-f90d-21f3-7129afa4d765@inlv.org> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.14.5+76 (bb407ec3) vl-127292 (2020-06-24) X-Seq: 47336 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: Archived-At: On 2020-08-21 16:49:06 +0100, Martijn Dekker wrote: > Op 21-08-20 om 14:03 schreef Peter Stephenson: > > I tend to agree there's not a lot of point in this incompatibility, > > given where the "-p" flag originates --- it's a relatively late > > addition to zsh. > > > > Here's one possible fix. > > It seems inconsistent/unexpected if 'command -p cd' works, but 'command cd' > doesn't. However, "command cd" is not guaranteed to work in a POSIX shell, e.g. if $PATH has changed. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)