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:
Denys Vlasenko
2010-06-03 04:28:28 +02:00
parent 3e47cfec90
commit 08d8b3cee1
3 changed files with 28 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
sleeping for 3 sec
sleeping for 2 sec
Sleeping
Sleeping
Waiting
2 sec passed, sending USR1 to parent
USR1 received

View File

@@ -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 $$