Because I read this from perldoc:perlfunc:
-
If there is only one scalar argument, the argument is checked for shell metacharacters, and if there are any, the entire argument is passed to the system's command shell for parsing (this is /bin/sh -c on Unix platforms, but varies on other platforms). If there are no shell metacharacters in the argument, it is split into words and passed directly to execvp, which is more efficient.
Which, as I know time is a CMD built-in, implied to me that as there are no shell meta characters involved, would mean that I would need to force the use of CMD explicitly.
I have just tried it without and it works fine so I guess ActiveState have never updated the documentation to reflect the difference on the Win32 platform.
Thanks for pointing it out. Another peice of 'cargo cult' programming, if I understand the term correctly, bites the dust :^)
| [reply] [d/l] |
| [reply] [d/l] |