Re: Source bash scripts in execline

From: Charles Duffy <charles_at_dyfis.net>
Date: Tue, 15 Dec 2020 06:51:44 -0600

Shell functions can only be sourced into a shell interpreter; execline is
not a shell interpreter.

You can, of course, have execline exec a shell, passing it a script that
tells it to source your file before running whatever code requires the
functions provided.

On Tue, Dec 15, 2020 at 2:42 AM billa chaitanya <billachaitanya_at_gmail.com>
wrote:

> Hi Team,
> In execline, How to do sourcing of bash script which contains small
> functions.
> envfile can be used to source variables. Since the script has some
> functions, I'm not sure how to handle this.
> "Source" is not working. Is there any other way i can source the bash
> script which contains functions in execline ?
>
> Thanks!
>
Received on Tue Dec 15 2020 - 12:51:44 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC