From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh-Users List <zsh-users@zsh.org>
Subject: Re: using variables from .zshenv in shell scripts
Date: Wed, 17 Dec 2014 09:04:06 -0800 [thread overview]
Message-ID: <141217090406.ZM583@torch.brasslantern.com> (raw)
In-Reply-To: <CADjGqHsNGPo5ikqitcpGq49ZpTAJKvoNHmMW-sW6epR5m6+cyQ@mail.gmail.com>
On Dec 17, 11:16am, TJ Luoma wrote:
}
} I have some variables set in ~/.zshenv which I want to use in shell
} scripts
}
} However, those variables do not seem to be defined when the shell
} script runs.
Is there possibly a value for ZDOTDIR already in your environment when
the script runs?
It's also possible that /etc/zshenv is doing something that causes your
$HOME/.zshenv to be skipped.
Try using
#!/bin/zsh -x
in the script to see what's actually executing.
next prev parent reply other threads:[~2014-12-17 17:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-17 16:16 TJ Luoma
2014-12-17 17:04 ` Bart Schaefer [this message]
2014-12-17 19:08 ` TJ Luoma
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=141217090406.ZM583@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@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).