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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12141 invoked from network); 21 Aug 2020 16:35:43 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Aug 2020 16:35:43 -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:Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To: Subject:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=xkN1G47tQqb/C52e8T7asi5to6yL3DL073H/aXukdFE=; b=oWE7/aFF8Lt73+69f8SM/1Ux/u LmefQ6B20MI7b23ZHCj5+QXLNgBXg1zc4d7mvLluWKWx9yY3HQ4+1XtDpoB0vi3A0OiIHCtRoWG+j NpAAiEyQvLPI3dg6Gozu8donm7sf3xVD9FjrOA7XONz5KO56Fk/gKqAh06D6D954UUWUqPSTQqqD/ tYZo2+lLyW6mvbPM9qVAaDX3jcxYmS3qHxTGhjJvWKQa++nDJbArYlXDltZjWUqU9+FaiOE0qrv26 5DNF+BoPvVXxJvqxgSRQwrLChrcm62EHCrjDcjqScy5lMAMYeqXEJftT0WC62F9qG6lSsP4cjsh5t foZcT7zw==; Received: from authenticated user by zero.zsh.org with local id 1k9A0z-0001gQ-SQ; Fri, 21 Aug 2020 16:35:42 +0000 Authentication-Results: zsh.org; iprev=pass (freekahlil.inlv.org) smtp.remote-ip=46.19.33.18; dmarc=skipped; arc=none Received: from freekahlil.inlv.org ([46.19.33.18]:30094) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1k9A0d-0001XH-VM; Fri, 21 Aug 2020 16:35:20 +0000 Received: from [192.168.1.250] (host86-142-63-153.range86-142.btcentralplus.com [86.142.63.153]) (authenticated bits=0) by freekahlil.inlv.org (8.15.2/8.15.2) with ESMTPSA id 07LGZE8H073566 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Fri, 21 Aug 2020 18:35:14 +0200 (CEST) (envelope-from martijn@inlv.org) Subject: Re: command -p should enable builtins not in path To: Peter Stephenson , zsh-workers@zsh.org References: <20200820112815.GA216072@zira.vinc17.org> <1194318329.1319677.1598015007835@mail2.virginmedia.com> <861d1eee-a00b-f90d-21f3-7129afa4d765@inlv.org> <1593127844.1326203.1598026086145@mail2.virginmedia.com> From: Martijn Dekker Message-ID: <01ba6e28-19ce-274c-2ff2-f95a4088d6cf@inlv.org> Date: Fri, 21 Aug 2020 17:35:14 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <1593127844.1326203.1598026086145@mail2.virginmedia.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Seq: 47335 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: Op 21-08-20 om 17:08 schreef Peter Stephenson: > However, "command" with no option is a very long-standing piece of zsh > syntax to pick an external command, so that's certainly not going to change. Of course. So what I'm trying to suggest is that this change to -p is maybe not a very good idea either. There is a long-standing expectation that 'command' runs an external command in native zsh mode, so why should that be different just because you're searching the default path? Code that expects POSIX behaviour, such as that Intel build script, shouldn't be run in native zsh mode anyway. If it needs to cooperate with native zsh code, it can be loaded with sticky emulation. - M. -- || modernish -- harness the shell || https://github.com/modernish/modernish || || KornShell lives! || https://github.com/ksh93/ksh