Skip to content

Commit

Permalink
sh: Add tests for some corner cases of 'case' exit status.
Browse files Browse the repository at this point in the history
Obtained-from:  FreeBSD 228007
  • Loading branch information
Peter Avalos committed Dec 25, 2011
1 parent c7e5ca9 commit e0bacf2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/regression/bin/sh/builtins/case11.0
@@ -0,0 +1,6 @@
# $FreeBSD: src/tools/regression/bin/sh/builtins/case11.0,v 1.1 2011/11/26 22:28:25 jilles Exp $

false
case x in
*)
esac
6 changes: 6 additions & 0 deletions tools/regression/bin/sh/builtins/case12.0
@@ -0,0 +1,6 @@
# $FreeBSD: src/tools/regression/bin/sh/builtins/case12.0,v 1.1 2011/11/26 22:28:25 jilles Exp $

false
case x in
y)
esac

0 comments on commit e0bacf2

Please sign in to comment.