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

3
tests/subshells/basic.sh Normal file
View File

@@ -0,0 +1,3 @@
a=21
(echo $a; a=42; echo $a)
echo $a

View File

@@ -0,0 +1,7 @@
fun()
{
echo "First fun"
}
(fun; fun() { echo "Second fun"; }; fun;)
fun;

View File

@@ -0,0 +1,9 @@
a=12
b=13
c=14
d=15
e=16
echo "$a $b $c $d $e"
(echo "$a $b $c $d $e"; a=21; c=41; e=61; echo "$a $b $c $d $e";)
echo "$a $b $c $d $e";

View File

@@ -0,0 +1,3 @@
a=12
(echo $a; a=13; (echo $a; a=42; echo $a); echo $a)
echo $a