Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
argv
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Josef Eschgfaeller  
View profile  
 More options Jun 13 1999, 3:00 am
Newsgroups: comp.lang.lisp
From: Josef Eschgfaeller <e...@felix.unife.it>
Date: 1999/06/13
Subject: argv

What is the substitute for argv in Lisp?

J. Eschgfaeller


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arthur Lemmens  
View profile  
 More options Jun 13 1999, 3:00 am
Newsgroups: comp.lang.lisp
From: Arthur Lemmens <lemm...@simplex.nl>
Date: 1999/06/13
Subject: Re: argv

Josef Eschgfaeller wrote:

> What is the substitute for argv in Lisp?

There is no portable substitute for argv.
In Harlequin Lispworks, I use sys:*line-arguments-list*.

Arthur Lemmens


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lars Marius Garshol  
View profile  
 More options Jun 13 1999, 3:00 am
Newsgroups: comp.lang.lisp
From: Lars Marius Garshol <lar...@ifi.uio.no>
Date: 1999/06/13
Subject: Re: argv

* Josef Eschgfaeller
|
| What is the substitute for argv in Lisp?

argv is a Unix-ism and so not portably available in Common Lisp.  I
guess most implementations provide some means of accessing the
command-line arguments, but these are not standardized.

In CLISP the variable *args* holds the arguments in a list.

--Lars M.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas A. Russ  
View profile  
 More options Jun 14 1999, 3:00 am
Newsgroups: comp.lang.lisp
From: t...@sevak.isi.edu (Thomas A. Russ)
Date: 1999/06/14
Subject: Re: argv

> * Josef Eschgfaeller asks:
> | What is the substitute for argv in Lisp?

Lars Marius Garshol <lar...@ifi.uio.no> writes:

> In CLISP the variable *args* holds the arguments in a list.

For ACL (Allegro Common Lisp) on Unix:

 (sys:command-line-arguments)

which IIRC gets the entire command line, including the program name:

Unix> acl -- foo=bar 3 twenty '(1 22 3 )'

Lisp> (sys:command-line-arguments)
("/local/acl/acl5.0/lisp" "foo=bar" "3" "twenty" "(1 22 3 )")

--
Thomas A. Russ,  USC/Information Sciences Institute          t...@isi.edu    


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marco Antoniotti  
View profile  
 More options Jun 15 1999, 3:00 am
Newsgroups: comp.lang.lisp
From: Marco Antoniotti <marc...@copernico.parades.rm.cnr.it>
Date: 1999/06/15
Subject: Re: argv

Josef Eschgfaeller <e...@felix.unife.it> writes:
> What is the substitute for argv in Lisp?

On a Mac?

Note that the following program is considered (or was considered) non
portable.

public class nonPortable {
  public static void main(String[] argv) {
     System.out.println(argv[0]);
  }

}

Cheers

--
Marco Antoniotti ===========================================
PARADES, Via San Pantaleo 66, I-00186 Rome, ITALY
tel. +39 - 06 68 10 03 17, fax. +39 - 06 68 80 79 26
http://www.parades.rm.cnr.it/~marcoxa


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »