[icedtea-web] RFC: fix broken -J command line arguments

Omair Majid omajid at redhat.com
Mon Mar 28 12:09:49 PDT 2011


On 03/28/2011 03:00 PM, Deepak Bhole wrote:
> * Omair Majid<omajid at redhat.com>  [2011-03-28 14:58]:
>> 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?
>>
>
> Yep, okay for head!
>

Done. Thanks for the suggestions!

Cheers,
Omair



More information about the distro-pkg-dev mailing list