Dear Sirs,
Regexp seems to be broken.
>address@hidden:~ # set -x ; IPP="ipsec0=eth0" virt=`expr $IPP :
>'\([^=].*\)=.*'` && echo $virt ; set +x
>+ IPP=ipsec0=eth0
>++ expr ipsec0=eth0 : '\([^=].*\)=.*'
>+ virt=
>+ set +x
>address@hidden:~ # expr --version
>expr (GNU coreutils) 5.93
>Copyright (C) 2005 Free Software Foundation, Inc.
>This is free software. You may redistribute copies of it under the terms of
>the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
>There is NO WARRANTY, to the extent permitted by law.
>
>Written by Mike Parker.
In the 5.2.1
> address@hidden:~ # set -x ; IPP="ipsec0=eth0" virt=`expr $IPP :
> '\([^=]*\)=.*'` && echo $virt ; set +x
> + IPP=ipsec0=eth0
> ++ expr ipsec0=eth0 : '\([^=]*\)=.*'
> + virt=ipsec0
> + echo ipsec0
> ipsec0
> + set +x
> address@hidden:~ # expr --version
> expr (GNU coreutils) 5.2.1
> Written by Mike Parker.
>
> Copyright (C) 2004 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
Best regards,
Serge mailto:address@hidden