Projekt

Allgemein

Profil

Fehler #614 » pipe_test_wa1.sh

Maximilian Seesslen, 25.02.2025 18:19

 
1
#!/bin/bash
2

    
3
set -e
4
set -u
5

    
6
fail()
7
{
8
    set -e
9
    echo A2.1
10
    gcc
11
    echo A2.2
12
    return 22
13
}
14

    
15
sta=0
16
echo "A"
17
# fail || sta=1
18
fail &
19
wait
20
echo "B: $sta"
21

    
22
echo "Fin."
23

    
24

    
25
#---fin------------------------------------------------------------------------
(3-3/5)