]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/exec13.sub
bash-5.1-alpha release
[thirdparty/bash.git] / tests / exec13.sub
CommitLineData
712f80b0
CR
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#
a0c0a00f
CR
14echo x1 | ( cat & wait )
15echo x1a | ( :& cat & wait )
16
17echo x2 | for f in 1; do
18 cat & wait
19done
20echo x2a | if true; then cat & wait; fi
21echo x2b | for (( i=0; i < 1; i++ )) ; do cat & wait; done
22
23echo x3 | { cat & wait; }
24
25lambda() { cat & wait; }
26echo x3a | lambda
27
28: ${TMPDIR:=/tmp}
29SRCF=$TMPDIR/bash-src-$$
30cat > $SRCF << \EOF
31cat & wait
32EOF
33echo x3b | . $SRCF
34rm -f $SRCF