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

Re: loading user startup files for zsh scripts



>>>>> On February 10, 2011 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:

> Change your shared file to have it require that $0 be passed as an
> argument, e.g.
>
> 	source /the/shared/zshenv $0

Hmmm, AFAICT, when loading .zshenv, $0 is /bin/zsh even for shell
scripts.  It does contain the script path once in the script.

Greg



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