summaryrefslogtreecommitdiffstats
path: root/test/bashisms/return.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/bashisms/return.sh')
-rw-r--r--test/bashisms/return.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/bashisms/return.sh b/test/bashisms/return.sh
new file mode 100644
index 0000000..c6735e0
--- /dev/null
+++ b/test/bashisms/return.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+foo() {
+ return -- 1 # BASHISM
+}
+
+bar () {
+ return 256 # BASHISM
+}
+
+moo () {
+ return -1 # BASHISM
+}