LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Is there such thing as php includes file for bash? (https://www.linuxquestions.org/questions/linux-newbie-8/is-there-such-thing-as-php-includes-file-for-bash-691148/)

guest 12-17-2008 03:00 AM

Is there such thing as php includes file for bash?
 
I want to have a bash configuration file with a variable set like:
VAR=LQ

and the other bash files would reference
$VAR

and gets LQ

hope i'm explaining this right lol

Guttorm 12-17-2008 08:42 AM

Hi

The bash equivalent of php's "include" is "source".

So if your configuration file is called e.g. "myconfig", use the command "source myconfig" to include it.


All times are GMT -5. The time now is 02:35 PM.