You can work around this weirdness by using the following:
perl -e"$prog = 'C:\Program Files\Java\jdk1.6.0_15\bin\java.exe'; exec + { $prog } 'java', '-version'"
It doesn't work if you use the full path after the curlies.
In reply to Re: System, exec different behaviour with spaces
by ikegami
in thread System, exec different behaviour with spaces
by sacambs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |