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

Re: [MiNT] rpm brace expansion



On 1/14/10 5:57 PM, Vincent Rivière wrote:
Mark Duckworth wrote:
So in rpm there is a line like mkdir -p
$RPM_BUILD_ROOT/{bin,usr/bin,usr/man/man1}

Beware this is a bashism.
It works when executed by bash, but not by EasyMiNT's sh.

I don't know which shell executes the RPM commands.
Similarly, "make" always use sh.

In conclusion, this syntax should be used only if you are sure that the script is executed by bash.

Hmm, ok. I know an older version of bash, bash and sh were the same. Maybe that explains how this came to be.

Thanks,
Mark