To access to the first argument of a function, I use
func() { echo $1; }
How to access directly to the last argument of a function in ash?
I do not want to use loops neither functions or complicated commands
You can use $($#).
$# is the number of arguments (which is equal to the index of the last argument), so $($#) is the last argument.