[BusyBox] Problems with echo -e "\xNNN"

Steven Scholz steven.scholz at imc-berlin.de
Mon Jul 28 13:29:02 UTC 2003


Manuel,

>>I just noticed a problem with "echo" in BusyBox v0.61.pre. 
>>Unfortunatly I can't test it with a newer version. So maybe someone 
>>could verify this on a 1.0pre:
>>
>>I did:
>>
>>~ # echo -e "\061"
>>1
>>~ # echo -e "\x31"
>>\x31
>>
>>So it looks like "\xNNN" is not working.
> 
> 
> While bash's builtin echo supports hex escape sequences, the /bin/echo
> utility supports only octals.  So this isn't a busybox problem.

Thanks.

I reckon it wouldn't be hard to implement it anyway, would it?
Should we add this feature?

Steven




More information about the busybox mailing list