This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: relative includes in r7rs library definitions
- From: Per Bothner <per at bothner dot com>
- To: kawa at sourceware dot org
- Date: Tue, 25 Nov 2014 23:30:47 -0800
- Subject: Re: relative includes in r7rs library definitions
- Authentication-results: sourceware.org; auth=none
- References: <546F4449 dot 4050303 at hungry dot com> <546F85E7 dot 6020404 at bothner dot com> <546F8AD9 dot 6080404 at hungry dot com> <54726634 dot 9090105 at bothner dot com> <547437D7 dot 7060500 at bothner dot com> <54749C51 dot 9020301 at hungry dot com> <5474E8F0 dot 7090000 at bothner dot com> <54752188 dot 8070700 at hungry dot com>
On 11/25/2014 04:40 PM, Seth Alves wrote:
I see... the [kawa.sh] script is mangling the arguments together. This patch (attached) makes it work for me.
What shell are you using? The patch doesn't handle arguments with spaces.
Dealing with space (and special characters) is why the script uses bash/ksh arrays.
The problems seems to be that this statement:
jvm_args+="$arg"
does string appending, rather than array appending.
I experimented some, and it looks like the following works, at least on ksh:
jvm_args+=("$arg")
An alternative that may be more portable (though it also goes beyond Posix):
jvm_args[i++]="$arg"
That assumes i has been initialized to 0 (before the for loop):
i=0
Could you try one of:
jvm_args+=("$arg")
jvm_args[i++]="$arg"
--
--Per Bothner
per@bothner.com http://per.bothner.com/