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 7133 invoked from network); 21 Aug 2020 15:48:03 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Aug 2020 15:48:03 -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=wFgbYiwmTI6e7hNyZs3bJ2yL4JTt4/dUvqHjYx0d4WM=; b=Jl7DqxMZGo0H8TH1hsuOzeqnj4 o2tQ6To6TBRhN/ZSXo7N7rc6e/frqNhDpSaPdHwn/Tu0cb3e9btrnQ3evrwr2OHlQ5fpc5+CHQqhq NFFvwfLW3czfKbdPy2PQlVLXviMMp7PU13wB+xPF1Ju9289GM4feHahfeoTqYY1glYuuXLfsNyBqu R47waVWtQKs/S459IrdNFiSFfC+sRfDAZX31dug1Q/znq7D+vFVuIFmHgtsayDoQzPtQnfM60Djyw CiweubAVCdIXDfZLQSf6HSxaAqB1+rvEVJFJe0CM291gCZCRsrcR5UHHcc1WnHVQpQZTsJIMOPrPk ldWJWoPA==; Received: from authenticated user by zero.zsh.org with local id 1k99Gp-000PpI-0d; Fri, 21 Aug 2020 15:47:59 +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]:22754) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1k99GY-000Pg5-2M; Fri, 21 Aug 2020 15:47:44 +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 07LFle8B073235 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO) for ; Fri, 21 Aug 2020 17:47:40 +0200 (CEST) (envelope-from martijn@inlv.org) Subject: Re: command -p should enable builtins not in path To: zsh-workers@zsh.org References: <20200820112815.GA216072@zira.vinc17.org> From: Martijn Dekker Message-ID: Date: Fri, 21 Aug 2020 16:47:39 +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: <20200820112815.GA216072@zira.vinc17.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Seq: 47332 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 20-08-20 om 12:28 schreef Vincent Lefevre: > Though zsh isn't meant to conform to POSIX, it should follow its > requirements when they make sense. Just to clarify, 'zsh --emulate sh' *is* meant to conform to POSIX, correct? [...] > Setting the POSIX_BUILTINS option allows "cd" to be found, but with > the drawback that it will not disable builtins that are in $PATH. > So this option is a bad solution when using "zmodload zsh/files" > without -F, for instance. > > Note: "command -p cd ..." is used by Intel's script to set up > environment variables for its compiler. If it wasn't written for native zsh, it probably has other incompatibilities as well. Wouldn't 'sticky emulation' allow you to seamlessly mix that code with native zsh code? - M. -- || modernish -- harness the shell || https://github.com/modernish/modernish || || KornShell lives! || https://github.com/ksh93/ksh