3 ms·
The problem here is not prototyping, it's the service accepting executable code from the user.
by BiteCode_dev 7y ago
The problem here is not prototyping, it's the service accepting executable code from the user.
- sergeykish 7y agoAgree. Same in ruby Object.define_method('env') { { RUBYOPT: "-e puts 123" } } Though ruby rejects it $ RUBYOPT="-e 'puts 123'" env ruby Traceback (most recent call last): ruby: invalid switch in RUBYOPT: -e (RuntimeError) https://github.com/ruby/ruby/blob/b753929806d0e42cdfde3f1a8dcdbf678f937e44/test/ruby/test_rubyoptions.rb#L319 https://github.com/ruby/ruby/blob/b753929806d0e42cdfde3f1a8d... And to use -r file needs to be .rb