summaryrefslogtreecommitdiff
path: root/scripts/test-shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/test-shell.c')
-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;