albertodemichelis/squirrel

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

Opened this issue · 0 comments

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:

squirrel/sq/sq.c

Lines 268 to 271 in c02bf2d

else if (i >= MAXINPUT-1) {
scfprintf(stderr, _SC("sq : input line too long\n"));
break;
}