[Open] ruby -c file can run

Issue #10435 has been reported by Akira T…


Bug #10435: ruby -c file can run.

  • Author: Akira T.
  • Status: Open
  • Priority: Normal
  • Assignee:
  • Category:
  • Target version:
  • 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 としたときに、実行が起きてしまうことがあるようです。

% 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