﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
25	perl: system() fails on sh scripts in scalar mode	dmik		"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 [http://www.perlhowto.com/executing_external_commands 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`)."	defect	closed	critical					fixed		
