]> git.ipfire.org Git - thirdparty/bash.git/blob - tests/exec13.sub
76e132464f226b8ff83fc3f44d1f55a28aed014b
[thirdparty/bash.git] / tests / exec13.sub
1 # This program is free software: you can redistribute it and/or modify
2 # it under the terms of the GNU General Public License as published by
3 # the Free Software Foundation, either version 3 of the License, or
4 # (at your option) any later version.
5 #
6 # This program is distributed in the hope that it will be useful,
7 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 # GNU General Public License for more details.
10 #
11 # You should have received a copy of the GNU General Public License
12 # along with this program. If not, see <http://www.gnu.org/licenses/>.
13 #
14 echo x1 | ( cat & wait )
15 echo x1a | ( :& cat & wait )
16
17 echo x2 | for f in 1; do
18 cat & wait
19 done
20 echo x2a | if true; then cat & wait; fi
21 echo x2b | for (( i=0; i < 1; i++ )) ; do cat & wait; done
22
23 echo x3 | { cat & wait; }
24
25 lambda() { cat & wait; }
26 echo x3a | lambda
27
28 : ${TMPDIR:=/tmp}
29 SRCF=$TMPDIR/bash-src-$$
30 cat > $SRCF << \EOF
31 cat & wait
32 EOF
33 echo x3b | . $SRCF
34 rm -f $SRCF