From mint-bounce@lists.fishpool.fi Thu Jan 14 17:50:58 2010 Message-ID: <4B4F9F55.9060205@atari-source.org> Date: Thu, 14 Jan 2010 17:48:53 -0500 From: Mark Duckworth User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 MIME-Version: 1.0 To: mint Subject: [MiNT] rpm brace expansion Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: mduckworth@atari-source.org Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Here's another issue happening which I am looking into but just reporting in case anyone knows what's going on. Bash has brace expansion which works like echo {one,two,red,blue} one two red blue So if you did mkdir -p stuff/{things,things1,things2} you expand to mkdir -p stuff/things stuff/things1 stuff/things2. This is used heavily in rpm spec files and this used to work. Our shell is working properly in that if you enclose the braced item in quotes it will not expand them but rather just use it literally echo '{one,two,red,blue}' will echo that brace string literally. So in rpm there is a line like mkdir -p $RPM_BUILD_ROOT/{bin,usr/bin,usr/man/man1} But what is actually being executed is mkdir -p '/var/tmp/pdksh-root/{bin,usr/bin,usr/man/man1}' which doesn't expand the braces which causes a failure. I'm not sure who is to blame yet, and more importantly I'm not sure if some packages are working while others are not. Thanks, Mark