albertodemichelis / squirrel

Official repository for the programming language Squirrel
http://www.squirrel-lang.org
MIT License
927 stars 162 forks source link

sq : input line too long, interactive console line = (1) column = (1) : error expression expected #292

Open ryandesign opened 3 months ago

ryandesign commented 3 months ago

I've compiled and installed squirrel 3.2 on macOS. When I run sq I get a prompt:

% sq
Squirrel 3.2 stable Copyright (C) 2003-2022 Alberto Demichelis (64 bits)

sq>

Satisfied that the program was working, I wanted to exit. Many interactive programs let me exit by pressing Control-D but when I tried this at the sq> prompt I received a neverending stream of this message:

sq : input line too long
interactive console line = (1) column = (1) : error expression expected
sq>
sq : input line too long
interactive console line = (1) column = (1) : error expression expected
sq>
sq : input line too long
interactive console line = (1) column = (1) : error expression expected
sq>

The message comes from this code:

https://github.com/albertodemichelis/squirrel/blob/c02bf2dfd599a0b99b814d486512a3ee934667f1/sq/sq.c#L268-L271