bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bash 4.2, parameter expansion problem


From: Juergen Daubert
Subject: bash 4.2, parameter expansion problem
Date: Mon, 14 Feb 2011 18:51:32 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

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.


Thanks
Juergen

-- 
Juergen Daubert  |  mailto:address@hidden  
Korb, Germany    |  http://jue.li/crux




reply via email to

[Prev in Thread] Current Thread [Next in Thread]