JRuby

-i flag not supported

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.1.5
  • Fix Version/s: JRuby 1.2
  • Component/s: Miscellaneous
  • Labels:
    None
  • Number of attachments :
    0

Description

From Ruby man page:

     -i extension   Specifies in-place-edit mode.  The extension, if speci-
                    fied, is added to old file name to make a backup copy.
                    For example:

                          % echo matz > /tmp/junk
                          % cat /tmp/junk
                          matz
                          % ruby -p -i.bak -e '$_.upcase!' /tmp/junk
                          % cat /tmp/junk
                          MATZ
                          % cat /tmp/junk.bak
                          matz

Activity

Hide
Charles Oliver Nutter added a comment -

Punting issues from 1.1 RC2 to 1.1 final.

Show
Charles Oliver Nutter added a comment - Punting issues from 1.1 RC2 to 1.1 final.
Hide
Charles Oliver Nutter added a comment -

Punting to post 1.1, since it's a rather unusual option, and isn't a very high priority right now. Contributions welcome.

Show
Charles Oliver Nutter added a comment - Punting to post 1.1, since it's a rather unusual option, and isn't a very high priority right now. Contributions welcome.
Hide
Thomas E Enebo added a comment -

This may not be a bad JRuby hacker intro bug for anyone with the itch to contribute...

Show
Thomas E Enebo added a comment - This may not be a bad JRuby hacker intro bug for anyone with the itch to contribute...
Hide
Joseph LaFata added a comment -

i fixed this one with the ARGF specs.

should be working now.

Show
Joseph LaFata added a comment - i fixed this one with the ARGF specs. should be working now.
Hide
Charles Oliver Nutter added a comment -

Fixed by Joseph LaFata's recent fixes. Thanks!

Show
Charles Oliver Nutter added a comment - Fixed by Joseph LaFata's recent fixes. Thanks!

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: