Invalid calls of function() should result in an error, not in undefined behavior.
The doc of the function command says: "Referencing to ARGV# arguments beyond ARGC have undefined behavior." Why not just throw a fatal error?
The doc of the function command says: "Referencing to ARGV# arguments beyond ARGC have undefined behavior." Why not just throw a fatal error?