I'm sorry to be blowing up the forums with so many cryptic titles lately...
I was looking for an identifier that can return how many levels a script has in it. I don't know how else to explain it, so let me show you:
alias test {
echo -a alias test was called at level $level
test_part2
}
alias test_part2 {
echo -a alias test_part2 was called at level $level
}
The output should look something like
alias test was called at level 1
alias test_part2 was called at level 2
I just want to know if such an identifier exists. Thanks for putting up with my constant pestering!