[icedtea-web] RFC: fix broken -J command line arguments
Omair Majid
omajid at redhat.com
Mon Mar 28 11:58:13 PDT 2011
On 03/28/2011 02:43 PM, Deepak Bhole wrote:
> * Omair Majid<omajid at redhat.com> [2011-03-28 14:30]:
> <snip>
>>>
>>> It works with /bin/sh (I tried it with a test script before posting the
>>> original email).
>>>
>>
>> It works in Fedora (which uses bash as /bin/sh), but not in Debian
>> (which uses dash as /bin/sh). ${var:index} is a bash extension and
>> not part of POSIX. Can I revert
>> http://icedtea.classpath.org/hg/icedtea-web/rev/a640b4e4d226 ?
>>
>
> Ah, I didnt realize re: POSIX. There there is a POSIX solution as well:
>
> JAVA_ARGS="${JAVA_ARGS} ${1#-J}"
>
> should work.
>
Thanks for the solution. Okay to commit?
Cheers,
Omair
-------------- next part --------------
A non-text attachment was scrubbed...
Name: icedtea-web-make-j-flags-work.patch
Type: text/x-patch
Size: 639 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20110328/62cf9675/icedtea-web-make-j-flags-work.patch
More information about the distro-pkg-dev
mailing list