Submenu loops until you don't return a value, and then it will send "end" as $1

If you do this for example:

Code:
alias infinite_loop { return $1: noop }

menu menubar {
  $submenu($infinite_loop($1))
}


You'll see that it adds hundreds of items to the menu.