diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2014-10-02 10:38:06 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2014-10-02 13:09:31 +0000 |
commit | 72af290f4090809b8d11ae897670341621c96206 (patch) | |
tree | b8320ca3adb32b905f2a192d430ac4d96a8f613f | |
parent | 7eb92a3a464e6cb2ae25cef545dcdb34ccc74679 (diff) | |
download | morph-72af290f4090809b8d11ae897670341621c96206.tar.gz |
Add echo to the test shell
-rw-r--r-- | scripts/test-shell.c | 6 |
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; |