an other way witch i prefer is
alias alias1 {
;do stuff
$alias3(1)
}
alias alias2 {
;do stuff
$alias3(2)
}
alias alias3 {
echo 4 that alias that called this alias3 was alias $+ $1
;do stuff
}
this way u simpely give parameters to your alias call witch can be reado ut by $1 for first parameter $2 for 2nd and so on