I think this would be nice to allow aliases to be used inside an alias. For example, instead of this:
Code:
alias stats {
echo -a Processor: $dll(a.dll,cpu,0)
echo -a Memory: $dll(a.dll,mem,0)
echo -a Screen: $dll(a.dll,scr,0)
}
We could have this:
Code:
alias stats {
; Instead of making an alias local for the current script
; which is already done with -l, the point here is to make
; it local to the alias
alias -l i return $dll(a.dll,$1,0)
echo -a Processor: $i(cpu)
echo -a Memory: $i(mem)
echo -a Screen: $i(scr)
}
In that situation, this shorten the code a little bit.. maybe we could say it's useless. But there's a lot of other situations in which that could be faster and could make the code easier to understand.