From 7e163620fc36ac5067d96a714444f75f53a3b115 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 27 Dec 2015 06:08:31 +0000 Subject: splitfx: fixup frozen_string_literal for spawn This only affected splitfx when it used the command option, and only when calling dtas-splitfx (not when playing splitfx files through the player). --- lib/dtas/splitfx.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dtas/splitfx.rb b/lib/dtas/splitfx.rb index 4084393..9a1f729 100644 --- a/lib/dtas/splitfx.rb +++ b/lib/dtas/splitfx.rb @@ -231,7 +231,7 @@ class DTAS::SplitFX # :nodoc: } env['SOXFMT'] = '-tsox' sub_env['OUTFMT'] = env.delete('OUTFMT') - sub_env_s = sub_env.inject("") { |s,(k,v)| s << "#{k}=\"#{v}\" " } + sub_env_s = sub_env.map { |k,v| "#{k}=\"#{v}\"" }.join(' ') show_cmd = [ expand_cmd(env, player_cmd), '|', '(', "#{sub_env_s};", expand_cmd(env.merge(sub_env), command), ')' ].flatten command = "#{player_cmd} | (#{sub_env_s}; #{command})" -- cgit v1.2.3-24-ge0c7