ash: fix infinite loop on exit if tty is not there anymore
[oweals/busybox.git] / shell / README
1 Various bits of what is known about busybox shells, in no particular order.
2
3 2007-04-28
4 hush: Ctrl-C and Ctrl-Z for single NOFORK commands are working.
5 Memory and other resource leaks (opendir) are not addressed
6 (testcase is "rm -i" interrupted by ctrl-c).
7
8 2007-04-21
9 hush: "sleep 5 | sleep 6" + Ctrl-Z + fg seems to work.
10 "rm -i" + Ctrl-C, "sleep 5" + Ctrl-Z still doesn't work
11 for SH_STANDALONE case :(
12
13 2007-04-21
14 hush: fixed non-backgrounding of "sleep 1 &" and totally broken
15 "sleep 1 | sleep 2 &". Noticed a bug where successive jobs
16 get numbers 1,2,3 even when job #1 has exited before job# 2 is started.
17 (bash reuses #1 in this case)
18
19 2007-04-21
20 hush: "sleep 1 | exit 3; echo $?" prints 0 because $? is substituted
21 _before_ pipe gets executed!! run_list_real() already has "pipe;echo"
22 parsed and handed to it for execution, so it sees "pipe"; "echo 0".
23
24 2007-04-21
25 hush: removed setsid() and made job control sort-of-sometimes-work.
26 Ctrl-C in "rm -i" works now except for SH_STANDALONE case.
27 "sleep 1 | exit 3" + "echo $?" works, "sleep 1 | exit 3; echo $?"
28 shows exitcode 0 (should be 3). "sleep 1 | sleep 2 &" fails horribly.
29
30 2007-04-14
31 lash, hush: both do setsid() and as a result don't have ctty!
32 Ctrl-C doesn't work for any child (try rm -i), etc...
33 lash: bare ">file" doesn't create a file (hush works)