Project

General

Profile

Actions

Feature #17328

closed

Extend `un.rb` to be usable by everyone

Added by sdwolfz (Codruț Gușoi) about 4 years ago. Updated about 4 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:100876]

Description

I've opened the PR here: https://github.com/ruby/ruby/pull/3771, although if you need me to submit a patch just let me know.
Basically I want to be able to use ruby -run for more than just running a http server, and thought it could require a local run.rb file with code that end users provide.

Not sure if this was proposed before but let me know what you think.

Actions #1

Updated by sdwolfz (Codruț Gușoi) about 4 years ago

  • Description updated (diff)

Updated by jeremyevans0 (Jeremy Evans) about 4 years ago

This has the potential to introduce security issues. Avoiding security issues by not automatically loading files in the current directory is the reason . was removed from the default $LOAD_PATH in Ruby 1.9.

Updated by nobu (Nobuyoshi Nakada) about 4 years ago

  • Status changed from Open to Rejected

You can run it as ruby run.rb.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0