Project

General

Profile

Actions

Bug #11915

closed

File.read reading string starting with | executes it.

Added by yxhuvud (Linus Sellberg) almost 9 years ago. Updated over 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:72576]

Description

puts File.read "|/bin/ls"
[output of executing ls]
=> nil

This is quite surprising behaviour.

It is one thing that some of the .open methods actually can execute stuff, but a method named 'read' should not behave like that.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0