Morpho-lang / morpho

The Morpho language 🦋. Morpho is a small embeddable language for scientific computing applications.
MIT License
30 stars 10 forks source link

[Feature Request] Enable assignment of printed system() calls to variable #208

Open samuelhocking opened 1 year ago

samuelhocking commented 1 year ago

When using system() to pass shell commands, it is not currently possible to assign the printed output to a morpho variable.

E.g. var now = system("date +'%m/%d/%Y'")

softmattertheory commented 1 year ago

Really great suggestion, @samuelhocking. We can include it in the System class. I'll investigate how we can capture this.