diff options
Diffstat (limited to 'bin/sh/tests/builtins/return8.0')
| -rw-r--r-- | bin/sh/tests/builtins/return8.0 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/sh/tests/builtins/return8.0 b/bin/sh/tests/builtins/return8.0 new file mode 100644 index 000000000000..c9f5b0a03c2f --- /dev/null +++ b/bin/sh/tests/builtins/return8.0 @@ -0,0 +1,12 @@ + +if [ "$1" = nested ]; then + return 17 +fi + +f() { + set -- nested + . "$0" + return $(($? ^ 1)) +} +f +exit $(($? ^ 16)) |
