[#6363] Re: rescue clause affecting IO loop behavior — ts <decoux@...>

>>>>> "D" == David Alan Black <dblack@candle.superlink.net> writes:

17 messages 2000/11/14
[#6367] Re: rescue clause affecting IO loop behavior — David Alan Black <dblack@...> 2000/11/14

Hello again --

[#6582] best way to interleaf arrays? — David Alan Black <dblack@...>

Hello --

15 messages 2000/11/26

[#6646] RE: Array Intersect (&) question — Aleksi Niemel<aleksi.niemela@...>

Ross asked something about widely known and largely ignored language (on

23 messages 2000/11/29
[#6652] RE: Array Intersect (&) question — rpmohn@... (Ross Mohn) 2000/11/29

aleksi.niemela@cinnober.com (Aleksi Niemel) wrote in

[#6723] Re: Array Intersect (&) question — Mathieu Bouchard <matju@...> 2000/12/01

> >Use a hash. Here's code to do both and more. It assumes that

[#6656] printing/accessing arrays and hashes — raja@... (Raja S.)

I'm coming to Ruby with a Python & Common Lisp background.

24 messages 2000/11/30

[ruby-talk:6479] Re: %x{...} and ` not working?

From: Niklas Backlund <d99-nba@...>
Date: 2000-11-21 00:57:49 UTC
List: ruby-talk #6479
Update below...

On Tue, 21 Nov 2000, Hal E. Fulton wrote:
...
> ----- Original Message -----
> From: Niklas Backlund <d99-nba@nada.kth.se>
> >
> > I'm reading The Book, and I was trying out %x{dir} et al on
> > page 75... but all I get is:
> >
> >    test.rb:1: command not found: dir
...
> > I also tried to use IO.popen -- Same deal!
> >
> > I'm running
> >
> >    ruby 1.6.2 (2000-11-04) [i386-cygwin]
> >
> > under Win98... Any ideas?
...
> Windows/DOS isn't UNIX, of course. The command
> "dir" is not an executable, but a built-in to the shell.
> I have a vague memory in the COMMAND.COM
> days of using a string like "command /c dir" from
> within a C program. I think it's called CMD.EXE
> nowadays; I tried something similar a day or two ago,
> but with no luck.

Nope, didn't work that way either... But here寄 something else:

I tried it on my laptop, which is running Win95 and

   ruby 1.6.2 (2000-10-11) [i386-mingw32]

and everything works just like it should, i e %x{dir},
IO.popen("dir") ... !!

Question is, is it the Ruby version or the Windows version
that causes the problem?

Note that I'm running cygwin version on this box and mingw32
on the laptop.

???

/Niklas






In This Thread