Hi Wietse

On Fri, 10 Oct 2008 16:04:13 +0200 "Wietse Jacobs" <[EMAIL PROTECTED]> wrote:

> I've put the following in a file and compiled it with chicken:
> 
> (begin
>   (display (command-line-arguments))
>   (exit))
> 
> when I run this with:
> test.exe "1 argument"
> I get:
> (1 argument)
> 
> But this looks like a list of 2 arguments where I expected 1. Am I
> missing something?

Maybe it's just the output format that makes the list look like it
contains two elements.

Try 

   (pretty-print (command-line-arguments))

instead or try to get the second arg from the list to check if there
are two or only one.  Here, using bash, I get only one.

Best wishes.
Mario


_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to