diff options
author | Eric Wong <e@80x24.org> | 2015-09-25 18:50:46 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-09-25 18:50:46 +0000 |
commit | 2d254a58e4b103a2e03f930d6071e53a41a2b6db (patch) | |
tree | 8fa029978a320be54ed6ea6258271c7b9438d14c | |
parent | 542b6eaac17e11f117fc92884c51bfa0217cbd10 (diff) | |
download | dtas-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-x | bin/dtas-cueedit | 2 |
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) |