public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Jamison Hope <jrh@theptrgroup.com>
To: kawa@sourceware.org
Subject: Re: Patch for wrong no declaration seen for command-line-arguments
Date: Mon, 16 Sep 2013 17:16:00 -0000	[thread overview]
Message-ID: <08442213-A994-4662-95F1-EE7115831428@theptrgroup.com> (raw)
In-Reply-To: <52369BBD.4010806@bothner.com>

[-- Attachment #1: Type: text/plain, Size: 924 bytes --]

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




[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 204 bytes --]

  reply	other threads:[~2013-09-16 17:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-12  3:42 Matthieu Vachon
2013-09-12 20:09 ` Charles Turner
2013-09-12 20:20   ` Matthieu Vachon
2013-09-16  5:49 ` Per Bothner
2013-09-16 17:16   ` Jamison Hope [this message]
2013-09-18 13:19     ` Matthieu Vachon
2013-09-18 18:21       ` Per Bothner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=08442213-A994-4662-95F1-EE7115831428@theptrgroup.com \
    --to=jrh@theptrgroup.com \
    --cc=kawa@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).