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

From: Rouben Rostamian (rostamian at umbc.edu)
Date: Wed Jul 11 18:33:29 EDT 2012

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

   #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

Rouben Rostamian

Posted on the users mailing list.