Its hard to believe but that's just the point
if I leave your comments its working
if I do "./hush 2>/dev/null" it ok
but if I remove the comments and recompile its NOT ok
I don't get this ?
the code is:
if (cmdedit_x >= num) {
const char *bbbb = "\b\b\b\b";
//bb_error_msg("\n initial bbbb=%02x %02x %02x %02x (%p)", bbbb[0], bbbb[1],
bbbb[2], bbbb[3], bbbb);
cmdedit_x -= num;
bbbb += 4;
if (num <= 4) {
bbbb -= num;
//asm volatile("# HERE");
//bb_error_msg("\n bbbb=%02x %02x %02x %02x (%p)", bbbb[0], bbbb[1],
bbbb[2], bbbb[3], bbbb);
printf(bbbb);
return;
}
printf("\033[%uD", num);
return;
}
so if I compile with the // its NOT ok
if I compile with the // removed its ok (if I redirect the comment to null)
??
this is a bit strange
i hope im not making a stuppid error again
> -----Oorspronkelijk bericht-----
> Van: Denys Vlasenko [mailto:[EMAIL PROTECTED]
> Verzonden: dinsdag 19 februari 2008 0:27
> Aan: Martinb_ARM_NOMMU_KISSDVD
> CC: [email protected]
> Onderwerp: Re: Command line editing give a wrong result for me on
> hush shell 1.9.1
>
>
> On Monday 18 February 2008 23:56, Martinb_ARM_NOMMU_KISSDVD wrote:
> > this is the output on "a{backspace}"
> >
> > /hdd/newscript # ./hush
> > /hdd/newscript # ahush:
> > initial bbbb=08 08 08 08 (0x1559d6c)
> > hush:
> > bbbb=08 00 00 00 (0x1559d6f)
> > hush:
> > initial bbbb=08 08 08 08 (0x1559d6c)
> > hush:
> > bbbb=08 00 00 00 (0x1559d6f)
>
> Now it looks okay.
>
> Does it work right if you redirect these messages to /dev/null?
> Try "./hush 2>/dev/null".
>
> If yes, try removing these two bb_error_msg() calls
> and rebuilding. Still works right?
> --
> vda
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox