[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] command-line-arguments
From: |
Mario Domenech Goulart |
Subject: |
Re: [Chicken-users] command-line-arguments |
Date: |
10 Oct 2008 11:21:38 -0300 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 |
Hi Wietse
On Fri, 10 Oct 2008 16:04:13 +0200 "Wietse Jacobs" <address@hidden> 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
Re: [Chicken-users] command-line-arguments,
Mario Domenech Goulart <=