On Thu, May 8, 2014 at 8:33 AM, Claudio <[email protected]> wrote:
> On 08-05-14 01:27, Maciej (Matchek) BliziƄski wrote:
>>
>> If you write something like this in gmake...
>>
>> foo:
>>     cmd1
>>     cmd2
>>
>> ...the environment from cmd1 will not be seen by cmd2, because they
>> are independent (sub)shells started by gmake, I think. Somebody
>> correct me if I'm wrong.
>
>
> What about:
>
> foo:
>
>         cmd1 && cmd2

It should work. For example:

$ echo foo=bar > env.sh
$ . env.sh && echo ${foo}
bar

Maciej

Reply via email to