Re: Get ${OSREL} at install time

From: Felix Palmen <zirias_at_FreeBSD.org>
Date: Tue, 18 Apr 2023 10:06:49 UTC
* Eugene Grosbein <eugen@grosbein.net> [20230418 17:03]:
> 18.04.2023 16:51, Felix Palmen wrote:
> 
> > With lua scripts, you can't even use freebsd-version because execution
> > is very restricted for them in pkg. And for some features (like e.g.
> > dynamically creating a pkg-message output), you need lua...
> 
> You don't need lua to create pkg-message dynamically or do many other things.
> It was possible long before invention of lua itself :-)

Maybe some context got lost here. You *do* need lua to dynamically
generate "pkg-message" output at install time. The pkg lua API for that
is pkg.print_msg(). It isn't available from shell scripts.

-- 
 Felix Palmen <zirias@FreeBSD.org>     {private}   felix@palmen-it.de
 -- ports committer (mentee) --            {web}  http://palmen-it.de
 {pgp public key}  http://palmen-it.de/pub.txt
 {pgp fingerprint} 6936 13D5 5BBF 4837 B212  3ACC 54AD E006 9879 F231