<html>
<head>
<base href="http://icedtea.classpath.org/bugzilla/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - [IcedTea8] pax-mark-vm script calls "exit -1" which is invalid in dash"
href="http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3126#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - [IcedTea8] pax-mark-vm script calls "exit -1" which is invalid in dash"
href="http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3126">bug 3126</a>
from <span class="vcard"><a class="email" href="mailto:gnu.andrew@redhat.com" title="Andrew John Hughes <gnu.andrew@redhat.com>"> <span class="fn">Andrew John Hughes</span></a>
</span></b>
<pre>(In reply to Andrew John Hughes from <a href="show_bug.cgi?id=3126#c6">comment #6</a>)
<span class="quote">> (In reply to James Le Cuirot from <a href="show_bug.cgi?id=3126#c5">comment #5</a>)
> > (In reply to Andrew John Hughes from <a href="show_bug.cgi?id=3126#c3">comment #3</a>)
> > > 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.
> >
>
> <a href="https://bugs.gentoo.org/show_bug.cgi?id=526200">https://bugs.gentoo.org/show_bug.cgi?id=526200</a>
>
> 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).</span >
* the failing target doesn't exist in 3.x.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>