PaddiM8 / kalker

Scientific calculator with math syntax that supports user-defined variables and functions, complex numbers, and estimation of derivatives and integrals
https://kalker.xyz
MIT License
1.59k stars 70 forks source link

Kalk ought to strip line terminator when reading from standard input #28

Closed kseistrup closed 3 years ago

kseistrup commented 3 years ago
# kalk thinks the line terminator is part of the expression
$ echo 2 | kalk
kalk
Type 'help' for instructions.
Invalid number literal: '2
'.
# let's try without the linefeed
$ echo -n 2 | kalk
kalk
Type 'help' for instructions.
2
kseistrup commented 3 years ago

Sorry, I forgot to tell: kalk 0.5.3

PaddiM8 commented 3 years ago

Thank you! This should now be fixed.