Subject: Re: scheme scripting
From: (Rob Warnock)
Date: 2000/07/06
Newsgroups: comp.lang.scheme
Message-ID: <8k35fq$2gq76$>
James Wray  <> wrote:
| I wanted to create a scheme script to do something standalone w/o
| input, but I cannot find a way to read command line arguments.

*Which* Scheme implementation are you using??!?  Almost all of them
can do what you're asking, but they all do it differently. E.g., for
MzScheme the command-line arguments appear in a global variable named
"argv" (a vector):

	% cat foo
	#!/usr/local/bin/mzscheme -r
	(write argv)

	% foo bar baz gorp
	#3("bar" "baz" "gorp")


Rob Warnock, 41L-955
Applied Networking
Silicon Graphics, Inc.		Phone: 650-933-1673
1600 Amphitheatre Pkwy.		PP-ASEL-IA
Mountain View, CA  94043