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

IWAMOTO Toshihiro iwamoto at valinux.co.jp
Wed Oct 14 04:35:32 UTC 2015


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

> 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