On 29.7. 09:25, L A Walsh wrote:
The library-include function allows me to source a library file
that is in a relative path off of PATH (a feature not in bash,
unfortunately).

[...]

I tried putting exporting the data and the function with export
but it ended up the same.  The variables weren't defined in the
same scope as the function.

Are you sourcing some other script, or running it as a regular program?

Because above, you say 'source', which would indicate running code from another file in the same shell, but then you talk about exporting, which really only matters when starting a new process (as far as I know).


An example that would actually run and demonstrate the issue might make it easier to see what's actually going on.


--
Ilkka Virta / itvi...@iki.fi

Reply via email to