[icedtea-web] RFC: fix broken -J command line arguments
Deepak Bhole
dbhole at redhat.com
Mon Mar 28 11:43:20 PDT 2011
* 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.
Cheers,
Deepak
> Thanks,
> Omair
More information about the distro-pkg-dev
mailing list