Not sure what is going on.
on x86 :
busybox sed:
bash-3.00$ zo=`echo za | ./busybox sed s/a/b/`;echo $zo
<----- empty!!
while busybox (same version, gcc 3.4.0) on powerpc works correctly :
(none):$zo=`echo za | /bin/busybox sed s/a/b/`;echo $zo
zb <--- OK
bash-3.00$ ./busybox
BusyBox v1.5.1 (2007-05-20 14:56:40 EDT) multi-call binary
Copyright (C) 1998-2006 Erik Andersen, Rob Landley, and others.
Licensed under GPLv2. See source distribution for full notice.
...
RH4.0 sed :
bash-3.00$ zo=`echo za | sed s/a/b/`;echo $zo
zb <--- OK
bash-3.00$ sed --version
GNU sed version 4.1.2
bash-3.00$ gcc -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.5/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-java-awt=gtk
--host=i386-redhat-linux
Thread model: posix
gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)
Could it be related to the compiler version? Anyone else seeing this?
Thanks.
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox