From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14040 invoked by alias); 9 Sep 2017 04:24:47 -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: X-Seq: 41655 Received: (qmail 23468 invoked by uid 1010); 9 Sep 2017 04:24:47 -0000 X-Qmail-Scanner-Diagnostics: from mail-pf0-f171.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.192.171):SA:0(-4.7/5.0):. Processed in 3.232451 secs); 09 Sep 2017 04:24:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: eric.pruitt@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:pgp-key:user-agent; bh=RguhSozydqADMUVg8HBnJ5HbLUbZKiyXTfQuc4MKgtQ=; b=SFnjCXIgqDo0TwY/k9fuzwuzhZp/T0UgpBswb30KD61BqHNbjw3AlkK6EZYE3gGIIR zidVp5Nt1WOUxy0jG/phvJ8o5VnZYuqO7m6Z7PPKotFVis+6ehZ6de0AhY6KcwWe9Snd XY/CDuNqYflE7vqP7E8JFqzToSAuQNQl5VjgQiEj+zQBD+SYcyp2zqmQnnQrvMRGOasb b2YN5wnYoBUxIOrB336z9ji6a+VBWgmO7z8JCM6imfhHBPbIclpk8bA5AGA/REUHf5qT 9g9D2awrVNJDGu1A9Uoudoy+9mFiBukqiy4VXaMgz0MjZCDnNYf8QE2QlfBiFYhvcZXC 7x5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:pgp-key:user-agent; bh=RguhSozydqADMUVg8HBnJ5HbLUbZKiyXTfQuc4MKgtQ=; b=uSV8m468iwDe7M4gAxyuevkDA7211rQR4/d/3Zo9NH0M1WzBYcEyeMZ54I0EdcPnPO Q9lRMM/C0JQ6LW8Y6+3j+3jWCYE+ivvtjLeHfTMyAcq5QiUPpHvEFmwu/n74byM+6amP NBphyiSrAd+lBrxGoynKrxg3nvG6jBeLflKWhzsmKxjSwvqCif1vMBPADtNm3lzlT7gx 8DtmHFu1Nw/AxE1rrUqFyHfdlzALMt66aTT5KCcXsaW692WOJj6jd7K3kavP/xoEgiHC Gal9/9nYalL8Gkp5EBPyqhLizUP5N2OO13LkcATXMIPMnfI5hKsB/fvP0kz2MiXeVvLP DuMA== X-Gm-Message-State: AHPjjUgfuWr+3xHuLdqpAH4VjTYLobsAANeJI63mbFdVTvUZA68wYDwu Q4nndCwXhfOYV0Lt X-Google-Smtp-Source: ADKCNb7JW+uqqZBwusVYdoAxjYIw1wjZreK5RkFIF/IGVRD1DtZ+J56blcsWSgnOIB9eIdJr2k+hUA== X-Received: by 10.101.91.134 with SMTP id i6mr5187044pgr.428.1504931076710; Fri, 08 Sep 2017 21:24:36 -0700 (PDT) Date: Fri, 8 Sep 2017 21:24:34 -0700 From: Eric Pruitt To: zsh workers Subject: Re: Running "unset path" breaks PATH despite emulation being enabled Message-ID: <20170909042434.5lhisxq2z6ykvece@sinister.lan.codevat.com> References: <20170908082917.v5j4vczoq75vs5lk@sinister.lan.codevat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: PGP-Key: https://www.codevat.com/pgp.asc#F8601B5D2511B4C3535232488DDDE2E6053692AB User-Agent: NeoMutt/20170113 (1.7.2) On Fri, Sep 08, 2017 at 01:30:05PM +0200, Mikael Magnusson wrote: > This works fine if you start zsh as sh though, ie [...] ARGV0=sh zsh For the benefit of other people who like myself, don't use actually Z shell, this is NOT the equivalent of "ARGV0=sh zsh" in many (most?) other shells, it's describing execve("sh", ["zsh", ...]): # For POSIX shells, you can use Z shell itself assuming there's not # a standardized built-in way I overlooked: $ zsh -c "ARGV0=sh zsh ..." # For Bash (and some others): $ (exec -a sh zsh ...) Eric