dyne / Zenroom

Embedded no-code VM executing human-like language to manipulate data and process cryptographic operations.
https://dev.zenroom.org
GNU Affero General Public License v3.0
197 stars 64 forks source link

Zenroom interactive mode strange behaviour #939

Open matteo-cristino opened 1 month ago

matteo-cristino commented 1 month ago

When running zenroom in interactive mode with

./zenroom -i

The output is

Zenroom v4.42.0 - secure crypto language VM
Zenroom is Copyright (C) 2017-2024 by the Dyne.org foundation
 .   Release version: v4.42.0
 .   Build commit hash: 0d3c0ac9
 .   Memory manager: libc
 .   ECDH curve is SECP256K1
 .   ECP curve is BLS381
Interactive console, press ctrl-d to quit.
lua> lua> 

where it can clearly see that the lua > string is repeated.

Moreover creating a newline from an empty line cause the interactive mode to close.

This issues have been introduced in v4.41.0

jaromil commented 1 month ago

It may be a good moment to consider the addition of kilo.c as @danielinux is doing into cjit (his fork there contains fixes to the upstream).