From: sur max Date: 2007-03-14T14:50:04+09:00 Subject: Re: Kernel#exec on OSX ------=_Part_23979_13322796.1173851398543 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline though the system command is working both ways as system('date') On 3/14/07, Kent Sibilev wrote: > > Does anyone know how to explain this: > > $ irb > >> exec 'date' > Wed Mar 14 01:38:11 EDT 2007 > $ irb > >> Thread.new {} > => # > >> exec 'date' > Errno::EOPNOTSUPP: Operation not supported - date > from (irb):2:in `exec' > from (irb):2 > from :0 > >> > > I couldn't reproduce it on Linux though. > > -- > Kent > --- > http://www.datanoise.com > > -- sur "is a String object" is a String object http://expressica.com ------=_Part_23979_13322796.1173851398543 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline though the system command is working both ways

as

system('date')

On 3/14/07, Kent Sibilev <ksruby@gmail.com > wrote:
Does anyone know how to explain this:

$ irb
>> exec 'date'
Wed Mar 14 01:38:11 EDT 2007
$ irb
>> Thread.new {}
=> #<Thread:0x3546e8 dead>
>> exec 'date'
Errno::EOPNOTSUPP: Operation not supported - date
        from (irb):2:in `exec'
        from (irb):2
        from :0
>>

I couldn't reproduce it on Linux though.

--
Kent
---
http://www.datanoise.com




--
sur
"is a String object" is a String object
http://expressica.com ------=_Part_23979_13322796.1173851398543--