I’ve discovered a strange bug/feature in ruby. This is using v1.6.8
on windows.
Basically, if you display a TK message box, and then try to execute a
command using backquotes, you get a very long pause before the
backquotes line is executed.
msgBox(‘Test’, ‘Here is a message box’)
puts “about to run ‘start c:\’” start c:\\
will produce this:
about to run ‘start c:’
<long pause - Ctrl-C doesn’t work>
If you replace the backquotes line with:
exec ‘explorer.exe’, '/n,c:\'
then it works fine.
Am i doing something wrong, or is this an issue with ruby under
windows? I don’t have linux installed to see if the same thing
happens (you can put any command in the backquotes, it doesn’t have to
be ‘start’)
Am i doing something wrong, or is this an issue with ruby under
windows? I don't have linux installed to see if the same thing
happens (you can put any command in the backquotes, it doesn't have to
be 'start')
I’ve discovered a strange bug/feature in ruby. This is using v1.6.8
on windows.
What’s the exact version, and which of 3, cygwin, mingw32 and
mswin32? And which do you use, NT(3.51, 4, 2000 and XP) or
9x(95, 98 and Me)? These two are completely different systems.
start c:\\
Unless you need the output of the command, you should not use
backquotes to just run it.
What’s the exact version, and which of 3, cygwin, mingw32 and
mswin32? And which do you use, NT(3.51, 4, 2000 and XP) or
9x(95, 98 and Me)? These two are completely different systems.
I’m running the mswin32 version under windows 2000 SP3.
One thing to note is that the long pause does not occur until you run
a backquotes command. There can be any amount of other stuff
inbetween the call to the message box and the backquotes, all of which
will work fine. As soon as you call the backquoted command, it just
hangs for ages. The CPU on my box was at 0% during this time too.