job control,buggy
bug fix
Full job control.
fix fg 1 bug when there is no job
count remaining child correctly.
refctoring
Bug fix: "cat file | tail" now tail will terminate automatically.
Remove unneeded code