ash: fix redirection of fd 0 in scripts are sourced from interactive ash
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
sleeping for 3 sec
|
||||
sleeping for 2 sec
|
||||
Sleeping
|
||||
Sleeping
|
||||
Waiting
|
||||
2 sec passed, sending USR1 to parent
|
||||
USR1 received
|
||||
|
@@ -1,6 +1,6 @@
|
||||
trap "echo USR1 received" USR1
|
||||
stub() {
|
||||
echo "sleeping for $1 sec"
|
||||
echo "Sleeping"
|
||||
sleep $1
|
||||
echo "$1 sec passed, sending USR1 to parent"
|
||||
kill -USR1 $$
|
||||
|
Reference in New Issue
Block a user