[patch] testsuite/testing.sh: removes obvious bashisms

Denys Vlasenko vda.linux at googlemail.com
Fri May 2 03:31:50 PDT 2008


On Friday 02 May 2008 12:13, Cristian Ionescu-Idbohrn wrote:
> > Either declare than we absolutely require echo -ne to work.
> 
> Easy.  Force the shebang lines to (in all scripts):
> 
>   #!/bin/bash

Is it a bashism? It's more like echo-ism...

> > Or have "echo-n", "echo-ne" and "echo-e" helper programs written in C. 8]
> 
> I have no problems with that, but I still think printf is easier and more
> flexible.

printf has more than just aestethic problems.

All "new-style" tests use echo -ne (indirectly). If you change that to printf,
you nned to audit them all for "%<letter>" format specifier.
--
vda


More information about the busybox mailing list