Re: execline introspection?

From: Ansgar Wiechers <ansgar.wiechers_at_automatic-server.com>
Date: Fri, 16 Oct 2020 15:14:25 +0200

Hi Laurent

On 2020-10-15 Laurent Bercot wrote:
>> Does execline have introspection features? I would like to determine
>> the location of an execline script from within that script (like $0
>> in a shell script).
>
> No, it doesn't. The point was to launch the script as fast as
> possible, with the shortest possible code path, so anything that's not
> essential was removed.
>
> If it's something you need, though, I could probably add an option
> that puts the full path to the script in $0.

Thanks for confirming.

It's not a big issue. I need to invoke an external script from a
oneshot, and being able to automatically determine the parent directory
would've been nice, but I can also use an absolute path.

Regards
Ansgar
Received on Fri Oct 16 2020 - 13:14:25 UTC

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