[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [make] == unexpected operator
From: |
John Cowan |
Subject: |
Re: [make] == unexpected operator |
Date: |
Wed, 5 May 2010 11:05:33 -0400 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
MaciekL scripsit:
> I don't understand why 'make' doesn't use BASH variable from
> environment:
Because BASH is a local variable not exported to the environment,
so 'make' doesn't see it.
> 1) FAILED:
> > echo BASH=${BASH}
> BASH=/bin/bash
> > make
> [: 2: a: unexpected operator
> {warning}
Say "export BASH" before running make.
> 2) CORRECT:
> > make BASH=/bin/bash
> {no warnings, no errors}
Make picks up the definition itself (it is not processed by the shell)
so this works. You can even say "make BASH=$BASH".
--
As we all know, civil libertarians are not John Cowan
the friskiest group around --comes from address@hidden
forever being on the qui vive for the sound http://www.ccil.org/~cowan
of jack-booted fascism coming down the pike. --Molly Ivins