Re: Running small scripts
Michael Sperber <[email protected]> Fri, 29 Apr 2011 10:08:24 +0200
| Newsgroups | gmane.lisp.scheme.scheme48 |
|---|---|
| Message-ID | <[email protected]> |
"Diogo F. S. Ramos" <[email protected]> writes: > Michael Sperber <[email protected]> writes: > >> "Diogo F. S. Ramos" <[email protected]> writes: >> >>> I'm trying to make small scripts to be run from a unix shell. >>> >>> Looking through the manual I found that scheme48 implements srfi-22, but >>> I'm having troubles shebanging source files. Is it possible? What do I >>> need to write at the shebang line? >> >> Exactly what SRFI 22 says. For example: >> >> #! /usr/bin/env scheme-r5rs > > Well, I can use 'scheme-r5rs', but then another scheme implementation, > not scheme48, will be called. > > Can't I explicit specify scheme48 in there? > > Something like: #!/usr/bin/env scheme48 That's just not how SRFI 22 works, which is explicitly about writing portable scripts. Of course, you can write scripts that invoke Scheme 48. The typical approach is to just pipe what you'd type into it. See e.g. the script in build/build-usual-image. -- Cheers =8-} Mike Friede, Völkerverständigung und überhaupt blabla