aboutsummaryrefslogtreecommitdiffstats
path: root/tests/exec.right
diff options
context:
space:
mode:
Diffstat (limited to 'tests/exec.right')
-rw-r--r--tests/exec.right55
1 files changed, 55 insertions, 0 deletions
diff --git a/tests/exec.right b/tests/exec.right
new file mode 100644
index 0000000..86a099c
--- /dev/null
+++ b/tests/exec.right
@@ -0,0 +1,55 @@
+before exec1.sub: one two three
+calling exec1.sub
+aa bb cc dd ee
+after exec1.sub with args: 0
+
+after exec1.sub without args: 0
+./execscript: line 20: notthere: command not found
+127
+/tmp/bash: notthere: No such file or directory
+127
+/bin/sh: /bin/sh: cannot execute binary file
+126
+./execscript: line 39: /: is a directory
+126
+/: /: is a directory
+126
+./execscript: line 46: .: /: is a directory
+1
+126
+0
+this is bashenv
+./exec3.sub: line 3: /tmp/bash-notthere: No such file or directory
+./exec3.sub: line 3: exec: /tmp/bash-notthere: cannot execute: No such file or directory
+126
+./execscript: line 70: notthere: No such file or directory
+127
+./execscript: line 73: notthere: No such file or directory
+127
+./execscript: line 76: notthere: command not found
+127
+this is sh
+this is sh
+unset
+ok
+5
+./exec5.sub: line 4: exec: bash-notthere: not found
+127
+this is ohio-state
+0
+1
+1
+0
+42
+42
+0
+1
+1
+0
+0
+1
+0
+1
+testb
+expand_aliases on
+after