Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Detect if a script is being sourced vs executed
On 13/09/2014, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Sep 12, 8:05pm, Peter Stephenson wrote:
> }
> } I was surprised to find the zsh/parameter modules series of array
> } parameters that allow you to trace back the functions, sourced files,
> } etc. being executed don't give this information, which is present
> } internally. This adds $functypestack to do this.
>
> Is this in some way NOT redundant with $zsh_eval_context ? Other than
> apparently being in the reverse order?
You'rr right, I was looking in the wrong place. It can
be replacef simply by a cross-reference.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author