Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: wmorgan-sup@masanjin.net (William Morgan)
Subject: [sup-talk] "interning empty string" from sup-sync
Date: Wed, 13 May 2009 13:55:51 -0700	[thread overview]
Message-ID: <1242248081-sup-5132@entry> (raw)
In-Reply-To: <20090513190821.GC18461@cabinet.hsd1.ma.comcast.net>

Reformatted excerpts from Marc Hartstein's message of 2009-05-13:
> /home/magus/src/sup/bin/sup-sync:159:in `intern': interning empty string
> (ArgumentError)
>         from /home/magus/src/sup/bin/sup-sync:159

That's a bug. Turns out String#split doesn't exactly behave how I
thought:

$ irb
>> " a  b c ".split
=> ["a", "b", "c"]
>> " a  b c ".split(/\s+/)
=> ["", "a", "b", "c"]

I've fixed this in next.
-- 
William <wmorgan-sup at masanjin.net>


           reply	other threads:[~2009-05-13 20:55 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20090513190821.GC18461@cabinet.hsd1.ma.comcast.net>]

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-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1242248081-sup-5132@entry \
    --to=wmorgan-sup@masanjin.net \
    /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