From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13439 invoked by alias); 9 Sep 2017 22:38:16 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22877 Received: (qmail 14396 invoked by uid 1010); 9 Sep 2017 22:38:16 -0000 X-Qmail-Scanner-Diagnostics: from mail-pg0-f51.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(74.125.83.51):SA:0(-1.9/5.0):. Processed in 1.089348 secs); 09 Sep 2017 22:38:16 -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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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=X+Brt5uWhMI6bx5XaG8irHKpI0z26WzenLpwO/FwFOQ=; b=jDbLe8Rf5kVA0QLh3xYGO0fYKZ+NUOLsIi2TtOvBq5fCWO90sEls6Ktc8y1dgbrL2V b01Z2wsDkq/uhq6mKSoDEXlyNBRfecQgNPT7pgJQZE+GkbCunoZY3lp3Xn2oCtHMsrCf Zovtre1GCRtguiVYUf3ZLlNOukHuCZUmf8b36Gdzm/rUMv6J/1wl6hnhDlkU/iRdo+qh RRVZ3GliVMqrGGbP22ATopNCGoRJiO/woqlke4zkWVrCW42xX0QXWVfySOCA5dMA8786 OY5cRElVLBoIm73g+PTQyTsHQXeFCJ/x+UDJsSNsc7w00JjF+wzBPo9CD/VcZwFWU4Up DlSQ== 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=X+Brt5uWhMI6bx5XaG8irHKpI0z26WzenLpwO/FwFOQ=; b=Jk33rwfkCzEK0eu3BBigMO6qFmXtEPZwwHz5vKOmEbCruov4s+jyTriNhVoAmUsKIl Se/Q/GMIqc0o66rG5177+DKXLbixlIh8kmqJ2SEaApphutRrzYlhuGdeV0av1tAVxKIR Lo2hrBMLNapUgOdVAwmOwSzmRBwgkimqiHye5mUrWNLhROnvQP5ln81BBdlNlbcROrxd iB11ZHnXnypYaFoxEoxWNJpmZSpdEZ4P73TAQSF46pALkZraoW5eIpXDutSFtW+SsfCB +1R80oZX1qnZFoCGekmW7JVr2OIClCVSsJx0HAZFRQAwCjYDSuuZMLU3QTK8RVaUzgB2 Mztw== X-Gm-Message-State: AHPjjUjEyiTG67laevI9m9gwLaAQ9t9kIJ4fJZS+ifYcvHtP+eYPiJls c96C+RLAlJlV7Se0 X-Google-Smtp-Source: ADKCNb7ZTAV+MyrIEIUt6lQg8Y4QiQo1MXLl0NUdweK3TlvS4Ge8Uu/XJ25WWWLG6oxk1S6WqD9P9w== X-Received: by 10.101.76.141 with SMTP id m13mr7439803pgt.103.1504996692927; Sat, 09 Sep 2017 15:38:12 -0700 (PDT) Date: Sat, 9 Sep 2017 15:38:11 -0700 From: Eric Pruitt To: zsh-users@zsh.org Subject: Re: Running "unset path" breaks PATH despite emulation being enabled Message-ID: <20170909223811.mjaoafbhugrijnyb@sinister.lan.codevat.com> References: <20170908082917.v5j4vczoq75vs5lk@sinister.lan.codevat.com> <20170909213806.52qezvyk766loeg3@sinister.lan.codevat.com> <170909152512.ZM9176@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <170909152512.ZM9176@torch.brasslantern.com> PGP-Key: https://www.codevat.com/pgp.asc#F8601B5D2511B4C3535232488DDDE2E6053692AB User-Agent: NeoMutt/20170113 (1.7.2) On Sat, Sep 09, 2017 at 03:25:12PM -0700, Bart Schaefer wrote: > > Is there a similar value in Z shell or a built-in I can use? > > $ZSH_ARGZERO in sufficiently recent versions of the shell will give you > the equivalent information, you just have to do the path search part > yourself This does not seem to be the case: playground$ cp $(which bash) $(which zsh) . '/home/ericpruitt/.local/bin/bash' -> './bash' '/usr/bin/zsh' -> './zsh' playground$ (PATH=/ ./bash -c 'echo $BASH') /tmp/tmp.FsPM5kO6Sn/playground/bash playground$ (PATH=/ ./zsh -c 'echo =$ZSH_NAME') zsh:1: zsh not found I'm not sure if I misunderstood or didn't clearly explain what I wanted. What want is for Z shell to return is the name to the invoked interpreter which is what $BASH shows even when $PATH doesn't contain Bash. Eric