Custom Query (204 matches)
Results (22 - 24 of 204)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#25 | fixed | perl: system() fails on sh scripts in scalar mode | ||
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
Interesting is that if you use the list form instead (
This needs to be fixed as it obviously breaks many things (like |
|||
#26 | fixed | ash: Import sources | ||
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 | ||
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 -/
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
This looks like unexpected behavior to me. I assume that such garbage will confuse many scripts. I faced it when trying to run This ticket depends on #26. |