$calias(N)
returns information about the parents calling aliases
where N is the number associated the Nth caller of the alias
$calias(0) would return the number of parents
alias t1 {
t2 1
}
alias t2 {
t3 2
}
alias t3 {
echo -a $calias(1) return alias t1
echo -a $calias(1).sline the number of the line where it was called
echo -a $calias(1).sname the script name also
}
that would help people out to see where they di an error, as one alias can be used in many other alias and we don<T always know from where it was triggered
maybe adding also a $calias(0).event property so we can see by what event it was called from the start. as well as $calias(0).eventline and $calias(0).eventsname
Last edited by darkrift; 11/08/06 09:31 AM.