[racket] How to load a file at the startup?

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Wed Jul 11 20:06:50 EDT 2012

Did you provide sq? If so, racket -it tryme.rkt should work. 

On Jul 11, 2012, at 6:33 PM, Rouben Rostamian wrote:

> I use racket from the command line (in Linux).  I load a racket
> file, as in:
>  (enter! "tryme.rkt")
> then I proceed with my interactive session.  The file tryme.rkt
> contains:
>   #lang racket
>   (define (sq x) (* x x))
> This works fine but I am wondering: Is it possible to prescribe
> tryme.rkt on the command line?  I tried various combinations
> of the -i -r -t -f -u flags but none worked.  E.g.,
>   racket -i -f tryme.rkt
> starts up racket but the function `sq' is unrecognized.
> I am new to racket, so forgive me if I am asking a trivial
> question.
> -- 
> Rouben Rostamian
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users

Posted on the users mailing list.