[ruby-core:82036] Re: [Ruby trunk Bug#13744] Spawn doesn't work with options of symbol keys generated dynamically

From: Eric Wong <normalperson@...>
Date: 2017-07-13 19:55:33 UTC
List: ruby-core #82036
satoryu.1981@gmail.com wrote:
> But spawn fails when generating symbol from a String: 
> 
> ~~~
> $ ruby -e 'spawn("ls", "rlimit_cpu".to_sym => 100)'
> -e:1:in `spawn': wrong exec option symbol: rlimit_cpu (ArgumentError)
>         from -e:1:in `<main>'
> ~~~

This seems to be a problem with dynamic symbols,
investigating...

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next