[#9722] Kernel#system broken inside Dir.chdir(&block) if system command doesn't have shell characters — <noreply@...>

Bugs item #7278, was opened at 2006-12-14 13:59

8 messages 2006/12/14

[#9749] System V IPC in standard library? — Steven Jenkins <steven.jenkins@...>

Back in August, I needed a semaphore to serialize access to an external

14 messages 2006/12/19

[#9753] CVS freeze — SASADA Koichi <ko1@...>

Hi,

20 messages 2006/12/20
[#9755] Re: [ruby-dev:30039] CVS freeze — SASADA Koichi <ko1@...> 2006/12/20

Hi,

[#9757] Re: [ruby-dev:30040] Re: CVS freeze — SASADA Koichi <ko1@...> 2006/12/20

Hi,

[ ruby-Bugs-7274 ] Inconsistant parsing within a block

From: <noreply@...>
Date: 2006-12-14 18:08:55 UTC
List: ruby-core #9720
Bugs item #7274, was opened at 2006-12-14 13:08
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=7274&group_id=426

Category: Core
Group: 1.8.x
Status: Open
Resolution: None
Priority: 3
Submitted By: Darren Smith (flagitious)
Assigned to: Nobody (None)
Summary: Inconsistant parsing within a block

Initial Comment:
3.times{1;print (1)+1} --> 222
3.times{print (1)+1} --> 1 ... undefined method `+' for nil:NilClass (NoMethodError)

Usually foo (x)+1 acts like foo((x)+1), but if it is the first statement in a block of code then it acts like (foo(x))+1

The bug occurred on all versions of ruby I tried, including:
ruby 1.8.4 (2005-12-24) [powerpc-darwin7.9.0]
ruby 1.8.5 (2006-08-25) [x86_64-freebsd6.1]
ruby 1.8.5 (2006-08-25) [i386-mswin32]

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=7274&group_id=426

In This Thread

Prev Next