LISTEN doesn't signal error when given more than one arg
Describe the bug
LISTEN
should signal an error when more than one arg is given.
To Reproduce
Steps to reproduce the behavior:
(listen *standard-input* nil)
- This does not signal an error
Expected behavior
According to the
CLHS,
LISTEN
takes one optional arg, input-stream
. However, cmucl
allows two optional args where the second arg is the width
for a
simple-stream
, which is not part of the Common Lisp spec.
To make this compliant, I guess we would have to check if width
is
given for a Lisp stream and signal an error if so. Not sure if this
is worth the effort even though it's pretty simple.
Desktop (please complete the following information):
- OS: All
- Version: snapshot-2021-07
Additional context
This is from ansi-test LISTEN.ERROR.1
.