hush in arm nommu environment

Per Hallsmark per.hallsmark at t2data.se
Mon Aug 6 01:21:50 PDT 2007


Hi all,

I've tried out the hush shell in busybox 1.6.1.
Seems to work fairly well with the patch last in
this mail.

The only(?) thing that doesn't work however, is
backspace... or to be more correct, it do backspace
in the commandline but it isn't displayed correctly.
If I have fancy editing enabling then the character
is moved to the RIGHT instead of LEFT when I backspace.
If I don't have fancy editing enabled, it prints out
some garbage (same all time) like:

~ # lsUP!) UP!)UP!) UP!)
(backspace pressed twice)

The only string I can find that looks like UP!) is:

[per at phlap3 busybox-1.6.1]$ grep -r UP\! *
networking/ping.c:      const char *dupmsg = " (DUP!)";
[per at phlap3 busybox-1.6.1]$

So it seems like a weird pointer issue...

I use busybox 1.6.1, gcc 4.1.2 and kernel 2.6.19-uc1 on
a arm7tdmi'ish mcu.

Anyone encountered this behaviour?

/Per

--- busybox-1.6.1.orig/shell/hush.c     2007-06-30 17:06:37.000000000 +0200
+++ busybox-1.6.1/shell/hush.c  2007-08-02 15:41:22.000000000 +0200
@@ -658,7 +658,11 @@
         pid_t pid;

         debug_printf_jobs("got tty sig %d in pid %d\n", sig, getpid());
+#if BB_MMU
         pid = fork();
+#else
+       pid = vfork();
+#endif
         if (pid < 0) /* can't fork. Pretend there was no ctrl-Z */
                 return;
         ctrl_z_flag = 1;



More information about the busybox mailing list