On 02/14/2011 10:51 AM, Juergen Daubert wrote:
> Hello,
>
> I stumbled over the following while trying to build xterm from sources
> with bash 4.2:
>
> $:~> /bin/sh --version | head -n1
> GNU bash, version 4.2.0(1)-release (i686-pc-linux-gnu)
> $:~> /bin/sh
> sh-4.2$ a="${b:-'/foo/bar'}"
> sh: bad substitution: no closing `}' in ${b:-'/foo/bar'}
> sh-4.2$ a="${b:-'bar'}"
> sh-4.2$ a="${b:-/foo/bar}"
> sh-4.2$
>
> looks like bash, when called as sh, doesn't like the / character in
> single-quoted strings.Looks like a bug in how bash was modified for trying to obey this new POSIX rule: http://austingroupbugs.net/view.php?id=221 -- Eric Blake [email protected] +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
