On Wed, Sep 7, 2016 at 9:27 AM, Burton, Ross <[email protected]> wrote:

> On 6 September 2016 at 23:11, Henry Bruce <[email protected]> wrote:
>
>> +       if [[ "$libname" == *.so ]]; then
>>
>
> That's a lot of bashisms in one place ;)
>
> [ not [[
> = not ==
> *.so will need to be escaped in case it matches anything in cwd and
> expands.
>

Good catch, I expect what he really needs is a case statement, since he
doesn’t want an exact match, but to check if the wildcard matches.

case “$libname” in
    *.so)
        …
        ;;
esac
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to