From: normalperson@... Date: 2017-07-13T21:16:20+00:00 Subject: [ruby-core:82039] [Ruby trunk Bug#13744][Closed] Spawn doesn't work with options of symbol keys generated dynamically Issue #13744 has been updated by normalperson (Eric Wong). Status changed from Open to Closed reclosing to trigger backport request ---------------------------------------- Bug #13744: Spawn doesn't work with options of symbol keys generated dynamically https://bugs.ruby-lang.org/issues/13744#change-65766 * Author: satoryu (Tatsuya Sato) * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.5.0dev (2017-07-13 trunk 59321) [x86_64-darwin16] * Backport: 2.2: REQUIRED, 2.3: REQUIRED, 2.4: REQUIRED ---------------------------------------- spawn works when giving options whose key is symbol literal: ~~~ $ ruby -e 'spawn("ls", :rlimit_cpu => 100)' ~~~ 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 `
' ~~~ -- https://bugs.ruby-lang.org/ Unsubscribe: