|
|
In article <40e6c587@news.povray.org> , Wolfgang Wieser <wwi### [at] gmxde>
wrote:
> FreeBSD (as e.g. also used inside a Mac computer) is most likely
> such a system!
>
> me@x86-freebsd1# sh -c "exit 2000" ; echo $?
> 208
> ...whic is the LSByte of 2000.
>
> And there are others, too.
No, it is most likely just the shell that is broken (given the source of the
shells in most free Unix distributions, this is hardly surprising). Try
something like
#include <stdlib.h>
#include <stdio.h>
int main(int ac, char **av)
{
printf("Result: %d\n", system(av[1]));
return 0;
}
This should work and demonstrate that the system works correctly and only
the shell is broken. Then file a bug report at the appropriate place.
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
|