diff --git a/test/hello.sh b/test/hello.sh new file mode 100755 index 0000000000000000000000000000000000000000..485652830fa90519308221667c65549129a9078a --- /dev/null +++ b/test/hello.sh @@ -0,0 +1,3 @@ +#!/bin/sh +echo hello, world +exit 0 diff --git a/test/tool.sh b/test/tool.sh new file mode 100755 index 0000000000000000000000000000000000000000..470a5af20264d45a9f5ed3b19b31d77c6aaa103c --- /dev/null +++ b/test/tool.sh @@ -0,0 +1,22 @@ +#!/bin/sh +n=-n +e= +while : +do + echo $n "prompt: $e" + read cmd args + if test "$cmd" = echo + then + echo You wrote: $args + elif test "$cmd" = stderr + then + echo You wrote: $args >&2 + elif test "$cmd" = bye + then + echo Exiting + exit 0 + else + echo unknown command: $cmd + exit 1 + fi +done