scryer-prolog icon indicating copy to clipboard operation
scryer-prolog copied to clipboard

Goal in "-g" switch unexpectedly does not yield a syntax error if it contains a newline

Open triska opened this issue 4 years ago • 1 comments

UPDATE: I have now reduced the issue to the following test case:

$ scryer-prolog -g $'write("Hello,\nworld"),halt'
?- 

Expected, as in earlier Scryer Prolog versions:

$ scryer-prolog -g $'write("Hello,\nworld"),halt'
error(syntax_error(missing_quote),read_term_from_chars/2:0) causes: error(existence_error(procedure,error/2),error/2)

triska avatar Jan 09 '22 21:01 triska

Emacs replaces \n by the actual newline and Scryer conformingly does not like newlines in a quoted token

UWN avatar Jan 11 '22 20:01 UWN

Solved with #1891.

triska avatar Jul 16 '23 17:07 triska