Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

Obtained-from:  FreeBSD 222512
  • Loading branch information...
commit 58242512d56378f07f6e6a8eb66a2cd7ffa69b96 1 parent 88a45a9
authored December 25, 2011
6  tools/regression/bin/sh/parser/func2.0
... ...
@@ -0,0 +1,6 @@
  1
+# $FreeBSD: src/tools/regression/bin/sh/parser/func2.0,v 1.1 2011/05/30 21:49:59 jilles Exp $
  2
+
  3
+f() { return 42; }
  4
+f() { return 3; } &
  5
+f
  6
+[ $? -eq 42 ]
6  tools/regression/bin/sh/parser/func3.0
... ...
@@ -0,0 +1,6 @@
  1
+# $FreeBSD: src/tools/regression/bin/sh/parser/func3.0,v 1.1 2011/05/30 21:49:59 jilles Exp $
  2
+
  3
+name=/var/empty/nosuch
  4
+f() { true; } <$name
  5
+name=/dev/null
  6
+f

0 notes on commit 5824251

Please sign in to comment.
Something went wrong with that request. Please try again.