[NTLUG:Discuss] OT - include bash script

Greg Edwards greg at nas-inet.com
Wed Jan 6 08:26:14 CST 2010


Eric Waguespack wrote:
> On Tue, Jan 5, 2010 at 3:22 PM, Greg Edwards <greg at nas-inet.com> wrote:
>> Is it possible to have a bash script include code from another file and
>> maintain vars set by the parent script?
>>
>> --
>> Greg E
> 
> source child.inc
> # or
> . child.inc
> 


Sourcing the files was the answer, thanks.

--
Greg E



More information about the Discuss mailing list