General

Profile

Borislav (Borislav Stanimirov)

  • Login: Borislav
  • Email: prizrak6@yahoo.com
  • Registered on: 03/20/2009
  • Last sign in: 04/21/2009

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

03/20/2009

04:15 PM Ruby Bug #1304: Kernel#system bug
=begin
I am sorry that I mislead you. It turns out that the parameter needs to be in quoutations too (as if it's another file with a space in it)

my exact test case:

BackwardCopy.cmd:
@copy %2 %1

Test.rb:
system('"C:\...
Borislav (Borislav Stanimirov)
02:44 AM Ruby Bug #1304 (Closed): Kernel#system bug
=begin
To reproduce on Windows:
Create a batch file with one argument in a folder that has a space in its name. In Ruby call:
system('"c:\\your full path\\batchfile.bat" yourparam')

It will behave as if the quotations ...
Borislav (Borislav Stanimirov)

Also available in: Atom