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

Re: Handling with BASH variables



> it
>
> > takes the string "$KDEDIR". How can i bring BASH to take KDEDIR as a
>
> variable?
>
> I think what you are saying is you want to put
> a line:  ./configure --prefix=${KDEDIR} --enable-final ...
> in your conf_kdelibs file and then have the main script
> execute that (and other ) lines in conf_kdelines, substituting
> the current value of $KDEDIR.
>
> If that is the case, don't use "cat" for that purpose.  Instead,
> source it within the context of your compile script.  For
> example:
>
> ...
> KDEDIR='/opt/kde'
> ...
> . conf_kdelibs     # <--note the period--that's
>                           #   the source operator
> ...
>
> Hope this helps.  If you are trying to do something
> completely different, ignore this.  :)
>
> Take care,
>
>   -=greg

Thanks alot it works!

BTW: what is the difference between $KDEDIR and ${KDEDIR}? When is wich used?

cheers,
Raffaele

-- 
Raffaele Sandrini <rasa@gmx.ch>
For encrypted Mail get my Public Key from "search.keyserver.net"
ID: 0xEC4950E9



Reply to: