zsh-workers
 help / color / mirror / code / Atom feed
From: Eric Cook <llua@gmx.com>
To: zsh-workers@zsh.org
Subject: Re: Bug(?): unable to setopt pathscript
Date: Tue, 19 Feb 2019 22:35:29 -0500	[thread overview]
Message-ID: <3e163ae8-66dd-c01f-ba30-6472146f5aff@gmx.com> (raw)
In-Reply-To: <878syb5ecb.fsf@sfu.ca>

On 2/19/19 10:27 PM, Marie-Helene Burle wrote:
> Hello,
> 
> Noob warning: I think that there might be a bug, but the mistake may be on my end as I am fairly new to zsh.
> 
> I seem unable to set the option PATH_SCRIPT.
> 
> In my ~/.zshrc file, I have "setopt pathscript". It seems to be taken into account: if I run "setopt" in the cli, I get a list of options including "pathscript".
> 
> However, if I run "zsh script.sh", I get "zsh: can't open input file: script.sh". (My script is in $PATH).

An non-interactive shell doesn't read .zshrc, which is meant for interactive shells.
.zshenv is read for non-interactive shells. you can see more about the start up files in man 1 zsh

      reply	other threads:[~2019-02-20  3:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-20  3:27 Marie-Helene Burle
2019-02-20  3:35 ` Eric Cook [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3e163ae8-66dd-c01f-ba30-6472146f5aff@gmx.com \
    --to=llua@gmx.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).