Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: using variables from .zshenv in shell scripts



Now it's doing it, when it wasn't before.

I am left to assume that I had somehow managed to not actually save
the changes to my ~/.zshenv or some such oddity, because I cannot
duplicate it now.

*sigh*

All I need is 3-4 weeks of sleep and I'm sure I'll be back on top of things.

Sorry for the bother

TjL

On Wed, Dec 17, 2014 at 12:04 PM, Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
> 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.



Messages sorted by: Reverse Date, Date, Thread, Author