The reason I did it like this is because:
- I didn’t know yay could invoke pacman
- I didn’t want yay “upgrading” my pacman packages with AUR packages.
But I was just misunderstanding yay. As another comment said before you, one can just run yay without any arguments and it accomplishes the same thing.
This is about indexes starting at 0, not about binary.