Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: System, exec different behaviour with spaces

by ikegami (Patriarch)
on Jan 13, 2012 at 07:09 UTC ( [id://947702]=note: print w/replies, xml ) Need Help??


in reply to System, exec different behaviour with spaces

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://947702]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-18 13:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found