From: Trastabuga
Subject: Passing arguments to executable created with clisp
Date: 
Message-ID: <1152202794.176842.155360@a14g2000cwb.googlegroups.com>
Hi

I can parse and use the *args* when I run a clisp program as script.
Once you create an executable (with ext:saveinitmem) and try to give it
an argument "arg" it says "*** - LOAD: A file with name arg does not
exist".
How can I overcome this?

Thanks,
Andrew

From: Pascal Bourguignon
Subject: Re: Passing arguments to executable created with clisp
Date: 
Message-ID: <87psgipu56.fsf@thalassa.informatimago.com>
"Trastabuga" <·········@gmail.com> writes:

> Hi
>
> I can parse and use the *args* when I run a clisp program as script.
> Once you create an executable (with ext:saveinitmem) and try to give it
> an argument "arg" it says "*** - LOAD: A file with name arg does not
> exist".
> How can I overcome this?

Use --

[···@thalassa encours]$ ./ibcl --  some arguments
  i i i i i i i       ooooo    o        ooooooo   ooooo   ooooo
  I I I I I I I      8     8   8           8     8     o  8    8
  I  \ `+' /  I      8         8           8     8        8    8
   \  `-+-'  /       8         8           8      ooooo   8oooo
    `-__|__-'        8         8           8           8  8
        |            8     o   8           8     o     8  8
  ------+------       ooooo    8oooooo  ooo8ooo   ooooo   8

Copyright (c) Bruno Haible, Michael Stoll 1992, 1993
Copyright (c) Bruno Haible, Marcus Daniels 1994-1997
Copyright (c) Bruno Haible, Pierpaolo Bernardi, Sam Steingold 1998
Copyright (c) Bruno Haible, Sam Steingold 1999-2000
Copyright (c) Sam Steingold, Bruno Haible 2001-2006

;;  Loading file /home/pjb/.clisprc.lisp ...
;; Reading ASDF packages from /home/pjb/asdf-central-registry.data...
; loading system definition from /usr/local/share/lisp/packages/net/sourceforge/cclan/asdf-install/asdf-install.asd into #<PACKAGE ASDF0>
; registering #<SYSTEM ASDF-INSTALL #x2049879E> as ASDF-INSTALL
0 errors, 0 warnings
[1]> ext:*args*
("some" "arguments")
[2]> (ext:quit)
Bye.
[···@thalassa encours]$ 

If you don't like it, create a launch script:

mv executable-image executable-image.bin
cat > executable-image <<EOF
#!/bin/bash
exec "$0".bin -- ··@"
EOf
chmod 755 executable-image


If you don't like it, patch the sources of clisp...

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

PUBLIC NOTICE AS REQUIRED BY LAW: Any use of this product, in any
manner whatsoever, will increase the amount of disorder in the
universe. Although no liability is implied herein, the consumer is
warned that this process will ultimately lead to the heat death of
the universe.
From: Sam Steingold
Subject: Re: Passing arguments to executable created with clisp
Date: 
Message-ID: <alejwxdyil.fsf@quant8.janestcapital.quant>
> * Pascal Bourguignon <···@vasbezngvzntb.pbz> [2006-07-06 18:36:53 +0200]:
> "Trastabuga" <·········@gmail.com> writes:
>>
>> I can parse and use the *args* when I run a clisp program as script.
>> Once you create an executable (with ext:saveinitmem) and try to give
>> it an argument "arg" it says "*** - LOAD: A file with name arg does
>> not exist".  How can I overcome this?
>
> Use --
> [···@thalassa encours]$ ./ibcl --  some arguments
> [1]> ext:*args*
> ("some" "arguments")
>
> If you don't like it, create a launch script:
>
> mv executable-image executable-image.bin
> cat > executable-image <<EOF
> #!/bin/bash
> exec "$0".bin -- ··@"
> EOf
> chmod 755 executable-image
>
> If you don't like it, patch the sources of clisp...

CLISP CVS head SAVEINITMEM already accepts :SCRIPT
<http://www.podval.org/~sds/clisp/NEWS>
<http://www.podval.org/~sds/clisp/impnotes/image.html>
<http://www.podval.org/~sds/clisp/impnotes/clisp.html#opt-help-image>

-- 
Sam Steingold (http://www.podval.org/~sds) on Fedora Core release 5 (Bordeaux)
http://dhimmi.com http://truepeace.org http://mideasttruth.com
http://palestinefacts.org http://memri.org http://iris.org.il
Winners never quit; quitters never win; idiots neither win nor quit.
From: Trastabuga
Subject: Re: Passing arguments to executable created with clisp
Date: 
Message-ID: <1152719521.739685.31360@i42g2000cwa.googlegroups.com>
Sam Steingold wrote:
> > * Pascal Bourguignon <···@vasbezngvzntb.pbz> [2006-07-06 18:36:53 +0200]:
> > "Trastabuga" <·········@gmail.com> writes:
> >>
> >> I can parse and use the *args* when I run a clisp program as script.
> >> Once you create an executable (with ext:saveinitmem) and try to give
> >> it an argument "arg" it says "*** - LOAD: A file with name arg does
> >> not exist".  How can I overcome this?
> >
> > Use --
> > [···@thalassa encours]$ ./ibcl --  some arguments
> > [1]> ext:*args*
> > ("some" "arguments")
> >
> > If you don't like it, create a launch script:
> >
> > mv executable-image executable-image.bin
> > cat > executable-image <<EOF
> > #!/bin/bash
> > exec "$0".bin -- ··@"
> > EOf
> > chmod 755 executable-image
> >
> > If you don't like it, patch the sources of clisp...
>
> CLISP CVS head SAVEINITMEM already accepts :SCRIPT
> <http://www.podval.org/~sds/clisp/NEWS>
> <http://www.podval.org/~sds/clisp/impnotes/image.html>
> <http://www.podval.org/~sds/clisp/impnotes/clisp.html#opt-help-image>
>
> --
> Sam Steingold (http://www.podval.org/~sds) on Fedora Core release 5 (Bordeaux)
> http://dhimmi.com http://truepeace.org http://mideasttruth.com
> http://palestinefacts.org http://memri.org http://iris.org.il
> Winners never quit; quitters never win; idiots neither win nor quit.

Great news! Can I download the binaries for windows from somewhere?
On sf there is still an old version I believe.

Thanks,
Andrew