Command line editing give a wrong result for me on hush shell
Martinb_ARM_NOMMU_KISSDVD
martinb at zeelandnet.nl
Tue Jan 8 14:21:49 PST 2008
After reading the README, TODO and some part of the source I want to report
the following behaviour
Im still using the lash (1.2) and Im starting to switch to hush
(I already need hush for scripting and I want to remove lash so I can spare
some space on the flashrom)
Problem is a bit hard to explain but in general I just see strange
characters if I use the backspace and cursor keys
To make it simple to explain I give some output on strace
1e output is strace attached to a working lash (1.2.0)
and i do type the keys <a> <b> <cursor left> <backspace>
read(0, "a", 1) = 1
write(1, "a", 1) = 1
read(0, "b", 1) = 1
write(1, "b", 1) = 1
read(0, "\33", 1) = 1
read(0, "[", 1) = 1
read(0, "D", 1) = 1
write(1, "\10", 1) = 1
read(0, "\177", 1) = 1
write(1, "\10b \10\10", 5) = 5
read(0,
so this is giving me the correct results
If I do the exact same thing from hush (1.9.0) I get:
/ # strace -p 219
Process 219 attached - interrupt to quit
read(0, "a", 1) = 1
write(1, "a", 1) = 1
read(0, "b", 1) = 1
write(1, "b", 1) = 1
read(0, "\33", 1) = 1
read(0, "[", 1) = 1
read(0, "D", 1) = 1
write(1, " \276\377\217\275\336\337\177\320\363\237\345BL", 14) = 14
read(0, "\177", 1) = 1
write(1, " \276\377\217\275\336\337\177\320\363\237\345BLb : \377"..., 30) =
30
read(0,
So I get garbage on my console
Its possible I make some error like I did on the hush compilation (sorry)
but why does lash give me the correct results with lineediting on the same
toolchain?
More information about the busybox
mailing list