Am 13.12.2011 um 06:54 schrieb Sean Lake:

> #!/bin/sh -ev
>       # special-case for 10.6; check whether compiler is llvm-gcc
>       if [[ `gcc --version` | grep llvm-g ]] ; 
> /var/tmp/tmp.1.D4x86y: line 3: unexpected token `|', conditional binary 
> operator expected

it seems you want to pipe the output of the command "gcc --version" to grep. 
Then you have to write:

        `gcc --version | grep llvm-g`

--
Greetings

 Pete

There's no sense in being precise when you don't even know what you're talking 
about.
                                – John von Neumann


------------------------------------------------------------------------------
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to