permaweb / aos

An operating system for AO: The hyper parallel computer
https://ao.g8way.io
Other
68 stars 46 forks source link

bug: eval a nil value should print nil #334

Open twilson63 opened 2 weeks ago

twilson63 commented 2 weeks ago

Problem

when I type a variable that is not defined the eval should return nil

Solution

Make sure nil values are converted to string before table.concat - in the process/eval.lua

twilson63 commented 1 week ago

Steps to reproduce

aos> print(nil)

In process/eval.lua make sure to convert any nil values to string, before concat