Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] simple gcc question (slightly off topic perhaps)



On Tue, Mar 3, 2009 at 7:11 PM, Shawn Brown <big.coffee.lover@example.com> wrote:
Are these equivalent (i.e. could the space make any difference)?

gcc -I$FANTOM_HOME/includes/
gcc -I $FANTOM_HOME/includes/

They should be the same, if $FANTOM_HOME does not contain fancy characters.

I suggest anyway to protect $FANTOM_HOME from special characters, with something like "$FANTOM_HOME" or ${FANTOM_HOME}.

Also, you may try to echo your gcc command after variable substitution, to double check that everything looks fine (just duplicate the gcc command, and add "echo" just before "gcc").

In all cases, giving us some error messages will surely not hurt :-)

br.

--
2 + 2 = 5, for very large values of 2.


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links