[ovs-dev] shell substitution "${withval/:/}"

Takashi Yamamoto yamamoto at midokura.com
Wed Oct 14 06:32:38 UTC 2015


On Wed, Oct 14, 2015 at 1:35 PM, IWAMOTO Toshihiro
<iwamoto at valinux.co.jp> wrote:
> At Wed, 14 Oct 2015 13:06:01 +0900,
> Takashi Yamamoto wrote:
>>
>> hi,
>>
>> m4/openvswitch.m4 has the following substitution.
>> NetBSD's /bin/sh complains on that.
>>
>> PTHREAD_WIN32_DIR_DLL=/${withval/:/}/dll/x64
>>
>> i've looked at bash's man page but i couldn't find this substitution.
>
> My bash manpage has the following:
>
>        ${parameter/pattern/string}
>               Pattern substitution.  The pattern is expanded to produce a pat-
>               tern just as in pathname expansion.  Parameter is  expanded  and
>               the  longest match of pattern against its value is replaced with

thank you!

>
>> can you explain what does it mean, and even better, replace it
>> with something more portable?  thank you.
>> _______________________________________________
>> dev mailing list
>> dev at openvswitch.org
>> http://openvswitch.org/mailman/listinfo/dev



More information about the dev mailing list