On Thu, Jul 29, 2010 at 10:27 AM, Leonid Lisovskiy <[email protected]> wrote:
> As I can see, there were a lot of scripts (expand.tests for example)
> which uses old scheme:
>
> test -f "$bindir/.config" && . "$bindir/.config"
> ...
> test x"$CONFIG_UNICODE_SUPPORT" = x"y" \
> && test x"$CONFIG_UNICODE_USING_LOCALE" != x"y" \
>
> probably, it should be converted to new scheme with "optional" clause,
> but I'm not sure.
I wonder how would you express that UNICODE_USING_LOCALE should NOT be on
with "optional".
Also, "optional" uses bashism ${var/foo/bar}:
test x"${OPTIONFLAGS/*:$1:*/y}" != x"y"
which was VERY SLOW in ash (it had CUBIC run time growth relative
OPTIONFLAGS length). I fixed it in ash.
hush does not even support ${var/foo/bar} yet.
I don't like "optional" thing because of these problems.
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox