Project

General

Profile

Bug #10435

ruby -c file can run.

Added by akr (Akira Tanaka) about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.0dev (2014-10-27 trunk 48168) [x86_64-linux]
[ruby-dev:48712]

Description

ruby -c file としたときに、実行が起きてしまうことがあるようです。

% cat z.rb
#! /usr/bin/env ruby -r./z

p :run
% ruby -vc z.rb
ruby 2.2.0dev (2014-10-27 trunk 48168) [x86_64-linux]
:run
Syntax OK

Associated revisions

Revision 4079a354
Added by nobu (Nobuyoshi Nakada) about 5 years ago

ruby.c: no -r when dump

  • ruby.c (process_options, load_file_internal2): should not require other files when dump option is given. [ruby-dev:48712] [Bug #10435]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 48175
Added by nobu (Nobuyoshi Nakada) about 5 years ago

ruby.c: no -r when dump

  • ruby.c (process_options, load_file_internal2): should not require other files when dump option is given. [ruby-dev:48712] [Bug #10435]

Revision 48175
Added by nobu (Nobuyoshi Nakada) about 5 years ago

ruby.c: no -r when dump

  • ruby.c (process_options, load_file_internal2): should not require other files when dump option is given. [ruby-dev:48712] [Bug #10435]

Revision 48175
Added by nobu (Nobuyoshi Nakada) about 5 years ago

ruby.c: no -r when dump

  • ruby.c (process_options, load_file_internal2): should not require other files when dump option is given. [ruby-dev:48712] [Bug #10435]

Revision 48175
Added by nobu (Nobuyoshi Nakada) about 5 years ago

ruby.c: no -r when dump

  • ruby.c (process_options, load_file_internal2): should not require other files when dump option is given. [ruby-dev:48712] [Bug #10435]

Revision 48175
Added by nobu (Nobuyoshi Nakada) about 5 years ago

ruby.c: no -r when dump

  • ruby.c (process_options, load_file_internal2): should not require other files when dump option is given. [ruby-dev:48712] [Bug #10435]

Revision 48175
Added by nobu (Nobuyoshi Nakada) about 5 years ago

ruby.c: no -r when dump

  • ruby.c (process_options, load_file_internal2): should not require other files when dump option is given. [ruby-dev:48712] [Bug #10435]

History

Updated by nobu (Nobuyoshi Nakada) about 5 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Applied in changeset r48175.


ruby.c: no -r when dump

  • ruby.c (process_options, load_file_internal2): should not require other files when dump option is given. [ruby-dev:48712] [Bug #10435]

Also available in: Atom PDF