Unix/Linux Go Back    



Tetris Game -- based on a shell script (new algorithm)

Shell Programming and Scripting




Kindly Note - This is a Single User Post by Forum Member sea Regarding:
Tetris Game -- based on a shell script (new algorithm).
Please Follow The Primary Link Above to View the Full Discussion.

   
Old Unix and Linux 12-31-2015
sea sea is offline
Registered User
 
Join Date: Sep 2013
Last Activity: 14 October 2016, 2:49 PM EDT
Location: Swissh
Posts: 1,285
Thanks: 256
Thanked 226 Times in 209 Posts
Try downloading the tarball, or make sure you copy-pasted everything (within the code block) from the first page.
Runs well on my machine.

If you run it it sh ./scriptname, and if it still fails, what is the output of:

Code:
ls -l /bin/sh

, if its redirecting somewhere else than bash, you'll need to call the script using:

Code:
bash ./scriptname

hth