GNU bug report logs -
#30600
repl metacommands do not discard remaining input after syntax error in an expression
Previous Next
Reported by: dikbekulo <at> airmail.cc
Date: Sun, 25 Feb 2018 00:51:01 UTC
Severity: normal
Tags: patch
Done: lloda <lloda <at> sarc.name>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#30600: repl metacommands do not discard remaining input after syntax error in an expression
which was filed against the guile package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 30600 <at> debbugs.gnu.org.
--
30600: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30600
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Applied in 242e8698c2fdfada96a136abde5156bac3dbc6c9.
Thanks
lloda
[Message part 3 (message/rfc822, inline)]
Hello!
When using meta-commands in the repl (without readline support), if
reading an expression parameter fails, the rest of the input gets read
in anyway. An example interaction:
--8<---------------cut here---------------start------------->8---
GNU Guile 2.2.3
Copyright (C) 1995-2017 Free Software Foundation, Inc.
Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.
Enter `,help' for help.
scheme@(guile-user)> ,trace "\m"
Throw to key `read-error' while reading argument `form' of command
`trace':
In procedure scm_lreadr: #<unknown port>:1:11: illegal character in
escape sequence: #\m
"
$1 = "\n"
scheme@(guile-user)> ,trace "\m123
Throw to key `read-error' while reading argument `form' of command
`trace':
In procedure scm_lreadr: #<unknown port>:2:11: illegal character in
escape sequence: #\m
$2 = 123
--8<---------------cut here---------------end--------------->8---
Since Geiser uses meta-commands with multi-line expressions to
communicate with Guile it can get very confusing if you have syntax
errors in your code.
This bug report was last modified 266 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.