[#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:6477] Re: %x{...} and ` not working?

From: "Hal E. Fulton" <hal9000@...>
Date: 2000-11-21 00:36:00 UTC
List: ruby-talk #6477
Hello... see below.

----- Original Message ----- 
From: Niklas Backlund <d99-nba@nada.kth.se>
To: ruby-talk ML <ruby-talk@netlab.co.jp>
Sent: Monday, November 20, 2000 3:29 PM
Subject: [ruby-talk:6476] %x{...} and ` not working?


> Hi,
> 
> 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 tried the backquote operator, other DOS commands... Nothing
> worked!
> 
> 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?
> 
> 
> /Niklas
> 

I know what's happening, but I'm not sure how
to fix it.

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.

Let us know what you find out.

Thanks,
Hal





In This Thread