Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@andrewsardone
Forked from manuel/runix.rb
Created November 17, 2009 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewsardone/237260 to your computer and use it in GitHub Desktop.
Save andrewsardone/237260 to your computer and use it in GitHub Desktop.
print "You have no mail.\n"
10000.times {
'$ '.display
gets.each do | e |
if (e == "uname\n")
puts "Runix 1.0"
elsif (e == "halt\n")
exit
else
puts "command not found"
end
end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment