Plan 9 from Bell Labs’s /usr/web/sources/contrib/sl/rc/snes
#!/bin/rc rfork e res=(575 538 839 767) while(~ $1 -*){ if(~ $1 -2) res=(778 744 1298 1199) args=($args $1) shift } game=$1 if(! ~ $game /*) game=`{pwd}^/$game args=($args $game) window -r $res 'label snes '$1'; games/snes -s '$"args