about summary refs log tree commit homepage
path: root/lib/dtas/source/sox.rb
diff options
authorEric Wong <normalperson@yhbt.net>2013-09-07 21:25:17 +0000
committerEric Wong <normalperson@yhbt.net>2013-09-07 22:35:35 +0000
commitd2f75170a6c1548b85335c7e84a000ed67a0158b (patch)
treefb8fba7c6d1f15826ad5f3118367c3ec57241524 /lib/dtas/source/sox.rb
parent136f46adb568b964f61ecdafcd28936c44680b78 (diff)
This will allow users to more-easily edit configs and feel
like a real shell.  We no longer mistakenly expand nil env
variables to "" anymore, either.
Diffstat (limited to 'lib/dtas/source/sox.rb')
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/source/sox.rb b/lib/dtas/source/sox.rb
index e26f54b..484a0ec 100644
--- a/lib/dtas/source/sox.rb
+++ b/lib/dtas/source/sox.rb
@@ -41,7 +41,7 @@ class DTAS::Source::Sox # :nodoc:
   def try(infile, offset = nil)
     err = ""
     cmd = %W(soxi -s #{infile})
-    s = qx(@env, cmd, err_str: err, no_raise: true)
+    s = qx(@env.dup, cmd, err_str: err, no_raise: true)
     return if err =~ /soxi FAIL formats:/
     self.class.try_to_fail_harder(infile, s, cmd) or return
     source_file_dup(infile, offset)