It's not enough he ruined my state, he has to ruin my comic-con now too...
ok open your home folder, right click the $foo file and go to the permissions tab, then click the executable box and close. then double click that same file. oh wait, you arent using GNOME, well lemme figure out how to do that in KDE, the menus might be different.....etc...etc
copy/paste this into terminal: $ chmod +x ~/$foo