[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Obtain the lua script's (absolute/real) dirname and file name from within the script itself.
- From: Sean Conner <sean@...>
- Date: Thu, 30 Jan 2020 04:03:23 -0500
It was thus said that the Great Sean Conner once stated:
> It was thus said that the Great pocomane once stated:
> >
> > Sadly, if you really need the abolute path 3), you have to rely on
> > os-dependent tricks. For linux you can use popen and realpath:
>
> Sadly, realpath seems to be a Debian thing, not a Linux thing in general.
Huh ... I can't seem to locate when the actual command realpath was first
included in Linux. The information I found made it seem to be a Debian-only
thing (I don't run Debian) but other information seems to contradict that.
Only my main Linux system at home doesn't have the program realpath (but the
function realpath() exists in libc).
-spc (So ... it may or may not exist on any given Linux system, is what
I'm trying to say ... )