On Monday 22 September 2008 22:50:10 Denys Vlasenko wrote:
> Admit it, both things are important:
>
> * Following standards is important when you write code,
>   otherwise it will be difficult to support it

Agreed :)

>
> * Being able to support some extensions dialects of a particular shell
>   is important is you have a big body of shell code you need to
>   run, and you just can't rewrite it all in purely standard shell.
>
> Different situations, different needs.

Ah, but Mr Landley expects this to work

#!/bin/sh
foo="bar"
dead="${foo//ar/eef}"
if [[ ${foo} == ${dead} ]]; then
        echo -e "foo is dead beef\n"
else
        echo -e "foo is not dead beef\n"
fi

I have no issues if you want to wang bash into bb, but please don't go 
pretending that /bin/sh is bash :)

Thanks

Roy
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to