summaryrefslogtreecommitdiff
path: root/tests/func.tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/func.tests')
-rw-r--r--tests/func.tests10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/func.tests b/tests/func.tests
index 063f4e0..23dff44 100644
--- a/tests/func.tests
+++ b/tests/func.tests
@@ -132,7 +132,7 @@ func()
}
echo before: try to assign to FUNCNAME
-FUCNAME=7
+FUNCNAME=7
echo outside: FUNCNAME = $FUNCNAME
func
@@ -165,4 +165,12 @@ myfunction() {
myfunction
myfunction | cat
+segv()
+{
+ echo foo | return 5
+}
+
+segv
+echo $?
+
exit 0