ash: better fix for ash -c 'echo 5&' and ash -c 'sleep 5&'

with testcase
This commit is contained in:
Denis Vlasenko
2008-11-28 03:41:47 +00:00
parent 9e0a7c9c41
commit 727752d2d2
3 changed files with 56 additions and 29 deletions

View File

@ -0,0 +1,8 @@
$THIS_SH -c 'echo 3&'
d=`date`
while test "`date`" = "$d"; do true; done
d1=`date`
$THIS_SH -c 'sleep 1&'
d2=`date`
test "$d1" = "$d2" || echo BAD
echo End