[PATCH] Don't use Bash-specific ${parameter/pattern/string} expansion

Mike Frysinger vapier@gentoo.org
Tue Sep 10 15:24:00 GMT 2013


On Sunday 08 September 2013 16:18:53 Patrick 'P. J.' McDermott wrote:
>  	   case $$call in \
>  	   *@@*) \
> -	     ver=$${call##*@}; call=$${call%%@*}; ver=$${ver//./_}; \
> +	     ver=$${call##*@}; call=$${call%%@*}; \
> +	     ver=`echo $ver | sed 's/\./_/g'`; \

you need to quote "$ver"
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20130910/be1c9877/attachment.sig>


More information about the Libc-alpha mailing list