[ruby-dev:48715] [ruby-trunk - Bug #10435] [Closed] ruby -c file can run.

From: nobu@...
Date: 2014-10-28 07:22:55 UTC
List: ruby-dev #48715
Issue #10435 has been updated by Nobuyoshi Nakada.

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]

----------------------------------------
Bug #10435: ruby -c file can run.
https://bugs.ruby-lang.org/issues/10435#change-49672

* Author: Akira Tanaka
* Status: Closed
* Priority: Normal
* Assignee:=20
* Category:=20
* Target version:=20
* ruby -v: ruby 2.2.0dev (2014-10-27 trunk 48168) [x86_64-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
ruby -c file =E3=81=A8=E3=81=97=E3=81=9F=E3=81=A8=E3=81=8D=E3=81=AB=E3=80=
=81=E5=AE=9F=E8=A1=8C=E3=81=8C=E8=B5=B7=E3=81=8D=E3=81=A6=E3=81=97=E3=81=BE=
=E3=81=86=E3=81=93=E3=81=A8=E3=81=8C=E3=81=82=E3=82=8B=E3=82=88=E3=81=86=E3=
=81=A7=E3=81=99=E3=80=82

```
% 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
```




--=20
https://bugs.ruby-lang.org/

In This Thread

Prev Next