Actions
Bug #11915
closedFile.read reading string starting with | executes it.
Bug #11915:
File.read reading string starting with | executes it.
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