Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

sh: Add forgotton test for set.

Obtained-from:  FreeBSD 222813
  • Loading branch information...
commit 9c3ade5cc3116bee59ca8cc9c55ffc469be7dbcf 1 parent 51bc6a9
authored December 25, 2011

Showing 1 changed file with 32 additions and 0 deletions. Show diff stats Hide diff stats

  1. 32  tools/regression/bin/sh/builtins/set1.0
32  tools/regression/bin/sh/builtins/set1.0
... ...
@@ -0,0 +1,32 @@
  1
+# $FreeBSD: src/tools/regression/bin/sh/builtins/set1.0,v 1.2 2011/06/07 08:46:13 attilio Exp $
  2
+
  3
+set +C
  4
+set +f
  5
+set -e
  6
+
  7
+settings=$(set +o)
  8
+set -C
  9
+set -f
  10
+set +e
  11
+case $- in
  12
+*C*) ;;
  13
+*) echo missing C ;;
  14
+esac
  15
+case $- in
  16
+*f*) ;;
  17
+*) echo missing C ;;
  18
+esac
  19
+case $- in
  20
+*e*) echo bad e ;;
  21
+esac
  22
+eval "$settings"
  23
+case $- in
  24
+*C*) echo bad C ;;
  25
+esac
  26
+case $- in
  27
+*f*) echo bad f ;;
  28
+esac
  29
+case $- in
  30
+*e*) ;;
  31
+*) echo missing e ;;
  32
+esac

0 notes on commit 9c3ade5

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