Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

sh: Add forgotton test for set.

Obtained-from:  FreeBSD 222813
  • Loading branch information...
commit 9c3ade5cc3116bee59ca8cc9c55ffc469be7dbcf 1 parent 51bc6a9
Peter Avalos authored
Showing with 32 additions and 0 deletions.
  1. +32 −0 tools/regression/bin/sh/builtins/set1.0
View
32 tools/regression/bin/sh/builtins/set1.0
@@ -0,0 +1,32 @@
+# $FreeBSD: src/tools/regression/bin/sh/builtins/set1.0,v 1.2 2011/06/07 08:46:13 attilio Exp $
+
+set +C
+set +f
+set -e
+
+settings=$(set +o)
+set -C
+set -f
+set +e
+case $- in
+*C*) ;;
+*) echo missing C ;;
+esac
+case $- in
+*f*) ;;
+*) echo missing C ;;
+esac
+case $- in
+*e*) echo bad e ;;
+esac
+eval "$settings"
+case $- in
+*C*) echo bad C ;;
+esac
+case $- in
+*f*) echo bad f ;;
+esac
+case $- in
+*e*) ;;
+*) echo missing e ;;
+esac
Please sign in to comment.
Something went wrong with that request. Please try again.