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

Re: [MiNT] rpm brace expansion



2010/1/14 Andreas Schwab <schwab@linux-m68k.org>:
> Vincent Rivière <vincent.riviere@freesbee.fr> writes:
>
>> 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's actually a cshism.
>
>> In conclusion, this syntax should be used only if you are sure that the
>> script is executed by bash.
>
> Or csh :-)
>
> Andreas.
>
> --
> Andreas Schwab, schwab@linux-m68k.org
> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
> "And now for something completely different."
>
any RPM bash script should contain the #!/bin/bash, otherwise the
script must be sh complient

if you get this issue again (or are willing to recreate it) can you test
cat <<EOF
echo A
echo B
EOF

in a sh script.