case1.0 revision 172440
1172440Sstefanf#$FreeBSD: head/tools/regression/bin/sh/builtins/case1.0 172440 2007-10-04 16:14:48Z stefanf $ 2172440Sstefanff() 3172440Sstefanf{ 4172440Sstefanf false 5172440Sstefanf case $1 in 6172440Sstefanf foo) true ;; 7172440Sstefanf bar) false ;; 8172440Sstefanf esac 9172440Sstefanf} 10172440Sstefanf 11172440Sstefanff foo || exit 1 12172440Sstefanff bar && exit 1 13172440Sstefanff quux || exit 1 14