Patch for wrong no declaration seen for command-line-arguments

Jamison Hope jrh@theptrgroup.com
Mon Sep 16 17:16:00 GMT 2013


On Sep 16, 2013, at 1:48 AM, Per Bothner <per@bothner.com> wrote:

> The attached patch provides a more informative
> result for (car (command-line)) - rather than plain "kawa".
> I'd be interested in feedback in how portable it is: Windows,
> MacOS, non-Sun/Oracle VMs (including ones that don't set the
> sun.java.command property).  (I also working on updating the
> documentation.)

With Oracle JDK 7u40 on Mac OS X 10.8, I get:

$ java -jar kawa-1.13.1.jar 
#|kawa:1|# (write (car (command-line)))
"java kawa-1.13.1.jar"

$ java kawa.repl
#|kawa:1|# (write (car (command-line)))
"java kawa.repl"

$ cat /tmp/test.scm 
(write (car (command-line)))
(newline)

$ java -jar kawa-1.13.1.jar -f /tmp/test.scm 
"java kawa-1.13.1.jar -f /tmp/test.scm"

$ java kawa.repl -f /tmp/test.scm 
"java kawa.repl -f /tmp/test.scm"

In other words, it seems to do what you'd expect.

--
Jamison Hope
The PTR Group
www.theptrgroup.com



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://sourceware.org/pipermail/kawa/attachments/20130916/52d94f7f/attachment.sig>


More information about the Kawa mailing list