bsh project

This commit is contained in:
brice.boisson
2022-02-08 18:50:03 +01:00
commit 7744ceaa33
109 changed files with 9536 additions and 0 deletions

6
tests/case/basic.sh Normal file
View File

@@ -0,0 +1,6 @@
case test in
te)
echo wrong;;
"test")
echo ok ;;
esac

View File

@@ -0,0 +1,16 @@
fun()
{
case fun in
f)
echo nope;;
*)
echo nice;;
esac
}
case call in
call)
fun;;
c)
echo what?;;
esac

View File

@@ -0,0 +1,13 @@
a=true
if $a
then
case $a in
false)
echo false;;
(true)
echo $a;;
esac
fi
echo end

View File

@@ -0,0 +1,4 @@
case test in
te|test|aaaaaaaaa)
echo true;;
esac