diff --git a/check.sh b/check.sh index db7486d..ac43138 100755 --- a/check.sh +++ b/check.sh @@ -78,6 +78,7 @@ tests=' 40-assignment-eval-echo 41-dot +42-sh 50-iohere 50-iohere-builtin diff --git a/test/41-dot.stdout b/test/41-dot.stdout new file mode 100644 index 0000000..a486f1a --- /dev/null +++ b/test/41-dot.stdout @@ -0,0 +1,2 @@ +bar +bar diff --git a/test/42-sh.sh b/test/42-sh.sh new file mode 100644 index 0000000..aeb1a25 --- /dev/null +++ b/test/42-sh.sh @@ -0,0 +1,2 @@ +sh test/data/script.sh +echo $foo diff --git a/test/42-sh.stdout b/test/42-sh.stdout new file mode 100644 index 0000000..9972d7e --- /dev/null +++ b/test/42-sh.stdout @@ -0,0 +1,2 @@ +bar + diff --git a/test/data/script.sh b/test/data/script.sh index 74d0a43..4b4cd91 100644 --- a/test/data/script.sh +++ b/test/data/script.sh @@ -1 +1,2 @@ foo=bar +echo $foo