Re: [Scheme-reports] 6.7.4 system interfaces Per Bothner 20 May 2011 07:26 UTC

On 05/19/2011 04:00 PM, John Cowan wrote:
> Andy Wingo scripsit:
>
>> Does `command-line' include the equivalent of argv[0] ?
>
> System-dependent.  JVM/CLR systems have no analogue of argv[0].

That makes standardizing command-line completely useless.

Perhaps we should follow shsh in that command-line-arguments returns a list
of the actual arguments (not including argv[0]), and (command-line)
returns (cons PROGRAM command-line-arguments), where
PROGRAM returns argv[0] if known and sensible, and "" otherwise.

Regardless, (car (command-line)) should be either argv[0] or some
value that indicates that argv[0] is unknown.
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/

_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports