Fw: [CM] problem with #! in CMUCL

Bill Schottstaedt bil@ccrma.Stanford.EDU
Wed, 27 Nov 2002 04:49:15 -0800


My guess is that Guile uses #! because that makes it possible
to use it as a scripting engine.  When a script is executed,
the #!program gets the script as its argument so some file with

#!guile -s
!#
(scheme code here which is evaluated by guile)

causes Unix to start guile passing it the script filename, which
guile then loads, treating the #! !# business as a comment.


There's code to read #-related stuff in guile's libguile/read.c around
line 360; in a quick glance I see

#f #t
#( for vectors
#b #B #o #O #d #D #x #X #i #I #e #E for numbers
#! for scripts
#* for arrays?? (guile arrays are a horrible kludge)
#{ something to do with symbols?
#\ chars
#: keywords