commit bash-20100525 snapshot

This commit is contained in:
Chet Ramey
2011-12-12 21:59:37 -05:00
parent eb0b2ad86b
commit 6faad6254a
160 changed files with 12731 additions and 588 deletions
+39
View File
@@ -0,0 +1,39 @@
# test FUNCNEST functionality -- bash-4.2
FUNCNEST=100
foo()
{
(( f++ ))
if (( f > 200 )); then
return 7
fi
foo
}
f=0
foo
echo $?
echo after: f = $f
f=0
foo
echo $?
echo after: f = $f
f=0
FUNCNEST=0
foo
echo $?
echo after FUNCNEST reset: f = $f
f=0
unset FUNCNEST
foo
echo $?
echo after FUNCNEST unset: f = $f
FUNCNEST=20
f=$(( FUNCNEST - 2 ))
foo
echo $?
echo after FUNCNEST assign: f = $f