Better command-line handling
Bug #172647 reported by
Michael D. Adams
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ikarus Scheme |
New
|
Wishlist
|
Abdulaziz Ghuloum |
Bug Description
As it is now, Ikarus processes anything entered on the command line s-exp by s-exp. This can lead to surprising results if the user enters more than one s-exp on a line. Ikarus should only begin executing the input when all s-exp are closed. And only one prompt should be displayed (right now is shows one per s-exp). (This is probably wish-list and may even become obsolete once readline support is added.)
$ ikarus
> (display "(+ 1 2)")(display (+ 1 2))(newline)
(+ 1 2)> 3>
>
$ ikarus
> (display "Hello")(display (+ 1
Hello> 2))(newline)
3>
To post a comment you must log in.
On Nov 28, 2007, at 3:48 PM, Michael D. Adams wrote:
> Public bug reported:
>
> As it is now, Ikarus processes anything entered on the command line
> s-exp by s-exp. This can lead to surprising results if the user
> enters
> more than one s-exp on a line.
This may be surprising, but to whom? All scheme implementations that
I've used exhibit the same behavior, but that doesn't make it right.
> Ikarus should only begin executing the
> input when all s-exp are closed. And only one prompt should be
> displayed (right now is shows one per s-exp).
Try the attached script and see if it has a better behavior.
> (This is probably wish-list and may even become obsolete once
> readline support is added.)
It certainly is a wish list and readline support is an even bigger
wish :-)
Aziz,,,