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

Re: loading user startup files for zsh scripts



>>>>> On February 8, 2011 Peter Stephenson <Peter.Stephenson@xxxxxxx> wrote:

> You can test if [[ $0 == zsh ]].  If it is, either you're running a
> script helpfully called zsh, or you're not running a script at all.

/bin/zsh -c 'echo $0'

prints '/bin/zsh' so that's not exactly right I guess.  Isn't there
some case where it can end up '-zsh' as well?

thanks,
Greg



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