about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-09-25 18:50:46 +0000
committerEric Wong <e@80x24.org>2015-09-25 18:50:46 +0000
commit2d254a58e4b103a2e03f930d6071e53a41a2b6db (patch)
tree8fa029978a320be54ed6ea6258271c7b9438d14c
parent542b6eaac17e11f117fc92884c51bfa0217cbd10 (diff)
downloaddtas-2d254a58e4b103a2e03f930d6071e53a41a2b6db.tar.gz
Temporary files may still have spaces or weird chars in them.
Just keep in mind we need to use $EDITOR/$VISUAL as-is since that
may contain additional command-line arguments, so we cannot pass
an array.
-rwxr-xr-xbin/dtas-cueedit2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/dtas-cueedit b/bin/dtas-cueedit
index 603bf28..5e6970f 100755
--- a/bin/dtas-cueedit
+++ b/bin/dtas-cueedit
@@ -44,7 +44,7 @@ ARGV.each do |file|
     backup.write(original) if backup
 
     # user edits the file
-    x!("#{editor} #{tmp.path}")
+    x!("#{editor} #{xs(tmp.path)}")
 
     # avoid an expensive update if the user didn't change anything
     current = File.binread(tmp.path)