﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
27	ash: Predefined macro $? gets wrong value	dmik		"Given test.exe built using the following test.c
{{{
int main()
{
    return -1;
}
}}}
and the following script:
{{{
./test
echo $?
}}}
the output of sh.exe (from RPM `ash-0.0.0-10.oc00`) will be
{{{
-/
}}}
while it must be a positive number or 0. It may also return other garbage for other negative results (e.g. for the return value of 0xF00000 it will return `-/0,(+)*`).

This looks like unexpected behavior to me. I assume that such garbage will confuse many scripts. I faced it when trying to run `./configure` of the m4 package.

This ticket depends on #26."	defect	closed	major		shell			fixed		
