I have found some info here: https://docs.racket-lang.org/guide/racket.html#%28part._start-interactive-mode%29 However, I haven't reached my goal yet. If I do this racket -t hello.rkt -i then my hello.rkt is executed, and I end with a ">" prompt, but trying a command like (exit) at that point is not very successful, as you can see here: $ racket -t hello.rkt -i Welcome to Racket v7.0. 'hello-racket-world > (exit) ; readline-input:1:0: #%top-interaction: unbound identifier; ; also, no #%app syntax transformer is bound ; at: #%top-interaction ; in: (#%top-interaction exit) ; [,bt for context]
and then > ,bt ; readline-input:1:0: #%top-interaction: unbound identifier; ; also, no #%app syntax transformer is bound ; at: #%top-interaction ; in: (#%top-interaction exit) ; location...: ; readline-input:1:0 ; context...: ; raise-syntax-error ; expand-capturing-lifts ; expand-single ; temp74_0 ; compile16 ; temp68_2 ; /Applications/Racket_v7.0/share/pkgs/xrepl-lib/xrepl/xrepl.rkt:1477:0 ; /Applications/Racket_v7.0/collects/racket/repl.rkt:11:26 Then I have to hit Ctrl-D to get back into the shell. torsdag 13. september 2018 10.19.22 UTC+2 skrev Jon Kleiser følgende: > > Hi, > > I would like to run some Racket programs in the macOS Terminal (racket > foo.rkt bar1 bar2), and keep staying in the Racket REPL when my code has > completed. Is that possible? > > /Jon > -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.