From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id F2C132851A for ; Fri, 26 Jan 2024 16:51:04 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1706284264; b=DypaBe19cv1OQx17nc1TjRmnDWnRjcblYPZpeSvZX/nxfGW0VrpsEHx9XTIbVZ/WWyqoBhitQV +xhIzWoN2ZOCAzNOSGnWCnaCaCPdXKOYGw5Mne85/XyzNzqS1dqZyv7bi7PLog4D6apNuICUUd 5dufWVg54UDIikdHQJBAeOdOXD3vlE76rM0PlJNtp5k+qDHG8Dwz46agXWVK1Z+KDmAgSWM7tJ mrP1XgC1CaiEswpFQSz/hejinNO5qDEjwrleImxHkSY7KssKDcLjOjmdoTTPTqnkfpYDYIUV88 JyzW71dyjYwTbfBkAUY5V4E1IceT+gdlUya7Vvc0choUMA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (email.dondley.com) smtp.remote-ip=34.203.132.18; dkim=pass header.d=dondley.com header.s=default header.a=rsa-sha256; dmarc=pass header.from=dondley.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1706284264; bh=L4EDFG/JLDg+XNMZDPuDDnPj7cukU/pMIieFcD/UuYA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:References:To:Cc:In-Reply-To:Date:Subject:MIME-Version: Content-Type:Message-ID:From:DKIM-Signature:DKIM-Signature; b=YBvN2iMkpONMSsUf3qUknVFYUaeZMBjTEGoHMe3Pcqq+FqumSxvp+b64xwxfzB46Gd4D5ERYBG 1IPebfbfLbdBij1CAZ9EtbK02E/OPAo8gNLo69ax7JD3QmyjsW6fI9MnnyvHAjU+2pRM/ri6tm DYnVTVwZruZvdgOZXWVMjf52YzxEq/i7l1vkLImFe59eMa5oM/fGK5ZqlDNcLsibqx6cgNwInD KdapEkF2pY7ZcLi1NbEywgQVJHqgA2rKKEOsyseukq/TY6Y+1sCuqLzwb0ddW9zZLkitOkTUq6 /4LZe5QBETIPIizT4LTmMJhDHTdbzAGDMODkdUKzaosNbA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:References:To:Cc:In-Reply-To:Date: Subject:Mime-Version:Content-Type:Message-Id:From:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=yoFqJrnW3z9evHxlUt0ItnkAApXUVP+tsQCRoeekk0s=; b=fQrOBcYnMlDakeTmTmes2i9zzw KMbRSIy0pbX++joZKqdh/FXmgC2Ww0A3MSUE5ulMRUVHYaljy8PCe/ALoBb+XwoWGtYN0PUJZzDLK 5DKhpoxZfbxUoSfmFU8RdXPYgkTm4SdQjT96FsCb/axgLDaBbCdBdl50jrt99DhMJchyxftBc+JZz 9mnUaHkH7JPKQuO6/VbIgc5eEVCKfTirkUPygpf72RRAaCukbyKKNor42yI52Byrp/RflPiSXbEpn boTaAsFU3/EScjZ9OYDWCP4eDsj1halwqZKNQF5U+WpeTG7SNg583sK0Jtrg7QHvM/+0rq+dt2Jrd 4Qpho4wQ==; Received: by zero.zsh.org with local id 1rTOTw-000N4N-Ct; Fri, 26 Jan 2024 15:51:04 +0000 Authentication-Results: zsh.org; iprev=pass (email.dondley.com) smtp.remote-ip=34.203.132.18; dkim=pass header.d=dondley.com header.s=default header.a=rsa-sha256; dmarc=pass header.from=dondley.com; arc=none Received: from email.dondley.com ([34.203.132.18]:35416) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rTOSU-000MKs-H2; Fri, 26 Jan 2024 15:49:35 +0000 Received: from smtpclient.apple (unknown [216.193.141.189]) by email.dondley.com (Postfix) with ESMTPSA id D85422030F; Fri, 26 Jan 2024 10:49:32 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dondley.com; s=default; t=1706284172; bh=L4EDFG/JLDg+XNMZDPuDDnPj7cukU/pMIieFcD/UuYA=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From; b=u1QBqBjSejGOzCztNXZiwim7wrWxnVbf78fywZAuLsXoK5yx7q+Njq7d55+BV5Atn PA1iDS1uYmau1qJ9rsp1jPbFpBUY+XAt/aL4ZF61cZO8V2wzjNFXqETgpLpdchj0Q1 S4Plps4oB8wVDAY0YgDDZlpmFlcsW0Kygw2RXsIjOU0BEYiIizT5XjLwa4FhJQ8sI0 4929yupMbwbf+Kjqtg2EfeELRtv/EMwdTIliSdDALcRaUuN+ltfhov3nt/+xHnH56Z SsY3LDnu9AFqRNK+mxVvN2l1NpDC3LO33/kqLOvjPq71t9WbnvKYS3ZhArz5bESsvz MzG7cScwYnWwQ== From: Steve Dondley Message-Id: <316F625D-EC13-43C5-808F-B78DD09E906C@dondley.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_B682D681-D65F-422B-9A76-0700DB67C8FC" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.400.31\)) Subject: Re: Can't tell the difference in operation between PATH_SCRIPT and NO_PATH_SCRIPT Date: Fri, 26 Jan 2024 10:49:22 -0500 In-Reply-To: Cc: zsh-users@zsh.org To: Bart Schaefer References: <73E4333B-C282-4A58-837C-A50F73E13289@dondley.com> <680FA5D3-E8FD-49F2-9AE3-C169A6D9DA9E@dondley.com> <4a1df20e-70c4-41ed-b370-4fbbae0619b9@app.fastmail.com> <3DC872AC-5B19-468D-85D5-5D3A501EF7E9@dondley.com> <2CF29A22-6721-4275-8E92-7FF61CE4CDCB@dondley.com> X-Mailer: Apple Mail (2.3774.400.31) X-Seq: 29578 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: --Apple-Mail=_B682D681-D65F-422B-9A76-0700DB67C8FC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii >=20 > You have this almost correct. Sourcing for interactive mode has > nothing to do with it. It always applies to the scriptname argument > passed to a new zsh, so it has to be in effect before zsh searches for > the script. I may not be following you here. If I have a script at ./dir/some_script and I do: > PATH=3D./dir > setopt pathscript Then do > /bin/zsh some_script It will not look for the script in $PATH as far as I can tell and fails = with zsh: can't open input file: some_script You are saying my last command above should work with pathscript on?=20= --Apple-Mail=_B682D681-D65F-422B-9A76-0700DB67C8FC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii


You have this almost correct.  Sourcing = for interactive mode has
nothing to do with it.  It always = applies to the scriptname argument
passed to a new zsh, so it has to = be in effect before zsh searches for
the = script.

I may not be = following you here.

If I have a script at = ./dir/some_script and I do:

> = PATH=3D./dir
> setopt = pathscript

Then = do

> /bin/zsh = some_script

It will not look for the script in = $PATH as far as I can tell and fails with zsh: can't open input = file: some_script

You are saying my last = command above should work with pathscript on? 
= --Apple-Mail=_B682D681-D65F-422B-9A76-0700DB67C8FC--