On 22.11.2009 18:49, Rainer Jung wrote:
> On 22.11.2009 18:18, Arfrever Frehtes Taifersar Arahesis wrote:
>> 2009-11-22 18:06:40 Martin Furter napisał(a):
>>>
>>> On Sun, 22 Nov 2009, Arfrever Frehtes Taifersar Arahesis wrote:
>>>
>>>> 2009-11-22 06:39:05 Martin Furter napisał(a):
>>>>>
>>>>> On Sun, 22 Nov 2009, Arfrever Frehtes Taifersar Arahesis wrote:
>>>>>
>>>>>> 2009-11-22 03:43:44 Martin Furter napisał(a):
>>>>>>>
>>>>>>> Little bugfix...
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Martin
>>>>>>>
>>>>>>>
>>>>>>> [[[
>>>>>>> Change the shebang line from /bin/sh to /bin/bash because the script
>>>>>>> contains bashims which do not work with /bin/sh on various UNICES.
>>>>>>
>>>>>> This script doesn't have any bashisms. What exactly causes problems?
>>>>>
>>>>> $(...) is a bashism
>>>>
>>>> No. $(command) is documented in POSIX:
>>>> http://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_03
>>>
>>> Fuck POSIX.
>>>
>>> $ /bin/sh -c 'echo $(date)'
>>> /bin/sh: syntax error at line 1: `(' unexpected
>>> $ uname -a
>>> SunOS enterprise 5.9 Generic_118558-22 sun4u sparc SUNW,Ultra-250
>>
>> Please report a bug to developers of SunOS shell.
> 
> Solaris contains a posix compatible shell as /usr/xpg4/bin/sh. It's
> mentioned in the sh man page and also in "man -s 5 standards".
> 
> A common workaround is to set CONFIG_SHELL=/bin/ksh before doing
> configure on Solaris.

This is shortly described in

http://www.gnu.org/software/autoconf/manual/html_node/config_002estatus-Invocation.html#index-CONFIG_005fSHELL-1851

with a warning at

http://www.gnu.org/software/autoconf/manual/html_node/Defining-Variables.html#Defining-Variables

Regards,

Rainer

Reply via email to