[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: pocomane <pocomane_7a@...>
- Date: Thu, 30 Jan 2020 14:02:31 +0100
On Thu, Jan 30, 2020 at 12:39 PM Jeff Pohlmeyer
<yetanothergeek@gmail.com> wrote:
>
> 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.
I agree. Better to use readlink -f instead of realpath. I just used
the first one that comes to my mind.