pkgsrc-Users archive

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

Re: TOOL_DEPENDS or DEPENDS for configure requiring bash



   FWIW, it looks like POSIX allows the shell implementation some latitude
in determining whether an ambiguous construct is treated as arithmetic
or command, but it requires that conforming shell programs add space
when the command starts with a subshell. That is, the argument that the
script should change is stronger than the argument that bash should
change its behavior.

                                Gary Duzan


>> On Mon, Jul 11, 2022 at 07:00:46PM +0530, Mayuresh wrote:
>>> Cited line:
>>>
>>>   acx_cv_cc_export_dynamic="$((./libtool --config; echo eval echo
>>> \\$export_dynamic_flag_spec) | sh)"
>>
>> There is a ) missing at the end to match the (( at the start. It should
>> read:
>>
>> acx_cv_cc_export_dynamic="$((./libtool --config; echo eval echo
>> \\$export_dynamic_flag_spec) | sh))"
>>
>> Is this the original configure script, or is it patched already by
>> pkgsrc?
>>
>>> There are 14 lines with pattern $(( - in case that's the culprit.
>>
>> No.
>>
>> Martin
>>
>
>    Actually, it looks like the original was not expecting "$((" to start
> an arithmetic expression, but rather expected "$(" to start a shell
> command which happened to have "(" as the first character. Adding a
> space, i.e. "$( (", may be closer to what was intended.
>
>                                   Gary Duzan
>
>




Home | Main Index | Thread Index | Old Index