Project

General

Profile

Actions

Bug #10435

closed

ruby -c file can run.

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

Status:
Closed
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
Actions

Also available in: Atom PDF

Like0
Like0