[Bug 3126] [IcedTea8] pax-mark-vm script calls "exit -1" which is invalid in dash
bugzilla-daemon at icedtea.classpath.org
bugzilla-daemon at icedtea.classpath.org
Thu Aug 4 17:52:39 UTC 2016
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3126
--- Comment #7 from Andrew John Hughes <gnu.andrew at redhat.com> ---
(In reply to Andrew John Hughes from comment #6)
> (In reply to James Le Cuirot from comment #5)
> > (In reply to Andrew John Hughes from comment #3)
> > > I'm just saying that fixing this is just one issue in getting dash to work
> > > with IcedTea and there are probably more Bash assumptions in the configure
> > > script.
> >
> > It otherwise seems to work as I have seen this error from Gentoo users who
> > have selected dash and gone on to build it successfully.
> >
>
> https://bugs.gentoo.org/show_bug.cgi?id=526200
>
> Fixing it completely is more involved. That's against 2.x so the failing
> target doesn't exist. I guess those who've built it have just been lucky in
> that any configure failures haven't broken the build, but that doesn't imply
> it's working correctly with dash.
>
> > > Is this not itself a bug in dash? Why doesn't it support negative values?
> >
> > Because negative values are not really valid, even in bash. ;)
> >
> > $ bash -c 'exit -1'; echo $?
> > 255
> > $ bash -c 'exit -2'; echo $?
> > 254
>
> Ah, POSIX says:
>
> "The exit utility shall cause the shell to exit with the exit status
> specified by the unsigned decimal integer n. If n is specified, but its
> value is not between 0 and 255 inclusively, the exit status is
> undefined."
>
> bash is wrapping the signed integer to an unsigned one (i.e. 0 - 1 wraps to
> 255).
* the failing target doesn't exist in 3.x.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20160804/67af0567/attachment.html>
More information about the distro-pkg-dev
mailing list