On 6/24/2021 11:58 PM, Jairo A. del Rio wrote:
>
>
> El jue, 24 de jun. de 2021 a la(s) 16:55, Hans Hagen (j.hagen@xs4all.nl
> <mailto:j.hagen@xs4all.nl>) escribió:
>
> On 6/24/2021 11:47 PM, Jairo A. del Rio wrote:
> >
> >
> > El jue, 24 de jun. de 2021 a la(s) 16:42, Hans Hagen
> (j.hagen@xs4all.nl <mailto:j.hagen@xs4all.nl>
> > <mailto:j.hagen@xs4all.nl <mailto:j.hagen@xs4all.nl>>) escribió:
> >
> > On 6/24/2021 11:35 PM, Jairo A. del Rio wrote:
> > >
> > >
> > > El jue, 24 de jun. de 2021 a la(s) 16:30, Hans Hagen
> > (j.hagen@xs4all.nl <mailto:j.hagen@xs4all.nl>
> <mailto:j.hagen@xs4all.nl <mailto:j.hagen@xs4all.nl>>
> > > <mailto:j.hagen@xs4all.nl <mailto:j.hagen@xs4all.nl>
> <mailto:j.hagen@xs4all.nl <mailto:j.hagen@xs4all.nl>>>) escribió:
> > >
> > > On 6/24/2021 11:20 PM, Jairo A. del Rio wrote:
> > > > It prints:
> > > >
> > > > uname -m rb
> > > hm, that is a real last resort attempt to determine what
> > system it is
> > > running on (we try to avoid such calls)
> > >
> > > -- on linux if HOSTNAME is not known (did that change?)
> > > -- on sunos always (does anyone know an env var?)
> > > -- on freebsd always (does anyone know an env var?)
> > >
> > >
> > > Tbh I don't know. I'm on Ubuntu 20.04 and I haven't made any
> > important
> > > changes on the OS. In case it helps, only the latest LMTX
> > produces this
> > > error.
> > >
> > > (the 'rb' looks suspicious ... i'll check that)
> > what does
> >
> > echo $HOSTTYPE
> >
> >
> > The same as uname -m: x86_64
>
> weird, so can you add a print (around 4037)
>
> elseif name=="linux" then
> function resolvers.platform(t,k)
> print("!!!!!",os.getenv("HOSTTYPE"))
> local architecture=os.getenv("HOSTTYPE") or resultof("uname -m")
> or ""
>
>
> It prints "nil" here
i uploaded a version that might do better (lua is picky about the 'rb'
which i need for binary pipes)
now this nil ... on my opensuse on wsl it does print the expected ...
puzzling
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------