[#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-7262 ] Bug in string literal '\c'

From: <noreply@...>
Date: 2006-12-14 00:19:41 UTC
List: ruby-core #9717
Bugs item #7262, was opened at 2006-12-14 00:19
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=7262&group_id=426

Category: Core
Group: 1.8.2
Status: Open
Resolution: None
Priority: 3
Submitted By: Russ Daigle (rdaigle0072)
Assigned to: Nobody (None)
Summary: Bug in string literal '\c' 

Initial Comment:
Evaluation of string literal '\c' should return "\c".  However, if in IRB you type '\c'..... and it returns the following prompt to you

irb(main):001:0> '\c'
irb(main):002:0' 


However, if you enter '\d', it returns "\d" as you'd expect.

irb(main):003:0> '\d'
=> "\d"
irb(main):004:0> 


My guess is because it is expecting that '\c' is the beginning of '\cx' (which has a substitution in double-quote literals).... but there is never that additional character following '\c'

Note the following occurs when any character follows '\c'

irb(main):010:0> '\ca'
=> "\ca"



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

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

In This Thread

Prev Next