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

[MiNT] rpm brace expansion



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