projects
/
platform
/
upstream
/
bash.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported from ../bash-2.0.tar.gz.
[platform/upstream/bash.git]
/
tests
/
set-e-test
1
if : ; then
2
set -e
3
N=95
4
while :; do
5
# expr returns 1 if expression is null or 0
6
set +e
7
N_MOD_100=`expr $N % 100`
8
set -e
9
echo $N_MOD_100
10
N=`expr $N + 1`
11
if [ $N -eq 110 ]; then
12
break
13
fi
14
done
15
set +e
16
fi
17
# command subst should not inherit -e
18
set -e
19
echo $(false; echo ok)