Skip to content

Instantly share code, notes, and snippets.

@amoeba
Created November 17, 2009 22:39
Show Gist options
  • Save amoeba/237346 to your computer and use it in GitHub Desktop.
Save amoeba/237346 to your computer and use it in GitHub Desktop.
print("You have no mail");
running <- T;
while(running) {
c <- scan(n=1, what="character", quiet=T)
if(c=="uname") {
print("RUnix 1.1")
} else if(c=="halt") {
running <- F
} else {
print("Command not found.")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment