From 2d254a58e4b103a2e03f930d6071e53a41a2b6db Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 25 Sep 2015 18:50:46 +0000 Subject: dtas-cueedit: escape path to temporary file 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. --- bin/dtas-cueedit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') 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) -- cgit v1.2.3-24-ge0c7