summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorJon <[email protected]>2012-05-23 12:17:42 -0400
committerJon <[email protected]>2012-05-23 12:17:42 -0400
commit44f2c59a612ec5d10e9bd74d7194524eb1c5c7e2 (patch)
tree245fd961e95188830029c2bf396a7dd286a9391d /tools
parent91b492969730a19875beef5cbb761f9e5741afea (diff)
downloadmruby-44f2c59a612ec5d10e9bd74d7194524eb1c5c7e2.tar.gz
mruby-44f2c59a612ec5d10e9bd74d7194524eb1c5c7e2.zip
Teach mirb another way to quit
Diffstat (limited to 'tools')
-rw-r--r--tools/mirb/mirb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/mirb/mirb.c b/tools/mirb/mirb.c
index 459923768..59e5046cb 100644
--- a/tools/mirb/mirb.c
+++ b/tools/mirb/mirb.c
@@ -162,7 +162,8 @@ main(void)
last_code_line[char_index] = '\0';
- if (strcmp(last_code_line, "quit") == 0) {
+ if ((strcmp(last_code_line, "quit") == 0) ||
+ (strcmp(last_code_line, "exit") == 0)) {
if (code_block_open) {
/* cancel the current block and reset */
code_block_open = FALSE;