Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

sh: Add tests for some somewhat obscure aspects of function definitions.

Obtained-from:  FreeBSD 222512
  • Loading branch information...
commit 58242512d56378f07f6e6a8eb66a2cd7ffa69b96 1 parent 88a45a9
Peter Avalos authored
View
6 tools/regression/bin/sh/parser/func2.0
@@ -0,0 +1,6 @@
+# $FreeBSD: src/tools/regression/bin/sh/parser/func2.0,v 1.1 2011/05/30 21:49:59 jilles Exp $
+
+f() { return 42; }
+f() { return 3; } &
+f
+[ $? -eq 42 ]
View
6 tools/regression/bin/sh/parser/func3.0
@@ -0,0 +1,6 @@
+# $FreeBSD: src/tools/regression/bin/sh/parser/func3.0,v 1.1 2011/05/30 21:49:59 jilles Exp $
+
+name=/var/empty/nosuch
+f() { true; } <$name
+name=/dev/null
+f
Please sign in to comment.
Something went wrong with that request. Please try again.