I simply want recursion to be allowed for a reasonable amount of iteration.
In the past, recursion was allowed but limited with a command /maxdepth, but that command would only control the depth that could be used (the number of iteration), I suggested to add the alias's name to /maxdepth for protection, to only allows very specific alias to be able use recursion.
alias factorial {
if ($1 <= 1) return 1
return $calc( $1 * $factorial( $calc($1 -1) ) )
}
Would work.