[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: Hongyi Zhao <hongyi.zhao@...>
- Date: Thu, 30 Jan 2020 19:03:08 +0800
Jeff Pohlmeyer <yetanothergeek@gmail.com> 于2020年1月30日周四 下午5:08写道:
>
> > It was thus said that the Great Sean Conner once stated:
> > > It was thus said that the Great pocomane once stated:
> > > Sadly, realpath seems to be a Debian thing, not a Linux thing in general.
>
> "readlink -f" might be more common, and should have similar results.
No correct, both of them are components of GNU coreutils:
$ realpath --version | head -1
realpath (GNU coreutils) 8.30
$ readlink --version | head -1
readlink (GNU coreutils) 8.30
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 19.10
Release: 19.10
Codename: eoan
>
> - Jeff
>
--
Hongsheng Zhao <hongyi.zhao@gmail.com>
Institute of Semiconductors, Chinese Academy of Sciences
GnuPG DSA: 0xD108493