[prev in list] [next in list] [prev in thread] [next in thread]
List: racket-users
Subject: [racket] Discrepency in Commandline Documentation
From: mflatt () cs ! utah ! edu (Matthew Flatt)
Date: 2013-11-26 16:57:23
Message-ID: 20131126165722.D32C46500CF () mail-svr1 ! cs ! utah ! edu
[Download RAW message or body]
The `-i` flag does add a `(newline)` call after
`(read-eval-print-loop)` returns; I'll fix the docs.
Echoing of ^D, seems to be the same issue on my machine. With `-e
"(read-eval-print-loop)"`, I see ^D appear and then get overwritten,
but `-e "(begin (read-eval-print-loop) (newline))"` looks the same
as `-i` for me.
At Mon, 25 Nov 2013 21:56:27 -0800, Eric Dobson wrote:
> The documention for the commandline racket implies that the following
> two command lines should have the same behavior.
>
> racket -v -e "(read-eval-print-loop)"
> racket -i -q
>
> But on my machine I'm seeing different behavior with regards to
> terminal settings. Without interactive mode I don't get the echo of
> control characters and I don't get a newline when the program exits.
> I'm trying to make a program which when run behaves the same as the
> standard interactive racket (or close enough to not bother me). So I
> want to understand this distinction so that I can replicate it.
>
> endobson at yggdrasil () % racket -v -e "(read-eval-print-loop)"
> Welcome to Racket v6.0.0.1.
> > %
> endobson at yggdrasil () % racket -i -q
> Welcome to Racket v6.0.0.1.
> > ^D
> ____________________
> Racket Users list:
> http://lists.racket-lang.org/users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic