[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [make] == unexpected operator
From: |
MaciekL |
Subject: |
Re: [make] == unexpected operator |
Date: |
Tue, 04 May 2010 15:46:36 -0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.8) Gecko/20100227 Lightning/1.0b1 Thunderbird/3.0.3 |
On 2010-02-25 17:23, Eric Blake wrote:
> According to MaciekL on 2/25/2010 5:52 AM:
>> <tab>if [ "a" == "b" ]; then\
>
> Per POSIX, the only portable way to compare strings is with =, not ==. ==
> is a bash extension, but if your /bin/sh is not bash, that would explain
> your failure.
>
that is right, my /bin/sh is linked to /bin/dash
I don't understand why 'make' doesn't
use BASH variable from environment:
1) FAILED:
> echo BASH=${BASH}
BASH=/bin/bash
> make
[: 2: a: unexpected operator
{warning}
2) CORRECT:
> make BASH=/bin/bash
{no warnings, no errors}
Regards
--
Maciek
- Re: [make] == unexpected operator,
MaciekL <=