From: Adam Prescott <adam@aprescott.com>
To: ruby-core@ruby-lang.org
Subject: [ruby-core:37846] Re: [Ruby 1.8 - Bug #4986][Open] Parsing bug in irb: "#{"//"}"
Date: Thu, 7 Jul 2011 21:56:20 +0900 [thread overview]
Message-ID: <CA+OJs9TpWWmvCanSsetwGnCFf6t=brCc+ZD7M4nmJb48iUuv-g@mail.gmail.com> (raw)
In-Reply-To: <redmine.issue-4986.20110707140338@ruby-lang.org>
On Thu, Jul 7, 2011 at 6:03 AM, Brad Grzesiak <brad@bendyworks.com> wrote:
>
> When issuing the following command in irb, it believes it's in the middle of a regexp, rather than returning a string with two slashes:
>
> "#{"//"}"
>
> While this doesn't seem all that common, it has the same problem with the following string:
>
> "#{Time.now.strftime("%m/%d/%Y")}"
>
> irb version is: irb 0.9.5(05/04/13)
>
Works fine for me on a later version of IRB.
ruby-1.9.2-p180 :001 > IRB.version
=> "irb 0.9.6(09/06/30)"
ruby-1.9.2-p180 :002 > "#{"//"}"
=> "//"
ruby-1.9.2-p180 :003 > "#{Time.now.strftime("%m/%d/%Y")}"
=> "07/07/2011"
next prev parent reply other threads:[~2011-07-07 12:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-07 5:03 [ruby-core:37842] [Ruby 1.8 - Bug #4986][Open] Parsing bug in irb: "#{"//"}" Brad Grzesiak
2011-07-07 12:56 ` Adam Prescott [this message]
2011-07-07 19:49 ` [ruby-core:37851] [Ruby 1.8 - Bug #4986] " Brad Grzesiak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+OJs9TpWWmvCanSsetwGnCFf6t=brCc+ZD7M4nmJb48iUuv-g@mail.gmail.com' \
--to=ruby-core@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).