summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2014-10-02 10:38:06 +0000
committerRichard Maw <richard.maw@gmail.com>2014-10-08 12:14:03 +0000
commitfc2d9528f4e011559c5a34452a76fd5d5f8718e4 (patch)
tree145078f4320b18ee18aafdcfd6a3586f2580c939
parent2689f61a305ec576f229f1d9f0929d7eb11d1acc (diff)
downloadmorph-fc2d9528f4e011559c5a34452a76fd5d5f8718e4.tar.gz
Add echo to the test shell
-rw-r--r--scripts/test-shell.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/test-shell.c b/scripts/test-shell.c
index 7975c188..e3ef1ff1 100644
--- a/scripts/test-shell.c
+++ b/scripts/test-shell.c
@@ -133,6 +133,12 @@ int main(int argc, char *argv[]) {
strstr(line, "false ") == line) {
ret = 1;
break;
+ } else if (strstr(line, "echo ") == line) {
+ if (puts(line + sizeof("echo ") - 1) == EOF){
+ perror("echo");
+ ret = 1;
+ break;
+ }
} else {
ret = 127;
break;