$Identifier that returns how deep a script is? - 29/12/19 02:30 AM
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:
The output should look something like
I just want to know if such an identifier exists. Thanks for putting up with my constant pestering!
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:
Code
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
Code
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!