[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: Jeff Pohlmeyer <yetanothergeek@...>
- Date: Thu, 30 Jan 2020 05:39:32 -0600
On Thu, Jan 30, 2020 at 5:03 AM Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
> Jeff Pohlmeyer <yetanothergeek@gmail.com> 于2020年1月30日周四 下午5:08写道:
> > "readlink -f" might be more common, and should have similar results.
> No correct, both of them are components of GNU coreutils:
Readlink was added to coreutils in January 2003.
Realpath was added to coreutils in December 2011.
So readlink is more likely to be available, even on ancient systems.
- Jeff