This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: relative includes in r7rs library definitions


I see... the shell script is mangling the arguments together. This patch (attached) makes it work for me.

    -seth


On 11/25/2014 12:39 PM, Per Bothner wrote:


On 11/25/2014 07:12 AM, Seth Alves wrote:
with [ -Dkawa.include.path='|:.' ] , I get a crash.

./test-kawa.scm:12:32: unexpected exception while compiling: java.lang.IllegalArgumentException: Illegal character in path at index 37: ./scheme/base.sld-Dkawa.include.path=| java.lang.IllegalArgumentException: Illegal character in path at index 37: ./scheme/base.sld-Dkawa.include.path=|
     at java.net.URI.create(URI.java:859)

I'm not seeing anything like that. Looks like Kawa is getting invoked with the second -D option being pasted onto the first. I'd verify this by printing out the
args (one to a line) in the top of the main method in kawa/repl.scm.

The output I'm hoping for is

this is the first one
this is the second one

Works for me:

$ ./test-kawa.scm
this is the first one
this is the second one




Attachment: kawa-sh-patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]