Custom Query (204 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (22 - 24 of 204)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Ticket Resolution Summary Owner Reporter
#25 fixed perl: system() fails on sh scripts in scalar mode dmik
Description

The system() call fails with SYS1041 (The name NNN is not recognized...) when passed a scalar argument like this and the command to execute is a SH script:

system("aclocal --version");
if ( $? == -1 )
{
  print "command failed: $!\n";
}
else
{
  printf "command exited with value %d", $? >> 8;
}

This must be because according to the docs scalar arguments are executed with the shell command which in case of OS/2 seems to be cmd.exe /c.

Interesting is that if you use the list form instead (system("aclocal", "--version")), all works. Perhaps, because LIBC exec() is used in this case which can properly recognize SH scripts and use SH.EXE for them.

This needs to be fixed as it obviously breaks many things (like automake).

#26 fixed ash: Import sources dmik
Description

We need to have a copy of ASH sources in ports so that we can fix OS/2 specific bugs in it.

#27 fixed ash: Predefined macro $? gets wrong value dmik
Description

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.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Note: See TracQuery for help on using queries.