Rearrange prompt declarations so ret is first

Otherwise it gets the exit value of the previous declaration